Add HTTP-Auth (thanks Allen Parker <parker a isohunt o com>)

git-svn-id: http://www.observium.org/svn/observer/trunk@972 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-02-28 02:20:05 +00:00
parent af4e0bc2ff
commit a8be5a36f8
6 changed files with 42 additions and 21 deletions
+4
View File
@@ -98,7 +98,11 @@ if($config['enable_nagios']) {
die;
}
$nagios_db = mysql_select_db($config['nagios_db_name'], $nagios_link);
}
# If we're on SSL, let's properly detect it
if(isset($_SERVER['HTTPS'])) {
$config['base_url'] = preg_replace('/^http:/','https:', $config['base_url']);
}
### Connect to database