Thread: Security
View Single Post
  #2  
Old 26th February 2013, 16:49
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
I think you refer at Auto promote users

find in cleanup.php something like this and delete it:

PHP Code:
// promote power users
        
$limit 25*1024*1024*1024;
        
$minratio 1.05;
        
$maxdt sqlesc(get_date_time(gmtime() - 86400*28));
        
$res mysql_query("SELECT id FROM users WHERE class = 0 AND uploaded >= $limit AND (uploaded / downloaded >= $minratio OR downloaded=0) AND added < $maxdt") or sqlerr(__FILE____LINE__);
        if (
mysql_num_rows($res) > 0)
        {
                
$dt sqlesc(get_date_time());
                
$msg sqlesc("Felicitari, ai fost promovat la rangul de [b]Power User[/b]. :)\n");
                while (
$arr mysql_fetch_assoc($res))
                {
                        
mysql_query("UPDATE users SET class = 1 WHERE id = $arr[id]") or sqlerr(__FILE____LINE__);
                        
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id]$dt$msg, 0)") or sqlerr(__FILE____LINE__);
                }
        } 
but in your case is Sysop
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote