Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Class problem (http://www.bvlist.com/showthread.php?t=4032)

poly 21st December 2009 18:05

Class problem
 
when give grade 14 that is how Staff Leader appears will help me solve the problem

Search I found something I gave but I understood nothing of the topic

Code:

Access Denied!
We come to believe you are using a fake account, therefore we've logged this action!

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!");
        }


Phogo 22nd December 2009 15:46

remove ," bit at the end of polly

joeroberts 22nd December 2009 16:43

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");


All times are GMT +2. The time now is 12:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.