setConfigEntry('OUTPUT_MODE', 'render');
} // END - if
+ // CFG: DATABASE-TYPE
+ setConfigEntry('_DB_TYPE', 'mysql3');
+
// Include more
foreach (array('inc/databases.php','inc/versions.php','inc/db/lib.php','inc/session.php','inc/install-functions.php','inc/load_config.php') as $inc) {
// Load the include
// Loads stats table
function loadStatsTable () {
+ // Check if the link is up
+ if (!SQL_IS_LINK_UP()) return false;
+
// Do we have it there for today?
if (!isStatsTableCreated()) {
// Then create a default one
// Checks if the the statistics table is created
function isStatsTableCreated () {
+ // Check if the link is up
+ if (!SQL_IS_LINK_UP()) return false;
+
// Ask for it
$result = SQL_QUERY_ESC("SHOW TABLES LIKE '{?_MYSQL_PREFIX?}_stats_%s'",
array(date('Ymd', time())), __FUNCTION__, __LINE__);
// Create the dummy table
function createStatsTable () {
+ // Check if the link is up
+ if (!SQL_IS_LINK_UP()) return false;
+
// Create it here
$result = SQL_QUERY_ESC("CREATE TABLE IF NOT EXISTS `{?_MYSQL_PREFIX?}_stats_%s` (
`stats_entry` VARCHAR(100) NOT NULL DEFAULT '',
// Write all entries to the table
function writeStatsTable () {
+ // Check if the link is up
+ if (!SQL_IS_LINK_UP()) return false;
+
// Empty the table first
SQL_QUERY_ESC("TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`",
array(date('Ymd', time())), __FUNCTION__, __LINE__);