Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 27th November 2011, 10:56
bilutza bilutza is offline
Member
 
Join Date: Sep 2009
P2P
Posts: 7
Default How i can disable a block
I have TorrentStrikeFullyModded and it gives me a error on index on server load block.

PHP Code:
Error:


Warningexec() has been disabled for security reasons in /home/a7156067/public_html/index.php on line 458 

This error can be fixed?I f not how i can disable server load block?
Thank you.
Reply With Quote
  #2  
Old 28th November 2011, 13:09
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 211
Default
Hey , you can remove that part of code that give you error .. this:
Code:
 <? //WILBA'S SERVERLOAD//
begin_frame("Server load",true,5);?>
<?
function getmicrotime(){
    list($usec, $sec) = explode(" ",microtime());
    return ((float)$usec + (float)$sec);
    }
$time_start = getmicrotime();
$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;

$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;
echo "<div align=\"center\">Our Tracker Load: ($percent  %)</div><table class=blocklist align=center border=0  width=400><tr><td style='padding: 0px; background-image:  url(pic/loadbarbg.gif); background-repeat: repeat-x'>";

//TRACKER LOAD
if ($percent <= 70) $pic_base_url = "pic/loadbargreen.gif";
     elseif ($percent <= 90) $pic_base_url = "pic/loadbaryellow.gif";
      else $pic_base_url = "pic/loadbarred.gif";
           $width = $percent * 4;
echo "<img height=15 width=$width src=\"$pic_base_url\" alt='$percent%'></td></tr></table><br>";
echo "<center>" . trim(exec('uptime')) . "</center><br>";

if (isset($load))
print("<tr><td class=blocklist>10min load average  (%)</td><td align=right>$load</td></tr>\n");

print (date("l d<\sup>S</\sup> F Y h:i A"));

$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;
echo "<div align=\"center\">Global Server Load (All websites on  current host servers): ($percent %)</div><table class=blocklist  align=center border=0 width=400><tr><td style='padding:  0px; background-image: url(pic/loadbarbg.gif); background-repeat:  repeat-x'>";

if ($percent <= 70) $pic_base_url = "pic/loadbargreen.gif";
  elseif ($percent <= 90) $pic_base_url = "pic/loadbaryellow.gif";
   else $pic_base_url = "pic/loadbarred.gif";
        $width = $percent * 4;
echo "<img height=15 width=$width src=\"$pic_base_url\" alt='$percent%'></td></tr></table>";
?>
<br>
<?end_frame();?>
So remove that ( from line 437 to 476 ) end save file & upload to host.
Good luck
Reply With Quote
Reply

Tags
block , disable

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 12:27. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.