System Info Script

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Tue Dec 12, 2006 9:26 pm    Post subject: System Info Script Reply with quote

I have been trying to find a suitable PHP script that will display system information (up time, disk usage, processor usage, network connections, etc.) of my windows xp server. I have found many, including one called "sysinfo" http://www.hotscripts.com/Detailed/12555.html . The problem is modifying these scripts to add/delete content. sysinfo is a huge one file script, that generates multiple pages. I have finally modified it to somewhat work, but it's not exactly what i want. Anyhow, I'm looking for a script that will simply collect a bunch of system info and store it as separate variables. For example, detect the computer's name and save it as $computer_name. Then I can create my own page and have php print the stored variable where i want it to appear. Has anyone created such a function?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Dec 12, 2006 9:40 pm    Post subject: Reply with quote

Try my server status script at http://www.abyssunderground.co.uk/scripts-serverstatusscript.php
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Wed Dec 13, 2006 2:02 am    Post subject: Reply with quote

Thanks, I looked at your script, but it wasn't quite robust enough for me. I ended up modifying that script i referenced in my first post. Here is the new code:
Code:
<?

/* This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

   You'll need php version 4.1.0 or above to get it all running.
   This is a modified version of the script by "the_gamblers@basmaaks.xs4all.nl"
   I (RTAdams89) have modifed the script to suit my needs. It may or may not work for you!
*/

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");   

// Ask for the config.php file with al the settings
require("config.php"); 

// reassign HTTP variables (incase register_globals is off)
if (!empty($HTTP_GET_VARS)) while(list($name, $value) = each($HTTP_GET_VARS)) $$name = $value;
if (!empty($HTTP_POST_VARS)) while(list($name, $value) = each($HTTP_POST_VARS)) $$name = $value;

// Set theme

$template = "theme";
require($template . '.php');


