Files
librenms-librenms/includes/static-config.php
T

30 lines
695 B
PHP
Raw Normal View History

2008-11-13 11:05:30 +00:00
<?php
2008-11-21 14:44:29 +00:00
## ifDescr whitelist (used instead of ifName)
$config['ifdescr']['IOS'] = true;
2009-03-11 14:50:24 +00:00
2008-11-13 11:05:30 +00:00
##############################
# No changes below this line #
##############################
2008-11-20 15:35:39 +00:00
$config['version'] = "0.4.1";
2008-11-13 11:05:30 +00:00
### Connect to database
if (!@mysql_connect($config['db_host'], $config['db_user'], $config['db_pass'])) {
echo "<h2>MySQL Error</h2>";
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);
?>