Database ✅
It is too hard to rewrite all db functions, but we want to rid the efiction config file.
This:
require_once(_BASEDIR."includes/dbfunctions.php");
if(!empty($sitekey)) $dbconnect = dbconnect($dbhost, $dbuser,$dbpass, $dbname);deleted mysql option (e107 uses PDO, if available)
replaced db functions with e107 alternatives.
in e_module.php replaced
@ include_once(_BASEDIR."config.php");with:
$sitekey = defset(SITEKEY, "settings");
require_once(_BASEDIR."includes/dbfunctions.php");and content of this file replaced with used db functions (from mysqli_functions.php file):
<?php
function dbquery($query) {
}
function dbnumrows($query) {
}
function dbassoc($query) {
}
function dbinsertid($tablename = 0) {
}
function dbrow($query) {
}
function dbclose() {
}
// Used to escape text being put into the database.
function escapestring($str) {
}
Attempt to replace them with e107 db methods:
Clear replacement:
Last updated