if(strstr("forum/", FUSION_REQUEST)){
//Panelcode (will only be executed in the forum)
}
if(strstr("viewpage.php", FUSION_REQUEST) && isset($_GET['page_id']) && $_GET['page_id'] == 1){
//Panelcode (will only be executed on the page with ID 1)
}
$ids = array(1,2,3,4,5,6,7,8);
if(strstr("viewpage.php", FUSION_REQUEST) && isset($_GET['page_id']) && in_array($_GET['page_id'], $ids)){
//Panelcode (will only be executed on the pages listed in the $ids array)
}
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
openside("lastest news");
$result = dbquery("SELECT * FROM ".DB_NEWS." ORDER BY news_datestamp DESC LIMIT 0,17");
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 70);
echo "".THEME_SPACE."".THEME_BULLET." <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['global_078']."</center>\n";
}
closeside();
?>
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions