mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user