$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,10");
<?php
//OS:mFusionME
//version:4.01.20
//type:CORE
// ARTICLES FEEDER for mFUSION 1.x /////////////////////////////////////////////
//Modded and remodelled for mFUSION by www.sumotoy.com
//Features: Full multilanguage with international option (shows the language in multilanguage feeds)
//Note: For link a particular language use this http://www.yoursite.com/feeds/articles.php?lang=Japanese
//Note: For All languages use this http://www.yoursite.com/feeds/articles.php?lang=Japanese
//status:100%///////////////////////////////////////////////////////////////////
header("Content-Type: text/xml");
require_once "../maincore.php";
require_once THEME."theme.php";
if (file_exists(BASEDIR."feeds/locale/".LANGUAGE.".php")) {
include BASEDIR."feeds/locale/".LANGUAGE.".php";
} else {
include BASEDIR."feeds/locale/English.php";
}
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access').(multilang_table("A")?" AND article_cat_language='".LANGUAGE."'":"")."
ORDER BY article_datestamp DESC LIMIT 0,10");
echo "<?xml version=\"1.0\" encoding=\"".$locale['charset']."\"?>\n\n
<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n
\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n
<rss version=\"0.91\">\n\n
<channel>\n";
echo "<title>".$settings['sitename'].$locale['rss002'].(multilang_table("A")?" ".$locale['rss007']." ".LANGUAGE:"")."</title>\n<link>".$settings['siteurl']."</link>\n";
echo "<description>".$settings['description']."</description>\n";
while ($row=dbarray($result)) {
$rsid = intval($row['article_id']);
$rtitle = $row['article_subject'];
$description = stripslashes(nl2br($row['article_snippet']));
// Add allowable HTML tags below, all others will be stripped
$description = strip_tags($description, "<A><P><BR><BR /><HR>");
echo "<item>\n";
echo "<title>".htmlspecialchars($rtitle).(multilang_table("A")?" - ".$locale['rss007'].$row['article_language']:"")."</title>\n";
echo "<link>".$settings['siteurl']."readarticle.php?article_id=".$rsid."</link>\n";
echo "<description>".htmlspecialchars($description)."</description>\n";
echo "</item>\n";
}
echo "</channel></rss>";
?>
Quote
[09-Jan-2017 14:48:00 Europe/London] PHP Fatal error: Call to undefined function multilang_table() in /home/waynerockon/public_html/forum3/feeds/rss_news.php on line 24
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions