View Single Post
  #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