diff --git a/src/admin.php b/src/admin.php index 0272a86..9a234ad 100644 --- a/src/admin.php +++ b/src/admin.php @@ -4,12 +4,7 @@ define("PATH_TO_CONFIG", "/etc/flexisip-account-manager/"); include PATH_TO_CONFIG . "xmlrpc.conf"; -if (USE_MYSQLI) { - include "mysqli-db.php"; -} else { - include "mysql-db.php"; -} - +include "mysqli-db.php"; include "logging.php"; include "utilities.php"; include "xmlrpc-accounts.php"; @@ -75,4 +70,4 @@ if ($argc >= 2) { exit; } -?> \ No newline at end of file +?> diff --git a/src/sms-sender.php b/src/sms-sender.php index 597d73d..9011b91 100644 --- a/src/sms-sender.php +++ b/src/sms-sender.php @@ -3,12 +3,7 @@ define("PATH_TO_CONFIG", "/etc/flexisip-account-manager/"); include PATH_TO_CONFIG . "xmlrpc.conf"; -if (USE_MYSQLI) { - include "mysqli-db.php"; -} else { - include "mysql-db.php"; -} - +include "mysqli-db.php"; include "xmlrpc-sms.php"; include "xmlrpc-accounts.php"; include "xmlrpc-aliases.php"; diff --git a/src/xmlrpc.conf b/src/xmlrpc.conf index 7fd9089..bb4dc6f 100644 --- a/src/xmlrpc.conf +++ b/src/xmlrpc.conf @@ -127,17 +127,8 @@ define("AUTH_REALM", "sip.example.org"); /* ### Database configuration ### */ -/* - * If set to True, use Mysqli API instead of Mysql one. - * - * Default value: False - */ -define("USE_MYSQLI", False); - /* * Whether or not use use persistent connections. - * ! It only works if USE_MYSQLI is set to True ! - * See http://php.net/manual/fr/function.mysqli-connect.php and http://php.net/manual/fr/mysqli.quickstart.connections.php * * Default value: False */ diff --git a/src/xmlrpc.php b/src/xmlrpc.php index ef04bf2..365e15e 100644 --- a/src/xmlrpc.php +++ b/src/xmlrpc.php @@ -7,12 +7,7 @@ include "logging.php"; include "utilities.php"; include "hooks.php"; include "authentication.php"; - -if (USE_MYSQLI) { - include "mysqli-db.php"; -} else { - include "mysql-db.php"; -} +include "mysqli-db.php"; if (SMS_API_ENABLED) { include "xmlrpc-sms.php";