Thread: maxsysops
View Single Post
  #1  
Old 14th October 2008, 22:40
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default maxsysops
Code:
//---- Max. Sysops v0.9 by xam
function maxsysop () {
    global $CURUSER,$rootpath, $lang;
    $lmaxclass  = UC_MODERATOR;
    $filename = $rootpath . 'config/STAFFNAMES';    
    $filename2 = $rootpath . 'config/STAFFIDS';    
    if ($CURUSER['class'] >= $lmaxclass) {
        $fp = fopen($filename, 'r');
        while (!feof($fp))
            { 
                $staffnames= fgets($fp);
                $results = explode(' ', $staffnames); 
            }
        $msg = 'Fake Account Detected: Username: '.$CURUSER['username'].' - UserID: '.$CURUSER['id'].' - UserIP : '.getip();
        $subject = 'Warning: Fake Account Detected!';
        $added = sqlesc(get_date_time());
        if (!in_array($CURUSER['username'], $results, true)) { // true for strict comparison

were the hell in that bit of code r u supposed to add ur username and id ???
Reply With Quote