View Single Post
  #28  
Old 4th March 2014, 23:39
wdq's Avatar
wdq wdq is offline
Senior Member
 
Join Date: Mar 2010
P2P
Posts: 45
Smile
Quote:
Originally Posted by Tones View Post
Thanks man I will try to see how it works back after to tell how it goes!!

DHT works without problems if there is a problem along'll let you know!

But until then here's what appears on the home page

Warning: exec() has been disabled for security reasons in /home/u899582385/public_html/index.php on line 736

Our Tracker Load: (0 %)(these stats are an approximation)


Warning: exec() has been disabled for security reasons in /home/u899582385/public_html/index.php on line 744


Warning: exec() has been disabled for security reasons in /home/u899582385/public_html/index.php on line 747


Have you any suggestions???




Look at this ...

Click the image to open in full size.




This is a simple one, your host deactivated the exec command for security reasons i believe that is the same with others so to have this working do not call exec directly tell to exec to give you the result so the fix is put an @in front of exec, so your code for copy and paste will be

PHP Code:
<div class="cont"><div class="sthead"><div class="headtxt">Server load</div></div>
<table width=100% border=0 cellspacing=0 cellpadding=10><tr><td align=center>
<table class=interiortable border=0 width=402><tr><td style='padding: 0px; background-repeat: repeat-x'>
<? $percent min(100round(@exec('ps ax | grep -c apache') / 256 30 ));
echo 
"<br>Our Tracker Load: ($percent %)(these stats are an approximation)<table class=interiortable border=0 width=400><tr><td style='padding: 0px; background-image: url(pic/loadbarbg.gif); background-repeat: repeat-x'>";

    if (
$percent <= 70$pic "http://www.bvlist.com/images/loadbargreen.gif";
     elseif (
$percent <= 90$pic "http://www.bvlist.com/images/loadbaryellow.gif";
      else 
$pic "http://www.bvlist.com/images/loadbarred.gif";
           
$width $percent 8;
echo 
"<img height=15 width=$width src=\"/$pic\" alt='$percent%'></td></tr></table>";
echo 
"" trim(@exec('uptime')) . "<br>";


  
$percent min(100round(@exec('ps ax | grep -c apache') / 256 150));
echo 
"<br>Global Server Load (All websites on current host servers): ($percent %)<table class=interiortable border=0 width=400><tr><td style='padding: 0px; background-image: url(images/loadbarbg.gif); background-repeat: repeat-x'>";

    if (
$percent <= 70$pic "http://www.bvlist.com/images/loadbargreen.gif";
     elseif (
$percent <= 90$pic "http://www.bvlist.com/images/loadbaryellow.gif";
      else 
$pic "http://www.bvlist.com/images/loadbarred.gif";
           
$width $percent 8;
echo 
"<img height=15 width=$width src=\"$pic\" alt='$percent%'></td></tr></table>"?>
Reply With Quote