View Single Post
  #11 (permalink)  
Old 07-04-2006, 01:30 AM
medulla medulla is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Well I found my own answer. Just in case anybody else runs into this, here is the answer.

Originally Posted by MetalhellsAngel
It's a sql statement error in admin/modules/nucalendar.php

Just open the file admin/modules/nucalendar.php

Find
Code:
if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

$result = sql_query("select radminlink, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminlink, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radminlink==1) OR ($radminsuper==1)) {
at the top of the file and replace it with this;

Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
Reply With Quote