Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Security (http://www.bvlist.com/showthread.php?t=8241)

Zeu 31st August 2012 01:49

Security
 
I want to stop a security can automatically promote sysop!

Chez 26th February 2013 16:49

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

x360zone 26th February 2013 16:51

hi
 
beat me to it chez :drink:
you can also delete the usergroup and remake


All times are GMT +2. The time now is 11:07.

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