// Read the filetime of the index file
$filemod = filemtime("index.php");
$filemodtime = date("j F  Y h:i:s A", $filemod);
   


   //free disk space
   $diskfreec = round(diskfreespace("c:")  /  (1048576),2);
   $diskfreed = round(diskfreespace("d:")  /  (1048576),2);
   $diskfreee = round(diskfreespace("e:")  /  (1048576),2);
   $diskfreef = round(diskfreespace("f:")  /  (1048576),2);
   $diskfreeg = round(diskfreespace("g:")  /  (1048576),2);
   $diskfreeh = round(diskfreespace("h:")  /  (1048576),2);
   $diskfreei = round(diskfreespace("i:")  /  (1048576),2);
   $diskfreej = round(diskfreespace("j:")  /  (1048576),2);
   $diskfreek = round(diskfreespace("k:")  /  (1048576),2);
   $diskfreel = round(diskfreespace("l:")  /  (1048576),2);
   $diskfreem = round(diskfreespace("m:")  /  (1048576),2);
   $diskfreen = round(diskfreespace("n:")  /  (1048576),2);
   $diskfreeo = round(diskfreespace("o:")  /  (1048576),2);
   $diskfreep = round(diskfreespace("p:")  /  (1048576),2);
   $diskfreeq = round(diskfreespace("q:")  /  (1048576),2);
   $diskfreer = round(diskfreespace("r:")  /  (1048576),2);
   $diskfrees = round(diskfreespace("s:")  /  (1048576),2);
   $diskfreet = round(diskfreespace("t:")  /  (1048576),2);
   $diskfreeu = round(diskfreespace("u:")  /  (1048576),2);
   $diskfreev = round(diskfreespace("v:")  /  (1048576),2);
   $diskfreew = round(diskfreespace("w:")  /  (1048576),2);
   $diskfreex = round(diskfreespace("x:")  /  (1048576),2);
   $diskfreey = round(diskfreespace("y:")  /  (1048576),2);
   $diskfreez = round(diskfreespace("z:")  /  (1048576),2);

   //total disk space
   $disktotalc = round(disk_total_space("c:") /  (1048576),2);
   $disktotald = round(disk_total_space("d:") /  (1048576),2);
   $disktotale = round(disk_total_space("e:") /  (1048576),2);
   $disktotalf = round(disk_total_space("f:") /  (1048576),2);
   $disktotalg = round(disk_total_space("g:") /  (1048576),2);
   $disktotalh = round(disk_total_space("h:") /  (1048576),2);
   $disktotali = round(disk_total_space("i:") /  (1048576),2);
   $disktotalj = round(disk_total_space("j:") /  (1048576),2);
   $disktotalk = round(disk_total_space("k:") /  (1048576),2);
   $disktotall = round(disk_total_space("l:") /  (1048576),2);
   $disktotalm = round(disk_total_space("m:") /  (1048576),2);
   $disktotaln = round(disk_total_space("n:") /  (1048576),2);
   $disktotalo = round(disk_total_space("o:") /  (1048576),2);
   $disktotalp = round(disk_total_space("p:") /  (1048576),2);
   $disktotalq = round(disk_total_space("q:") /  (1048576),2);
   $disktotalr = round(disk_total_space("r:") /  (1048576),2);
   $disktotals = round(disk_total_space("s:") /  (1048576),2);
   $disktotalt = round(disk_total_space("t:") /  (1048576),2);
   $disktotalu = round(disk_total_space("u:") /  (1048576),2);
   $disktotalv = round(disk_total_space("v:") /  (1048576),2);
   $disktotalw = round(disk_total_space("w:") /  (1048576),2);
   $disktotalx = round(disk_total_space("x:") /  (1048576),2);
   $disktotaly = round(disk_total_space("y:") /  (1048576),2);
   $disktotalz = round(disk_total_space("z:") /  (1048576),2);

   //total free disk space
   $diskfree = $diskfreec + $diskfreed + $diskfreee + $diskfreef + $diskfreeg + $diskfreeh + $diskfreei + $diskfreej + $diskfreek + $diskfreel + $diskfreem + $diskfreen + $diskfreeo + $diskfreep + $diskfreeq + $diskfreer + $diskfrees + $diskfreet + $diskfreeu + $diskfreev + $diskfreew + $diskfreex + $diskfreey + $diskfreez;

   //disk space total
   $disktotal = $disktotalc + $disktotald + $disktotale + $disktotalf + $disktotalg + $disktotalh + $disktotali + $disktotalj + $disktotalk + $disktotall + $disktotalm + $disktotaln + $disktotalo + $disktotalp + $disktotalq + $disktotalr + $disktotals + $disktotalt + $disktotalu + $disktotalv + $disktotalw + $disktotalx + $disktotaly + $disktotalz;

   $diskusage = round(($disktotal-$diskfree),2);
   $diskusagec = round(($disktotalc-$diskfreec),2);
   $diskusedprecent = round((($diskusage/$disktotal ) * 100),2);
   $diskfreeprecent = round((($diskfree/$disktotal ) * 100),2);
   if ($disktotalc!=""){
      $diskusedprecentc = round((($diskusagec/$disktotalc ) * 100),2);
   }
   if ($disktotald!=""){
      $diskusaged = round(($disktotald-$diskfreed),2);
      $diskusedprecentd = round((($diskusaged/$disktotald ) * 100),2);
   }   
   if ($disktotale!=""){
      $diskusagee = round(($disktotale-$diskfreee),2);
      $diskusedprecente = round((($diskusagee/$disktotale ) * 100),2);
   }
   if ($disktotalf!=""){
      $diskusagef = round(($disktotalf-$diskfreef),2);
      $diskusedprecentf = round((($diskusagef/$disktotalf ) * 100),2);
   }
   if ($disktotalg!=""){
      $diskusageg = round(($disktotalg-$diskfreeg),2);
      $diskusedprecentg = round((($diskusageg/$disktotalg ) * 100),2);
   }
   if ($disktotalh!=""){
      $diskusageh = round(($disktotalh-$diskfreeh),2);
      $diskusedprecenth = round((($diskusageh/$disktotalh ) * 100),2);
   }
   if ($disktotali!=""){
      $diskusagei = round(($disktotali-$diskfreei),2);
      $diskusedprecenti = round((($diskusagei/$disktotali ) * 100),2);
   }
   if ($disktotalj!=""){
      $diskusagej = round(($disktotalj-$diskfreej),2);
      $diskusedprecentj = round((($diskusagej/$disktotalj ) * 100),2);
   }
   if ($disktotalk!=""){
      $diskusagek = round(($disktotalk-$diskfreek),2);
      $diskusedprecentk = round((($diskusagek/$disktotalk ) * 100),2);
   }
   if ($disktotall!=""){
      $diskusagel = round(($disktotall-$diskfreel),2);
      $diskusedprecentl = round((($diskusagel/$disktotall ) * 100),2);
   }
   if ($disktotalm!=""){
      $diskusagem = round(($disktotalm-$diskfreem),2);
      $diskusedprecentm = round((($diskusagem/$disktotalm ) * 100),2);
   }
   if ($disktotaln!=""){
      $diskusagen = round(($disktotaln-$diskfreen),2);
      $diskusedprecentn = round((($diskusagen/$disktotaln ) * 100),2);
   }
   if ($disktotalo!=""){
      $diskusageo = round(($disktotalo-$diskfreeo),2);
      $diskusedprecento = round((($diskusageo/$disktotalo ) * 100),2);
   }
   if ($disktotalp!=""){
      $diskusagep = round(($disktotalp-$diskfreep),2);
      $diskusedprecentp = round((($diskusagep/$disktotalp ) * 100),2);
   }
   if ($disktotalq!=""){
      $diskusageq = round(($disktotalq-$diskfreeq),2);
      $diskusedprecentq = round((($diskusageq/$disktotalq ) * 100),2);
   }
   if ($disktotalr!=""){
      $diskusager = round(($disktotalr-$diskfreer),2);
      $diskusedprecentr = round((($diskusager/$disktotalr ) * 100),2);
   }
   if ($disktotals!=""){
      $diskusages = round(($disktotals-$diskfrees),2);
      $diskusedprecents = round((($diskusages/$disktotals ) * 100),2);
   }
   if ($disktotalt!=""){
      $diskusaget = round(($disktotalt-$diskfreet),2);
      $diskusedprecentt = round((($diskusaget/$disktotalt ) * 100),2);
   }
   if ($disktotalu!=""){
      $diskusageu = round(($disktotalu-$diskfreeu),2);
      $diskusedprecentu = round((($diskusageu/$disktotalu ) * 100),2);
   }
   if ($disktotalv!=""){
      $diskusagev = round(($disktotalv-$diskfreev),2);
      $diskusedprecentv = round((($diskusagev/$disktotalv ) * 100),2);
   }
   if ($disktotalw!=""){
      $diskusagew = round(($disktotalw-$diskfreew),2);
      $diskusedprecentw = round((($diskusagew/$disktotalw ) * 100),2);
   }
   if ($disktotalx!=""){
      $diskusagex = round(($disktotalx-$diskfreex),2);
      $diskusedprecentx = round((($diskusagex/$disktotalx ) * 100),2);
   }
   if ($disktotaly!=""){
      $diskusagey = round(($disktotaly-$diskfreey),2);
      $diskusedprecenty = round((($diskusagey/$disktotaly ) * 100),2);
   }
   if ($disktotalz!=""){
      $diskusagez = round(($disktotalz-$diskfreez),2);
      $diskusedprecentz = round((($diskusagez/$disktotalz ) * 100),2);
   }

