Hey, buddy. Found another bug. If you add a user through the Admin CP you will get a db error with the following code:
Quote:
Find: 154
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,showemail,invisible,usertitle,cu stomtitle,joindate,cookieuser,daysprune,lastvisit, lastactivity,lastpost,posts,timezoneoffset,emailno tification,receivepm,emailonpm,ipaddress,pmpopup,o ptions,birthday,canreportposts,profile) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashes(md5($apassword))." ','".addslashes(htmlspecialchars($email))."','$use rstyleid','".addslashes(htmlspecialchars($parentem ail))."','$coppauser','".addslashes(htmlspecialcha rs($homepage))."','".addslashes(htmlspecialchars($ icq))."','".addslashes(htmlspecialchars($aim))."', '".addslashes(htmlspecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($usertitle)."','$customt itle',$joindate,'$cookieuser','$daysprune',$lastvi sit,$lastactivity,$lastpost,'$posts','$timezoneoff set','$emailnotification','$receivepm','$emailonpm ','".addslashes($aipaddress)."','$pmpopup','$optio ns','$birthday')");
Replace it with:
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,showemail,invisible,usertitle,cu stomtitle,joindate,cookieuser,daysprune,lastvisit, lastactivity,lastpost,posts,timezoneoffset,emailno tification,receivepm,emailonpm,ipaddress,pmpopup,o ptions,birthday,canreportposts,profile) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashes(md5($apassword))." ','".addslashes(htmlspecialchars($email))."','$use rstyleid','".addslashes(htmlspecialchars($parentem ail))."','$coppauser','".addslashes(htmlspecialcha rs($homepage))."','".addslashes(htmlspecialchars($ icq))."','".addslashes(htmlspecialchars($aim))."', '".addslashes(htmlspecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($usertitle)."','$customt itle',$joindate,'$cookieuser','$daysprune',$lastvi sit,$lastactivity,$lastpost,'$posts','$timezoneoff set','$emailnotification','$receivepm','$emailonpm ','".addslashes($aipaddress)."','$pmpopup','$optio ns','$birthday','$lockprofile')");
|
You need to add lockprofile before the ) VALUES (NULL,
|