See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
//$path_to_root="..";
+define('MAX_DEADLOCK_RETRY', 3);
-
-if (strncmp(phpversion(), "5.4", 3) >= 0) // mysql_... functions deprecated from php 5.5
+if (function_exists('mysqli_connect'))
include_once("connect_db_mysqli.inc");
-else
- include_once("connect_db_mysql.inc");
+else
+ include_once("connect_db_mysql.inc"); // use deprecated mysql_* API as fallback on old servers
function db_get_version()
{
'it' => 'roman',
);
- return 'utf8_'.(isset($db_collation[$lang]) ? $db_collation[$lang] : 'general').'_ci';
+ return 'utf8_'.(isset($db_collation[$lang]) ? $db_collation[$lang] : 'unicode').'_ci';
}
/*
/*
Check database default charset.
*/
-function db_get_charset()
+function db_get_default_charset()
{
$result = db_query("SELECT @@character_set_database");
$var = db_fetch($result);
return $var[0];
}
-
-?>
\ No newline at end of file
+/*
+ SQL db profiling stub
+*/
+if (!function_exists('db_profile'))
+{
+ function db_profile($sql=false)
+ {
+ }
+}
\ No newline at end of file