// The costum style sheet
$CSS = "<style type=\"text/css\">table td {background-color:$color_table;color:$font_info;font-family:$font_type;font-size:$font_size;}.head {background-color:$color_header;color:$font_table;}.body {font-family:$font_type;font-size:$font_size;background-color:$color_background;color:$font_text;}.generatedinfo {background-color:$color_table;color:$font_variables;font-family:$font_type;font-size:$font_size;}a:link {font-family:$font_type; color:$color_link;font-size: 11px; font-style: normal; text-decoration: none}a:active {font-family: $font_type; color:$color_alink; font-size: 11px; font-style: normal; text-decoration: none}a:visited {font-family:$font_type; color:$color_vlink; font-size: 11px; font-style: normal; text-decoration: none}a:hover {font-family:$font_type; color:$color_hlink; font-size: 11px; font-style: normal; text-decoration: underline}.buttons {font-family:$font_type; color:$button_text; font-size: 11px; border: 1px solid #C0C0C0;background-color:$button_color}.fields {border:1px solid #7C8184; font-family:$font_type; font-size: 11px; ;}.toneborder {border-color:$border_color;   border-width:$border_thick;   border-style:$border_style; }</style>";

// send the header of the page to the browser and begin the body
echo "<head><meta http-equiv=\"Content-Type\" content=\"text/html; \"charset=iso-8859-1\"\">";       
echo "$CSS<title>Sysinfo $Version for ".$_SERVER[SERVER_NAME]."</title></HEAD><BODY class=body>";
if ($usebackground==true){
   echo "<BODY BACKGROUND=\"$imgbackground\">";
}

