I see. I will try out. Thanks a lot
There's another issue. This is one of the modules I'm working on:
rdblist.php
|
Code:
|
<?php
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$querystr = "SELECT radminsuper, admlanguage FROM "
.$prefix."_authors where aid='$aid'";
$result = sql_query($querystr, $dbi) or die ("invalied query");
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {
function rdblist() {
include ("header.php");
GraphicAdmin();
OpenTable();
echo "<center><font class=\"title\">Test test</font></center>";
CloseTable();
include("footer.php");
}
}
?> |
case.rdblist.php
|
Code:
|
<?php
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
switch($op) {
case "rdblist":
include("admin/modules/rdblist.php");
break;
}
?> |
links.rdblist.php
|
Code:
|
<?php
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
if ($radminsuper == 1) {
adminmenu("admin.php?op=rdblist", ""._ROUTINGDB."", "reset.gif");
}
?> |
Everything looks set ok to me, however, when I click on the module icon in the Admin Panel, I get transferred to a white blank page. Any ideas what could causing this ?? =/