git-svn-id: http://www.observium.org/svn/observer/trunk@432 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-05-11 14:59:40 +00:00
parent b260520d60
commit 42aa1bdf9e
2 changed files with 9 additions and 1 deletions

View File

@@ -82,6 +82,10 @@ $config['enable_pseudowires'] = 0; # Enable Cisco Pseudowires
## Uncomment this to enable display of rancid-collected configs ## Uncomment this to enable display of rancid-collected configs
#$config['rancid_configs'] = '/var/lib/rancid/network/configs/'; #$config['rancid_configs'] = '/var/lib/rancid/network/configs/';
## Uncomment this to enable usage of collectd rrds collectd hostnames must match observer hostnames!
#$config['collectd_dir'] = '/var/lib/collectd/rrd';
$config['cdp_autocreate'] = false; # Should we autocreate hosts we see via CDP? $config['cdp_autocreate'] = false; # Should we autocreate hosts we see via CDP?
$config['snmp_autodiscovery'] = false; # Should we scan for and autocreate hosts via snmp? $config['snmp_autodiscovery'] = false; # Should we scan for and autocreate hosts via snmp?
# SNMP autodiscovery is * NOT WORKING * # SNMP autodiscovery is * NOT WORKING *

View File

@@ -1,6 +1,8 @@
<?php <?php
@ini_set("session.gc_maxlifetime","10000");
@ini_set("session.gc_maxlifetime","0");
session_start(); session_start();
if($_GET['logout']) { if($_GET['logout']) {
@@ -12,6 +14,8 @@ if($_GET['logout']) {
mysql_query("INSERT INTO authlog (`user`,`address`,`result`) VALUES ('$olduser', '".$_SERVER["REMOTE_ADDR"]."', 'logged out')"); mysql_query("INSERT INTO authlog (`user`,`address`,`result`) VALUES ('$olduser', '".$_SERVER["REMOTE_ADDR"]."', 'logged out')");
$auth_message = "Logged Out"; $auth_message = "Logged Out";
} else { } else {
if($_POST['username'] && $_POST['password']){ if($_POST['username'] && $_POST['password']){
$username = mres($_POST['username']); $username = mres($_POST['username']);
$password = mres($_POST['password']); $password = mres($_POST['password']);