// Gather info for main page

   $ip='localhost';
   $regels = explode("\n", `memory.exe`);
   $totaal_fysiek = round($regels[2] /1048576);
   $beschikbaar_fysiek = round($regels[3] /1048576);
   $gebruikt_fysiek = $totaal_fysiek - $beschikbaar_fysiek;
   $gebruikt_precent= round ((($gebruikt_fysiek/$totaal_fysiek ) * 100) ,2);
   $beschikbaar_precent = round ((($beschikbaar_fysiek/$totaal_fysiek) *100) ,2);
   $ipadres=gethostbyname($HTTP_SERVER_VARS['SERVER_NAME']);
   $ver = `ver`;
   $date = date('r');

   //Networkstatistics

   $line = explode("\n", `netstat -e`);
   $line = explode(" ",$line[4]);
            $cnt = 0;
            for ($i=0;$i<count($line);$i++) {
               if ($line[$i]=="") continue;
               if ($cnt==0) $text = ucfirst($line[$i]);
               elseif ($cnt==1) $rec = $line[$i];
               elseif ($cnt==2) $sent = $line[$i];             
               $cnt++;
            }
   
   $totalrecieve = round($rec /  (1048576),2);
   $totalsent = round($sent  /  (1048576),2);
   
   //uptime
   $uptime = (time() - filemtime($pagefile));
   $days = floor($uptime / (24*3600));
   $uptime = $uptime - ($days * (24*3600));
   $hours = floor($uptime / (3600));
   $uptime = $uptime - ($hours * (3600));
   $minutes = floor($uptime /(60));
   $uptime = $uptime - ($minutes * 60);
   $seconds = $uptime;
   if (!eregi("[0-9]{2}", $seconds)){
      $seconds = "0".$seconds;
   }
   if (!eregi("[0-9]{2}", $minutes)){
      $minutes = "0".$minutes;
   }
   if (!eregi("[0-9]{2}", $hours)){
      $hours = "0".$hours;
   }
   if($days == 1){
      $days = $days ." ".'day';
   }elseif($days == 0){
      $days="";
   }else{
      $days = $days ." ".'days';
   }
   if($hours == 1){
      $hours = $hours ." "."hour";
   }else{ $hours = $hours ." ".'hours';
   }
   if($minutes == 1){
      $minutes = $minutes ." "."minute";
   }else{ $minutes = $minutes ." ".'minutes';
   }
   if($seconds == 1){
      $seconds = $seconds ." "."second";
   }else{ $seconds = $seconds ." ".'seconds';
   }
   $theuptime = "".$days." ".$hours." ".$minutes." ".$seconds;
   
   //cpu information
   $CPUINFO =  "AMD Duron 1.60GHz";
   
   //memory information
   $MEMORYINFO =  "512MB";
   
   // Get the size of the swapfile
   $swapfile = round ((filesize($pagefile)) / (1048576),2);
   
