View Single Post
  #6 (permalink)  
Old 05-23-2005, 02:42 PM
Marty Marty is offline
Member
 
Join Date: Jul 2004
Posts: 450
Re: Notice: Undefined variable: aid in admin.php on line 16
Originally Posted by VIPER_JOSH_RULZ
i get this error everytime i try to access anything in the Administration panel.

Notice: Undefined variable: aid in C:\Program Files\Apache Group\Apache2\htdocs\nuke\admin.php on line 16

i have tried:
Code:
DROP TABLE IF EXISTS nuke_authors; 
CREATE TABLE nuke_authors ( 
  aid varchar(25) NOT NULL default '', 
  name varchar(50) default NULL, 
  url varchar(255) NOT NULL default '', 
  email varchar(255) NOT NULL default '', 
  pwd varchar(40) default NULL, 
  counter int(11) NOT NULL default '0', 
  radminsuper tinyint(1) NOT NULL default '1', 
  admlanguage varchar(30) NOT NULL default '', 
  PRIMARY KEY  (aid), 
  KEY aid (aid) 
) TYPE=MyISAM;
but i still get the error and once logged into the admin panel. i click on a link and i go straight back to login to Admin screen (the error is up the top on every admin page)

can some1 please help me..
cheers,
Viper-Inc

lINE 15-20 of admin.php:
Code:
Line 15:   define('ADMIN_FILE', true);
Line 16:   if($aid AND (!isset($admin) OR empty($admin)) AND 
              $op!='login') {
Line 17:   unset($aid);
Line 18:   unset($admin);
Line 19:   echo "Access denied";
Line 20:   die();
Run the code again, but this time before you enter a new Admin username & password clear your browsers cookies.
__________________
What is Pay Per Play ?
ADVERTISING has commenced!!! We have launched!!!!!!!
Reply With Quote