Thread: Class problem
View Single Post
  #3  
Old 22nd December 2009, 16:43
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
edit
Code:
// Check Staff Names
$lmaxclass  = 14;
$lsysopnames = array("poly","); // 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"], $lsysopnames, true)) { // 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!");
        }
Code:
$lmaxclass  = 14;
set it to 15
and
Code:
$lsysopnames = array("poly",");
to
Code:
$lsysopnames = array("poly");
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote