From 3d8a4e1c642a1aca45b61437b606e46331affe73 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 13 Nov 2008 11:05:30 +0000 Subject: [PATCH] updates git-svn-id: http://www.observium.org/svn/observer/trunk@302 61d68cd4-352d-0410-923a-c4978735b2b8 --- config.php.default | 30 +++++------------------------- includes/static-config.php | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 includes/static-config.php diff --git a/config.php.default b/config.php.default index 79705dc8c7..becbc533fe 100755 --- a/config.php.default +++ b/config.php.default @@ -61,12 +61,12 @@ $config['favicon'] = "favicon.ico"; $config['header_color'] = "#1F334E"; $config['page_refresh'] = "30"; ## Refresh the page every xx seconds +$config['front_page'] = "pages/front/jt.php"; $config['email_default'] = "you@yourdomain"; $config['email_from'] = "Observer "; $config['email_headers'] = "From: " . $config['email_from'] . "\r\n"; - ### Which interface sections should we show? $config['int_customers'] = 1; # Enable Customer Port Parsing @@ -79,9 +79,9 @@ $config['show_locations'] = 1; # Enable Locations on menu ### Which additional features should we enable? -$config['enable_bgp'] = 1; # Enable BGP session collection and display - -$config['enable_syslog'] = 1; # Enable Syslog +$config['enable_bgp'] = 1; # Enable BGP session collection and display +$config['enable_syslog'] = 1; # Enable Syslog +$config['enable_billing'] = 1; # Enable BGP session collection and display ## If a syslog entry contails these strings it is deleted from the database $config['syslog_filter'] = array("last message repeated", "Connection from UDP: [127.0.0.1]:"); @@ -107,26 +107,6 @@ $list_colour_b = "#eeeeee"; $warn_colour_a = "#ffeeee"; $warn_colour_b = "#ffcccc"; -############################## -# No changes below this line # -############################## - -$config['version'] = "0.3.2-pre"; - -### Connect to database -if (!@mysql_connect($config['db_host'], $config['db_user'], $config['db_pass'])) { - echo "

MySQL Error

"; - die; -} -mysql_select_db($config['db_name']); - -# Set some times needed by loads of scripts (it's dynamic, so we do it here!) - -$now = time(); -$day = time() - (24 * 60 * 60); -$twoday = time() - (2 * 24 * 60 * 60); -$week = time() - (7 * 24 * 60 * 60); -$month = time() - (31 * 24 * 60 * 60); -$year = time() - (365 * 24 * 60 * 60); +include("includes/static-config.php"); ?> diff --git a/includes/static-config.php b/includes/static-config.php new file mode 100644 index 0000000000..e98282c8fa --- /dev/null +++ b/includes/static-config.php @@ -0,0 +1,25 @@ +MySQL Error"; + die; +} +mysql_select_db($config['db_name']); + +# Set some times needed by loads of scripts (it's dynamic, so we do it here!) + +$now = time(); +$day = time() - (24 * 60 * 60); +$twoday = time() - (2 * 24 * 60 * 60); +$week = time() - (7 * 24 * 60 * 60); +$month = time() - (31 * 24 * 60 * 60); +$year = time() - (365 * 24 * 60 * 60); + +?>