summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-02-27 19:49:45 +0000
committerBill Marquette <billm@pfsense.org>2005-02-27 19:49:45 +0000
commit1d169baa216e3671187a587ee8f95c5e9bca2d14 (patch)
tree86dc065d92ebe79c70c03a7d69c640a3c8efc3db /usr/local/www/status.php
parentac892191cca343dcb910c5fd81ec50f06ca941b0 (diff)
downloadpfsense-1d169baa216e3671187a587ee8f95c5e9bca2d14.zip
pfsense-1d169baa216e3671187a587ee8f95c5e9bca2d14.tar.gz
Hardcoded /tmp cleanup
Diffstat (limited to 'usr/local/www/status.php')
-rwxr-xr-xusr/local/www/status.php8
1 files changed, 7 insertions, 1 deletions
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 "<p>\n";
echo "<a name=\"" . $title . "\">\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");
OpenPOWER on IntegriCloud