- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 148 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Fatal Error in admin.php: undefined function: opentable() [ ]
Author
Message
Stoermer
Nuke Cadet
Joined: Jan 26, 2003
Posts: 6
Location: USA
Posted:
Sun Jan 26, 2003 1:51 pm
Fatal error: Call to undefined function: opentable() in /www/html/admin.php on line 134
Hi all,
I am running 6.0 and I was playing around with a new theme and it didn't work out, so I went to a default theme and am now getting the above error.
I took a fresh copy of the admin.php from my tar ball and reinstalled it, thinking something may have gotten mucked up.
Here is the code:
Code:
function GraphicAdmin() {
global $aid, $admingraphic, $language, $admin, $prefix, $dbi;
$result = sql_query("SELECT qid FROM ".$prefix."_queue", $dbi);
$newsubs = sql_num_rows($result, $dbi);
$result = sql_query("select radminarticle,radmintopic,radminuser,radminsurvey,radminsection,radminlink,radminephem,radminfaq,radmindownload,radminreviews,radminnewsletter,radminforum,radmincontent,radminency,radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminarticle,$radmintopic,$radminuser,$radminsurvey,$radminsection,$radminlink,$radminephem,$radminfaq,$radmindownload,$radminreviews,$radminnewsletter,$radminforum,$radmincontent,$radminency,$radminsuper) = sql_fetch_array($result, $dbi);
OpenTable(); // <<-- LINE 134 as mentioned in ERROR
echo "<center><a href=\"admin.php\"><font class='title'>"._ADMINMENU."</font></a>";
echo "<br><br>";
echo"<table border=\"0\" width=\"100%\" cellspacing=\"1\"><tr>";
$linksdir = dir("admin/links");
while($func=$linksdir->read()) {
if(substr($func, 0, 6) == "links.") {
$menulist .= "$func ";
}
}
closedir($linksdir->handle);
$menulist = explode(" ", $menulist);
sort($menulist);
for ($i=0; $i < sizeof($menulist); $i++) {
if($menulist[$i]!="") {
$counter = 0;
include($linksdir->path."/$menulist[$i]");
}
}
adminmenu("admin.php?op=logout", ""._ADMINLOGOUT."", "logout.gif");
echo"</tr></table></center>";
CloseTable();
echo "<br>";
}
Any thoughts?
TIA
Pete
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Jan 26, 2003 2:20 pm
Check your "Default_Theme" setting in nuke_config.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
Wizarium
Nuke Soldier
Joined: Jan 15, 2003
Posts: 26
Location: USA
Posted:
Sun Jan 26, 2003 3:44 pm
Also, whenever you are changing around themes and suddenly get errors, try clearing your temp internet files AND especially cookies, since theme information is stored there. Probably won't help the problem you listed, doesn't sound familiar, but you never know...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum