Code: Select all
if (!eregi("admin.php", $_SERVERї'PHP_SELF'])) { die ("Access Denied"); }
$result = sql_query("select radmintopic, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radmintopic, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radmintopic==1) OR ($radminsuper==1)) {
/*********************************************************/
/* Topics Manager Functions */
/*********************************************************/
function topicsmanager() {
global $prefix, $dbi, $ThemeSel;
include("header.php");
GraphicAdmin();
OpenTable();
echo "<center><font class="title"><b>"._TOPICSMANAGER."</b></font></center>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class="option"><b>"._CURRENTTOPICS."</b></font><br>"._CLICK2EDIT."</font></center><br>"
."<table border="0" width="100%" align="center" cellpadding="2">";
$count = 0;
$result = sql_query("select topicid, topicname, topicimage, topictext from ".$prefix."_topics order by topicname", $dbi);
while(list($topicid, $topicname, $topicimage, $topictext) = sql_fetch_array($result, $dbi)) {
echo "<td align="center"><a href="admin.php?op=topicedit&topicid=$topicid"><img src="themes/$ThemeSel/images/topics/$topicimage" border="0" alt=""></a><br>"
}Please please please, you code gurus out there, just cast your experienced eyes over this for just a second! LOL
I know this isn't a hardcore Nuke support forum but figured the syntax is the problem here - that and I'm sure there are more experienced folk here anyways!
Many thanks!