Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 31st August 2012, 01:49
Zeu Zeu is offline
Member
 
Join Date: Aug 2012
P2P
Posts: 2
Default Security
I want to stop a security can automatically promote sysop!
Reply With Quote
  #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
  #3  
Old 26th February 2013, 16:51
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default hi
beat me to it chez
you can also delete the usergroup and remake
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
Reply

Tags
security

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 21:43. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.