mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
remove PDO, test some dbFacile
git-svn-id: http://www.observium.org/svn/observer/trunk@2276 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -15,6 +15,7 @@ include_once($config['install_dir'] . "/includes/syslog.php");
|
||||
include_once($config['install_dir'] . "/includes/rewrites.php");
|
||||
include_once($config['install_dir'] . "/includes/snmp.inc.php");
|
||||
include_once($config['install_dir'] . "/includes/services.inc.php");
|
||||
include_once($config['install_dir'] . "/includes/dbFacile.php");
|
||||
|
||||
function mac_clean_to_readable($mac)
|
||||
{
|
||||
|
||||
@@ -939,11 +939,11 @@ if (!$observium_link)
|
||||
}
|
||||
$observium_db = mysql_select_db($config['db_name'], $observium_link);
|
||||
|
||||
try {
|
||||
$db = new PDO('mysql:host='.$config['db_host'].';dbname='.$config['db_name'], $config['db_user'], $config['db_pass']);
|
||||
} catch (PDOException $e) {
|
||||
print "Error!: " . $e->getMessage() . "<br/>";
|
||||
}
|
||||
#try {
|
||||
# $db = new PDO('mysql:host='.$config['db_host'].';dbname='.$config['db_name'], $config['db_user'], $config['db_pass']);
|
||||
#} catch (PDOException $e) {
|
||||
# print "Error!: " . $e->getMessage() . "<br/>";
|
||||
#}
|
||||
|
||||
# Set some times needed by loads of scripts (it's dynamic, so we do it here!)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user