View Single Post
  #30  
Old 30th August 2008, 13:54
LANDSER LANDSER is offline
Member
 
Join Date: May 2008
Posts: 9
Default
Quote:
Originally Posted by HIENA View Post
not work same massage


Code:
function maxsysop () {
global $CURUSER;
$lmaxsysop = 4; // How many sysop account on your website?
$lmaxclass  = 6; // Max. Class, e.g: mine is: define ("UC_SYSOP", 8);
$lsysopnames = array("HIENA"); // Case sensitive.
$query = mysql_query("SELECT COUNT(id) AS total FROM users WHERE class >= $lmaxclass")  or sqlerr(__FILE__, __LINE__); // get total sysops
list($info['maxsysop']) = mysql_fetch_row($query); // list

if ($info['maxsysop'] > $lmaxsysop)
    if ($CURUSER['class'] >= $lmaxclass)
      if (!in_array($CURUSER["username"], $lsysopnames)){
      write_log(htmlstrip($CURUSER['username'])." changed themselves to class ".htmlstrip($CURUSER['class']).". Current page: $_SERVER[PHP_SELF], previous page: $_SERVER[HTTP_REFERER]");
       mysql_query("UPDATE users set enabled='no' WHERE id=$CURUSER[id]");
      $msg="Fake Account Detected: Username: ."]".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
      $subject="Fake account detected, greater than SysOp!";
      mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg, subject) VALUES(0, 0, 1, '" . get_date_time() . "', " .sqlesc($msg) . ", ".sqlesc($subject).")") or sqlerr(__FILE__, __LINE__);
        stderr("Locked!","We come to believe you are using a fake account, therefore we've logged this action, and disabled your account!"); // die
        }
if(get_user_class() >= UC_MODERATOR){
   $adminids = array(5,x,xx);    // put your admins id in here like this (HIENA)
   if (!in_array($CURUSER['id'], $adminids)){

Fatal error: Call to undefined function htmlstrip() in C:\xampp\htdocs\include\bittorrent.php on line 191
Code:
function maxsysop () {
global $CURUSER;
$lmaxsysop = 4; // How many sysop account on your website?
$lmaxclass  = 6; // Max. Class, e.g: mine is: define ("UC_SYSOP", 8);
$lsysopnames = array("HIENA"); // Case sensitive.
$query = mysql_query("SELECT COUNT(id) AS total FROM users WHERE class >= $lmaxclass")  or sqlerr(__FILE__, __LINE__); // get total sysops
list($info['maxsysop']) = mysql_fetch_row($query); // list

if ($info['maxsysop'] > $lmaxsysop)
    if ($CURUSER['class'] >= $lmaxclass)
      if (!in_array($CURUSER["username"], $lsysopnames)){
      write_log(htmlstrip($CURUSER['username'])." changed themselves to class ".htmlstrip($CURUSER['class']).". Current page: $_SERVER[PHP_SELF], previous page: $_SERVER[HTTP_REFERER]");
       mysql_query("UPDATE users set enabled='no' WHERE id=$CURUSER[id]");
      $msg="Fake Account Detected: Username: ."]".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
      $subject="Fake account detected, greater than SysOp!";
      mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg, subject) VALUES(0, 0, 1, '" . get_date_time() . "', " .sqlesc($msg) . ", ".sqlesc($subject).")") or sqlerr(__FILE__, __LINE__);
        stderr("Locked!","We come to believe you are using a fake account, therefore we've logged this action, and disabled your account!"); // die
        }
if(get_user_class() >= UC_MODERATOR){
   $adminids = array(HIENA);    // put your admins id in here like this (HIENA)
   if (!in_array($CURUSER['id'], $adminids)){
ps: is some one to do to work this surce?(sory for my enghlis)
I do this:
"12. In bittorrent.php at line 189 add user ids and on line 174 add all sysop name on the site.
!if you dont edit this you will get the error on the line under at almost every page!
Fatal error: Call to undefined function htmlstrip() in C:\xampp\htdocs\include\bittorrent.php on line 191"
i have this eror:
Fatal error: Call to undefined function htmlstrip() in C:\xampp\htdocs\include\bittorrent.php on line 191
Reply With Quote

Last edited by LANDSER; 30th August 2008 at 15:26.
Reply With Quote
The Following 2 Users Say Thank You to LANDSER For This Useful Post:
PhuKetStar (10th September 2008), voicu (31st August 2008)