diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 21:55:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 21:55:02 +0000 |
commit | 7e457d51eba5a37aadf1d93a9589aa4a0bb2813e (patch) | |
tree | 384049e8e168118350e4d0c8c8a998d04b23601f /usr/local/www/index.php | |
parent | a3d1ff72fabecd4c85bbc040af5ca26d43a6cbc0 (diff) | |
download | pfsense-7e457d51eba5a37aadf1d93a9589aa4a0bb2813e.zip pfsense-7e457d51eba5a37aadf1d93a9589aa4a0bb2813e.tar.gz |
Nuke old update code. We use ajax now
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 5b207c6..ff3db60 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -248,88 +248,3 @@ include("fbegin.inc"); </body> </html> -<?php -#exit; -/* -if (preg_match("/MSIE/i", $_SERVER["HTTP_USER_AGENT"])) { - echo "<meta http-equiv=\"refresh\" content=\"30;url=index.php\">"; - exit; -} - -$counter = 0; - -While(!Connection_Aborted()) { -*/ - /* Update CPU meter */ -/* - sleep(1); - $cpuTicks = get_cputicks(); - sleep(2); - $cpuTicks2 = get_cputicks(); - $cpuUsage = get_cpuusage($cpuTicks, $cpuTicks2); -*/ - /* Update memory usage */ -/* - exec("/sbin/sysctl -n vm.stats.vm.v_active_count vm.stats.vm.v_inactive_count " . - "vm.stats.vm.v_wire_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count", $memory); - - $totalMem = $memory[0] + $memory[1] + $memory[2] + $memory[3] + $memory[4]; - $freeMem = $memory[4]; - $usedMem = $totalMem - $freeMem; - $memUsage = round(($usedMem * 100) / $totalMem, 0); - - echo "<script language="javascript">\n"; - echo "document.forms[0].uptime.value = "" . get_uptime() . "";\n"; - echo "document.forms[0].pfstate.value = "" . get_pfstate() . "";\n"; - - echo "document.cpuwidtha.style.width="" . $cpuUsage . "px";\n"; - echo "document.cpuwidthb.style.width="" . (100 - $cpuUsage) . "px";\n"; - echo "document.forms[0].cpumeter.value = "" . $cpuUsage . "%";\n"; - - echo "document.memwidtha.style.width="" . $memUsage . "px";\n"; - echo "document.memwidthb.style.width="" . (100 - $memUsage) . "px";\n"; - echo "document.forms[0].memusagemeter.value = "" . $memUsage . "%";\n"; - - if (file_exists("/etc/48xx")) { -*/ - /* Update temp. meter */ -/* - $Temp = rtrim(`/usr/local/sbin/env4801 | grep Temp |cut -c24-25`); - echo "document.Tempwidtha.style.width="" . $Temp . "px";\n"; - echo "document.Tempwidthb.style.width="" . (100 - $Temp) . "px";\n"; - echo "document.forms[0].Tempmeter.value = "" . $Temp . "C";\n"; - } -*/ -/* - exec("df -h | grep -w "/" | awk "{ print $5 }" | cut -d "%" -f 1", $dfout); - $diskusage = trim($dfout[0]); - - echo "document.Diskwidtha.style.width="" . $diskusage . "px";\n"; - echo "document.Diskwidthb.style.width="" . (100 - $diskusage) . "px";\n"; - echo "document.forms[0].Diskmeter.value = "" . $diskusage . "%";\n'; -*/ -/* - echo '</script>\n'; - - if(are_notices_pending() == true and $found_notices == false) { -*/ - /* found a notice, lets redirect so they can see the notice */ -/* - $counter = 500; - } - */ - /* - * prevent user from running out of ram. - * firefox and ie can be a bear on ram usage! - */ -/* - $counter++; - if($counter > 120) { - echo 'Redirecting to <a href=\'index.php\'>Main Status</a>.<p>'; - echo '<meta http-equiv=\'refresh\' content=\'1;url=index.php\'>'; - exit; - } - -} -*/ -?> |