"; $config['email_headers'] = "From: " . $config['email_from'] . "\r\n"; ### Which interface sections should we show? $config['int_customers'] = 1; # Enable Customer Port Parsing $config['int_transit'] = 1; # Enable Transit Types $config['int_peering'] = 1; # Enable Peering Types $config['int_core'] = 1; # Enable Core Port Types $config['int_l2tp'] = 1; # Enable L2TP Port Types $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 ## 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]:"); $config['syslog_age'] = "1 month"; ## Time to keep syslog for in ## MySQL DATE_SUB format (eg '1 day', '1 month') ### Interface name strings to ignore $config['bad_if'] = array("null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0", "-atm layer", "-atm subif", "-shdsl", "-adsl", "-aal5", "-atm", "async", "plip", "-physical", "-signalling", "control plane", "bri", "-bearer", "ng", "bluetooth", "isatap", "ras", "qos", "miniport"); ### Mountpoints to ignore $config['ignore_mount'] = array("/kern", "/mnt/cdrom", "/dev", "/dev/pts", "/proc/bus/usb"); ### Style Options $list_colour_a = "#ffffff"; $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); ?>