From 2fc0b1c7df46119e18fdf68d490cb896790d83e0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 26 Oct 2005 18:23:29 +0000 Subject: require_once("config.inc") so that the $config structure is set for AJAX only queries --- usr/local/www/includes/functions.inc.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'usr') diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index 1d7da59..d87adcc 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -4,18 +4,19 @@ if(Connection_Aborted()) { exit; } +require_once("config.inc"); - function get_stats() { - $stats['cpu'] = cpu_usage(); - $stats['mem'] = mem_usage(); - $stats['uptime'] = get_uptime(); - $stats['states'] = get_pfstate(); - $stats['temp'] = get_temp(); +function get_stats() { + $stats['cpu'] = cpu_usage(); + $stats['mem'] = mem_usage(); + $stats['uptime'] = get_uptime(); + $stats['states'] = get_pfstate(); + $stats['temp'] = get_temp(); - $stats = join("|", $stats); + $stats = join("|", $stats); - return $stats; - } + return $stats; +} function get_uptime() { -- cgit v1.1