diff options
author | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:07:33 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-01-29 16:07:33 -0500 |
commit | b167721d5746c0d1791febbb213da0a0aed21aa2 (patch) | |
tree | e1c1c0af4b8d937f22b533b6edf0d1eeaf0083e4 /php/cfg/init.php | |
parent | Import existing bouncer.g.o into git (diff) | |
download | bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.gz bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.tar.bz2 bouncer-b167721d5746c0d1791febbb213da0a0aed21aa2.zip |
Modernize the database and mirror libraries
Diffstat (limited to 'php/cfg/init.php')
-rw-r--r-- | php/cfg/init.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/php/cfg/init.php b/php/cfg/init.php index 4eb6ed0..3e8f6fb 100644 --- a/php/cfg/init.php +++ b/php/cfg/init.php @@ -10,9 +10,7 @@ require_once(LIB.'/csv.php'); // util file for random functions (no SQL here) $start = microtime_float(); // start timer require_once(LIB.'/mirror.php'); // user and admin functions for the mirror app (some SQL) require_once(LIB.'/db.php'); // core mysql wrappers used in mirror functions -db_connect(DBHOST,DBUSER,DBPASS); // open persistent connection to db -db_select(DBNAME); // select db +DB::connect(DBHOST,DBUSER,DBPASS,DBNAME); // open persistent connection to db if (!empty($protect)) { require_once('admin_init.php'); } -?> |