Thread: TBVERSION_Sonic
View Single Post
  #18  
Old 16th December 2012, 14:12
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
PHP Code:
function maxsysop () {
global 
$CURUSER;
// Check Staff Names
$lmaxclass  48;
$lsysopnames = array("your nick here","System",); // Case sensitive. Change this (YOUR SYSOP-ADMIN NAMES GOES HERE) (example: array("adminname1","adminname2","adminname3","adminname4","so far")
    
if ($CURUSER["class"] >= $lmaxclass)
        if (!
in_array($CURUSER["username"], $lsysopnamestrue)) { // true for strict comparison
            
$msg "Fake Account Detected: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
            
write_log($msg);
            
stderr("Access Denied!","We come to believe you are using a fake account, therefore we've logged this action!");
        }

// Check Staff IDS
define ('UC_OWNER'12); // Minumum Staff Level (9= UC_MODERATOR)
if ($CURUSER['class'] >= UC_OWNER) {
    
$allowed_ID = array(1,2,); // Change this (YOUR SYSOP-ADMIN IDS GOES HERE) (example: array(1,2,3,4,5))
        
if (!in_array((int)$CURUSER["id"], $allowed_IDtrue)) { // true for strict comparison
            
$msg "Fake Account Detected: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
            
write_log($msg);
            
stderr("Access Denied!","We come to believe you are using a fake account, therefore we've logged this action!");
        }        
    }
}

// Anti SQL injection 
where is says your nick here
you try to get in without set in bittorrent nick look at it lol

OR you put your nick or password in 3 times and the System banned you


and here is the overlibs i Forgot to add
Attached Files
File Type: rar overlib.rar (13.6 KB, 29 views)

Last edited by wMan; 16th December 2012 at 14:35.
Reply With Quote