View Single Post
  #2  
Old 17th November 2012, 15:27
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Try my attached database from my old tracker based on Flux Zone... it will work


And about the login problem ... you will need to put your username and your id in bittorrent.php

here:

PHP Code:
function security_staff () 
{
    global 
$CURUSER;
    
$clasa  16//number class of Owner
    
$glavnii = array();
    
// Case sensitive. (example: array("adminname1","adminname2","adminname3","adminname4","so far")
    
if ($CURUSER["class"] >= $clasa)
        if (!
in_array($CURUSER["username"], $glavniitrue)) { // true for strict comparison
        
$msg "[b]ATENTIE ! - un idiot incearca sa atace trackerul :[/b]
        
        [b]Username[/b]: "
.$CURUSER["username"]." ; 
        [b]User ID[/b]: "
.$CURUSER["id"]." ;
        [b]IP[/b]: "
.getip();
        
mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, '1', '" get_date_time() . "', " .sqlesc($msg) . ")") or sqlerr(__FILE____LINE__);
mysql_query("UPDATE users set enabled='no' WHERE id=$CURUSER[id]") or sqlerr(__FILE____LINE__);
mysql_query("UPDATE users set class='1' WHERE id=$CURUSER[id]") or sqlerr(__FILE____LINE__);
        
stderr("Acces Denied!","Your username not found in security code, your account will be DISABLED.");
}



and here:

PHP Code:
function maxsysop () {
global 
$CURUSER;
// Check Staff Names
$lmaxclass  16;
$lsysopnames = array(); // 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"], $lsysopnamestrue)) { // 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!");
        }

// Check Staff IDS        
define ('UC_OWNER'15); // Minumum Staff Level (9= UC_MODERATOR)
if ($CURUSER['class'] >= UC_OWNER) {
    
$allowed_ID = array(1,2,3,4.5); // Change this (YOUR SYSOP-ADMIN IDS GOES HERE) (example: array(1,2,3,4,5))
        
if (!in_array((int)$CURUSER["id"], $allowed_IDtrue)) { // true for strict comparison
            
$msg "Fake Account Detected: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
            
write_log($msg);
                    
        }        
    }

Attached Files
File Type: sql u273381571_tb.sql (302.4 KB, 23 views)
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
Tones (17th November 2012)