if ($jump_var=="") {   
   
   //generate the general first html page and send it to the browser
   $show['treeharddisk']  =false;
   $ipconfig = `ipconfig -all`;
   $connections = `netstat -n`;
   echo "<center><table border=0><tr><td valign=top>"
   ."<table class=toneborder><tr><td class=head><center><b>"."General Info"."</b></center></td></tr>"
   ."<tr><td><table border=0>"
   ."<tr><td>"."Current Time".":</td><td><span class=generatedinfo>"
   .$date ." gmt"
   ."</span></td></tr><tr><td>"."System Uptime".":</td><td><span class=generatedinfo>"
   .$theuptime
   ."</span></td></tr><tr><td>"."IP Address".":</td><td><span class=generatedinfo>"
   .$ipadres." / ".$_SERVER[SERVER_NAME]
   ."</span></td></tr><tr><td>"."Operating System".":</td><td><span class=generatedinfo>"
   .$ver
   ."</span></td></tr><tr><td>"."Server Software".":</td><td><span class=generatedinfo>"
   .$_SERVER['SERVER_SOFTWARE']
   ."</span></td></tr><tr><td>"."CPU / Memory Info".":</td><td><span class=generatedinfo>"
   .$CPUINFO." / ".$MEMORYINFO
   ."</span></td></tr><tr><td>"."Swapfile".":</td><td><span class=generatedinfo>"
   ."The file " .$pagefile ." is " .$swapfile ." Mb"
   ."</span></table></table>";
   
      if ($usebackground==true){
      echo "<td valign=top class=body background=$imgbackground>";
      }else{
            echo "<td valign=top class=body>";
      }
      echo "<center><table class=toneborder><tr><td class=head><center><b>"."Running Servers"."</b></center></td></tr>"
      ."<tr><td><table border=0>";
      if($show['mysql']==true){
         echo "<tr><td>Sql:</td><td>";
         @$fp = fsockopen ($ip, $port['mysql'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      if($show['http']==true){
         echo "<tr><td>Http :</td><td>";
         @$fp = fsockopen ($ip, $port['http'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      if($show['ftp']==true){
         echo "<tr><td>Ftp:</td><td>";
         @$fp = fsockopen ($ip, $port['ftp'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['mail']==true){
         echo "<tr><td>Mail:</td><td>";
         @$fp = fsockopen ($ip, $port['mail'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['vnc']==true){
         echo "<tr><td>vnc:</td><td>";
         @$fp = fsockopen ($ip, $port['vnc'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['telnet']==true){
         echo "<tr><td>Telnet:</td><td>";
         @$fp = fsockopen ($ip, $port['telnet'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['pcanywhere']==true){
         echo "<tr><td>Pc Anywhere:</td><td>";
         @$fp = fsockopen ($ip, $port['pcanywhere'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['UPS']==true){
         echo "<tr><td>Active UPS:</td><td>";
         @$fp = fsockopen ($ip, $port['UPS'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['news']==true){
         echo "<tr><td>News:</td><td>";
         @$fp = fsockopen ($ip, $port['news'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      If($show['irc']==true){
         echo "<tr><td>Irc:</td><td>";
         @$fp = fsockopen ($ip, $port['irc'], &$errno, &$errstr, .2);
         if (!$fp) {
            echo "<font color=\"#FF0000\">"."Offline" ."</font>";
         } else {
            echo "<font color=\"#00FF00\">"."Online" ."</font>";
         }
         echo "</td></tr>";
      }
      echo "</table></table></center>";
   
   echo "</table><br><table class=toneborder><tr><td class=head><center><b>"."Total diskspace"." "
   .$disktotal ." Mb"
   ."</b></center></td><td class=head>"
   ."<center><b>"."Network Stats"."</b></center>"
   ."</td><td class=head><center><b>"."Total memory"." "
   .$totaal_fysiek ." Mb</b></center>"
   ."</td></tr><tr><td>"
   ."<table border=0>"
   ."<tr><td></TD><TD>"."total"."</td><td>"."Value"."</td><td>%</td>"
   ."<TR><td>"."Free".":</td><td><span class=generatedinfo>"
   .$diskfree ."</span> Mb"
   ."</td><td>"
   ."<img src=\"$barimg\" height=13 width=$diskfreeprecent ALT=\""."Value"."\">"
   ."</td><td>"
   .$diskfreeprecent
   ."<br></td></tr><tr><td>"."Used".":</td><td><span class=generatedinfo>"
   .$diskusage ."</span> Mb"
   ."</td><td>"
   ."<img src=\"$barimg\" height=13 width=$diskusedprecent ALT=\""."Value"."\">"
   ."</td><td>"
   .$diskusedprecent
   ."</td></tr>"
   ."</table>"
   ."</td><td rowspan=2>"
   ."<table border=0>"
   ."<td>"
   ."</td><td>&nbsp</td><td>"
   ."</td></tr><td>"."recieved".":</td><td><span class=generatedinfo>"
   .$totalrecieve ."</span> Mb"
   ."</td></tr><tr><td>"."sent".":</td><td><span class=generatedinfo>"
   .$totalsent ."</span> Mb"
   ."</td><td>&nbsp</td><td>"
   ."</td></table></td><td rowspan=2><table border=0><td></td></tr>"
   ."<td></td><td>"."total"."</td><td>"."Value"."</td><td>%</td></tr>"
   ."<td>"."Free".":</td><td><span class=generatedinfo>"
   .$beschikbaar_fysiek ."</span> Mb"
   ."</td><td>"
   ."<img src=\"$barimg\" height=13 width=$beschikbaar_precent ALT=\""."Value"."\">"
   ."</td><td>"
   .$beschikbaar_precent
   ."</td><td>"
   ."</td></tr><td>"."Used".":</td><td><span class=generatedinfo>"
   .$gebruikt_fysiek ."</span> Mb"
   ."</td><td>"
   ."<img src=\"$barimg\" height=13 width=$gebruikt_precent ALT=\""."Value"."\">"
   ."</td><td>"
   .$gebruikt_precent
   ."</td><td>"
   ."</td></tr></table></td></tr></table><BR>"
   ."</br>"
   ."<center><table class=toneborder><tr><td class=head><center><b>"."Harddisk details"."</b></center></td></tr>"
   ."<tr><td><table border=0><tr><td><center>"."Partition"."</center></td><td><center>"."Percent used"."</center></td><td><center>%</center></td><td><center>"."Free"."</center></td><td><center>"."Used"."</center></td><td><center>".$label['size']."</center>";

   if ($disktotalc!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-c>C:</A></td><td>";
      }else {echo "C:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentc ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentc</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreec ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagec ."</span> Mb"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalc ."</span> Mb</p>"
      ."</td><td>";
   }

   if ($disktotald!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-d>D:</A></td><td>";
      }else {echo "D:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentd ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentd</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreed ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusaged ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotald ."</span> Mb</p>"
      ."</td><td>";
   }

   if ($disktotale!=""){
      echo "<tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-e>E:</A></td><td>";
      }else {echo "E:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecente ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecente</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreee ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagee ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotale ."</span> Mb</p>"
      ."</td><td>";
   }

   if ($disktotalf!=""){
      echo "<tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-f>F:</A></td><td>";
      }else {echo "F:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentf ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentf</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreef ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagef ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalf ."</span> Mb</p>"
      ."</td><td>";
   }

   if ($disktotalg!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-g>G:</A></td><td>";
      }else {echo "G:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentg ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentg</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreeg ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusageg ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalg ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalh!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-h>H:</A></td><td>";
      }else {echo "H:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecenth ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecenth</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreeh ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusageh ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalh ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotali!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-i>I:</A></td><td>";
      }else {echo "I:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecenti ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecenti</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreei ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagei ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotali ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalj!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-j>J:</A></td><td>";
      }else {echo "J:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentj ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentj</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreej ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagej ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalj ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalk!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-k>K:</A></td><td>";
      }else {echo "K:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentk ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentk</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreek ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagek ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalk ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotall!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-l>L:</A></td><td>";
      }else {echo "L:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentl ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentl</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreel ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagel ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotall ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalm!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-m>M:</A></td><td>";
      }else {echo "M:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentm ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentm</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreem ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagem ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalm ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotaln!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-n>N:</A></td><td>";
      }else {echo "N:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentn ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentn</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreen ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagen ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotaln ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalo!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-o>O:</A></td><td>";
      }else {echo "O:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecento ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecento</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreeo ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusageo ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalo ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalp!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-p>P:</A></td><td>";
      }else {echo "P:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentp ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentp</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreep ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagep ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalp ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalq!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-q>Q:</A></td><td>";
      }else {echo "Q:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentq ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentq</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreeq ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusageq ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalq ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalr!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-r>R:</A></td><td>";
      }else {echo "R:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentr ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentr</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreer ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusager ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalr ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotals!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-s>S:</A></td><td>";
      }else {echo "S:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecents ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecents</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfrees ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusages ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotals ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalt!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-t>T:</A></td><td>";
      }else {echo "T:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentt ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentt</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreet ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusaget ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalt ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalu!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-u>U:</A></td><td>";
      }else {echo "U:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentu ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentu</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreeu ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusageu ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalu ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalv!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-v>V:</A></td><td>";
      }else {echo "V:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentv ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentv</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreev ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagev ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalv ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalw!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-w>W:</A></td><td>";
      }else {echo "W:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentw ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentw</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreew ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagew ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalw ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalx!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-x>X:</A></td><td>";
      }else {echo "X:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentx ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentx</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreex ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagex ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalx ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotaly!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-y>Y:</A></td><td>";
      }else {echo "Y:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecenty ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecenty</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreey ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagey ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotaly ."</span> Mb</p>"
      ."</td><td";
   }

   if ($disktotalz!=""){
      echo "</tr><tr><td>";
      If ($show['treeharddisk']==true){
         echo "<a href=index.php?jump_var=4-z>Z:</A></td><td>";
      }else {echo "Z:</TD><TD>";
   }
      echo "<img src=\"$barimg\" height=13 width=$diskusedprecentz ALT=\""."Value"."\">"
      ."</td><td><p align=right><span class=generatedinfo>$diskusedprecentz</span> %</p></td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskfreez ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$diskusagez ."</span> Mb</p>"
      ."</td><td><P ALIGN=right><span class=generatedinfo>"
      .$disktotalz ."</span> Mb</p>"
      ."</td><td";
   }

   echo "</td></tr>"
   ."<tr><td></td><td><td align=right><font size=-1><i>"."total"."</i></font></td><td><span class=generatedinfo>"
   .$diskfree ."</span> Mb"
   ."</td><td><span class=generatedinfo>"
   .$diskusage ."</span> Mb"
   ."</td><td><span class=generatedinfo>"
   .$disktotal ."</span> Mb"
   ."</td></tr></table></table><br></center>"
   ."<br>"
   ."<table border='0'>"
   ."<tr>"
   ."<td valign='top'>"
   ."</center><table class=toneborder><tr><td class=head><center><b>"."Network Enviroment"."</b></center></td></tr>"
   ."<tr><td><table border=0><tr><td><pre class=generatedinfo>"
   .$ipconfig
   ."</pre></td></tr></table></td></tr></table><br></center>"
   ."</td>"
   ."<td valign='top'>"
   ."</center><table class=toneborder><tr><td class=head><center><b>"."Current network connections"."</b></center></td></tr>"
   ."<tr><td><table border=0><tr><td><pre class=generatedinfo>"
   .$connections
   ."</pre></td></tr></table></td></tr></table><br></center>"
   ."</td>"
   ."</tr>"
   ."</table>"
   
   ;
}

// When this page is selected begins here generate the page with php info
else if ($jump_var=="1"){
   phpinfo();
}



// when this page is selected begins here generate the page with scheduled tasks
else if ($jump_var=="3"){

$url = "http://192.168.1.102:9554/main.htm";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERPWD, "admin:pass");
$result = curl_exec($ch);
curl_close($ch);
echo $result;

$url = "http://192.168.1.102:9554/meters.htm";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERPWD, "admin:pass");
$result = curl_exec($ch);
curl_close($ch);
echo $result;

}


// When this page is selected begins here generate the page with the running services
else if($jump_var=="5"){
   $servers= `net start`;
   echo "<center><table class=toneborder><tr><td class=head><center><b>"."Running services"."</b></center></td></tr>"
   ."<tr><td><table border=0><tr><td><pre class=generatedinfo>"
   .$servers
   ."</pre></td></tr></table></td></tr></table><br></center>";
}

// When this page is selected begins here generate the page with the loaded device drivers
else if($jump_var=="6"){
   $drivers= `drivers`;
   echo "<center><table class=toneborder><tr><td class=head><center><b>"."loaded drivers"."</b></center></td></tr>"
   ."<tr><td><table border=0><tr><td><pre class=generatedinfo>"
   .$drivers
   ."</pre></td></tr></table></td></tr></table><br></center>";
}



$update_form = "<form method=\"POST\" action=\"$PHP_SELF\">\n";

$dir = opendir('themes/');
while (($file = readdir($dir))!=false) {
    if ($file != 'CVS' && $file != '.' && $file != '..') {
      $file = ereg_replace('.php', '', $file);
        $update_form .= "\t\t";
        if ($template == $file) {
            $update_form .= "";
        }
        $update_form .= "\n";
    }
}
closedir($dir);



$dir = opendir('languages/');
while (($file = readdir($dir)) != false) {
    if ($file != 'CVS' && $file != '.' && $file != '..') {
        $file = ereg_replace('.php', '', $file);
        if ($lng == $file) {
            $update_form .= "\n";
        } else {
            $update_form .= "\n";
        }
    }
}
closedir($dir);

$update_form .= "\t</select>\n";

$update_form .= "\t&nbsp;" . "Choose page" . ":&nbsp;\n"
             . "\t<select name=\"jump_var\" class=fields>\n";

$update_form .= "\t\t<option value=>"."Mainpage"."</option>\n";
if ($show['pagephp']==true){
   $update_form .= "\t\t<option value=1>"."PHP Enviroment"."</option>\n";
}

if ($show['UPS']==true){
   $update_form .= "\t\t<option value=3>"."UPS"."</option>\n";
}

if ($show['pagerserv']==true){
   $update_form .= "\t\t<option value=5>"."Running services"."</option>\n";
}
if ($show['pagedrivers']==true){
   $update_form .= "\t\t<option value=6>"."loaded drivers"."</option>\n";
}


$update_form .= "\t</select>\n"
              . "\t<input type=\"submit\" value=\"" . "Apply" . "\" class=buttons>\n"
              . "</form>\n";

echo  "<CENTER> $update_form</CENTER>"
      ."<center><a href='nettools.php' target='_blank'>Net Tools</a>"
      ." | "
      ."<a href='phpshell.php' target='_blank'>PHP Shell</a></center>"

."<HR>";
?>
</BODY>


There is also a config.php file. Everyhtign on the page works fine, except for determining the processor and swap file usage.

How can I get the processor name (ie: "amd duron") and speed (ie: "1600MHz") into a variable?

How can I get the currently in use swap file into a variable?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group