|
#11
|
|||
|
|||
Add it to your sql db in users and the users will get a specific passkey so it don
|
#12
|
|||
|
|||
You just got to fill in your db info into announce.php
__________________
Go here! ----> "HERE" |
#13
|
|||
|
|||
thanks,how fill my db info into announce.php??
$mysql_host = "localhost"; $mysql_user = "root"; $mysql_pass = "123456"; $mysql_db = "torrents"; is this??? |
#14
|
|||
|
|||
Quote:
that's the place :D
__________________
Go here! ----> "HERE" |
#15
|
|||
|
|||
please can somebody tell me where i edited in bittorrent i don`t understand where i edite
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? HIENA $lmaxclass = 6; // Max. Class, e.g: mine is: define ("UC_SYSOP", 8); $lsysopnames = array("Admin"); // 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]"); Last edited by HIENA; 13th August 2008 at 01:59. |
#16
|
|||
|
|||
#####IMPORTANT#####
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 #####IMPORTANT##### |
#17
|
|||
|
|||
i reed but i don`t understand in line 189 where i put the name
|
#18
|
|||
|
|||
Change the highlighted text to your username
$lsysopnames = array("Admin"); // Case sensitive. |
#19
|
|||
|
|||
Quote:
Code:
function maxsysop () { global $CURUSER; $lmaxsysop = 4; // How many sysop account on your website? HIENA $lmaxclass = 6; // Max. Class, e.g: mine is: define ("UC_SYSOP", 8); $lsysopnames = array("here you put your username"); // 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]");
__________________
Go here! ----> "HERE" |
#20
|
|||
|
|||
i write there but not working
Code:
function maxsysop () { global $CURUSER; $lmaxsysop = 4; // How many sysop account on your website? HIENA $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]"); |
Tags |
edition , netmaniack tbdev source , tbdev , tobbies |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TBDev Music Mania Edition | hellix | Downloads | 43 | 14th August 2013 12:51 |
TBDev Modded Edition v1.3? | jernej1 | Community Cafe | 3 | 29th January 2010 16:35 |
TBDev v2.0 Yuna Scatari Edition | BEST | TBDev | 0 | 16th October 2009 19:49 |
TBDev Catarr Edition Beta 0.1 | Mindfreak | Downloads | 9 | 30th July 2009 20:18 |
TBDev Bravo Edition | ANDiTKO | Community Cafe | 17 | 19th August 2008 23:27 |