From 1d169baa216e3671187a587ee8f95c5e9bca2d14 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sun, 27 Feb 2005 19:49:45 +0000 Subject: Hardcoded /tmp cleanup --- usr/local/www/status.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/status.php b/usr/local/www/status.php index 1835f8d..b769cda 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -10,6 +10,10 @@ /* Execute a command, with a title, and generate an HTML table * showing the results. */ + +/* include all configuration functions */ +require_once("functions.inc"); + function doCmdT($title, $command) { echo "

\n"; echo "\n"; @@ -82,6 +86,8 @@ function execCmds() { } } +global $g; + /* Set up all of the commands we want to execute. */ defCmdT("System uptime","uptime"); defCmdT("Interfaces","/sbin/ifconfig -a"); @@ -123,7 +129,7 @@ defCmdT("last 50 filter log entries","/usr/sbin/clog /var/log/filter.log 2>&1 | defCmd("ls /conf"); defCmd("ls /var/run"); -defCmdT("cat /tmp/rules.debug","cat /tmp/rules.debug"); +defCmdT("cat {$g['tmp_path']}/rules.debug","cat {$g['tmp_path']}/rules.debug"); defCmdT("config.xml","dumpconfigxml"); -- cgit v1.1