Remove support for non mysqli php access to DB

This commit is contained in:
Johan Pascal 2019-06-27 14:54:45 +07:00
parent cddbeda894
commit c13228870d
4 changed files with 4 additions and 28 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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
*/

View file

@ -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";