git-svn-id: http://www.observium.org/svn/observer/trunk@2248 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-05 13:04:38 +00:00
parent 63b25bb2f7
commit ec5e826b30
5 changed files with 39 additions and 22 deletions
+6
View File
@@ -124,6 +124,12 @@ $config['show_overview_tab'] = true;
$config['overview_show_sysDescr'] = true;
### Enable version checker & stats
$config['version_check'] = 1; # Enable checking of version in discovery
# and submittal of basic stats used
# to prioritise development effort :)
### Poller/Discovery Modules
$config['enable_bgp'] = 1; # Enable BGP session collection and display
+12 -1
View File
@@ -884,7 +884,18 @@ if (isset($config['enable_printers']) && $config['enable_printers'])
# No changes below this line #
##############################
$config['version'] = "0.11";
$config['version'] = "0.11.5.2245";
if (file_exists('.svn/entries'))
{
$svn = File('.svn/entries');
$svn_rev = trim($svn[3]);
list($svn_date) = explode("T", trim($svn[9]));
list($svn_year, $svn_month, $svn_day) = explode("-", $svn_date);
$config['version'] = "0." . ($svn_year-2000) . "." . ($svn_month+0) . "." . $svn_rev;
} else {
$config['version'] = $config['version'] . "." . $config['release'];
}
if (isset($config['rrdgraph_def_text']))
{