Thread: AdminCP slow
View Single Post
  #3  
Old 21st February 2012, 00:41
xenu xenu is offline
Member
 
Join Date: Dec 2011
Ukraine
Posts: 8
Default
yes I just checked the code now, and I notice the call back to get the version number to http://torrenttrader.org/tt2version.php in admincp.php. I guess that's the issue, I'll play around with it and see what happens.

Edit: I deleted the following code, and it went just fine.


Code:
if ($site_config["ttversion"] != "2-svn") {
		$file = @file_get_contents('http://www.torrenttrader.org/tt2version.php');
		if ($site_config['ttversion'] >= $file){
			echo "<br /><center><b>".T_("YOU_HAVE_LATEST_VER_INSTALLED")." v$site_config[ttversion]</b></center>";
		}else{
			echo "<br /><center><b><font color='#ff0000'>".T_("NEW_VERSION_OF_TT_NOW_AVAIL").": v".$file." you have v".$site_config['ttversion']."<br /> Please visit <a href=http://www.torrenttrader.org>TorrentTrader.org</a> to upgrade.</font></b></center>";
		}
	}
Reply With Quote