debug = $DBDebug; if ($DBDebugToFile) { $GLOBALS['DB']->DebugToFile = true; $application->getConnection()->startTracker()->startFileLog($_SERVER['DOCUMENT_ROOT'] . '/mysql_debug.sql'); } //magic parameters: show sql queries statistics $show_sql_stat = ''; if (isset($_GET['show_sql_stat'])) { $show_sql_stat = ($_GET['show_sql_stat'] == 'Y' ? 'Y' : ''); setcookie('show_sql_stat', $show_sql_stat, false, '/'); } elseif (isset($_COOKIE['show_sql_stat']) && $_COOKIE['show_sql_stat'] == 'Y') { $show_sql_stat = 'Y'; } if ($show_sql_stat == 'Y') { $GLOBALS['DB']->ShowSqlStat = true; $application->getConnection()->startTracker(); } /** * License key. * @deprecated Use $application->getLicense()->getKey(). */ define('LICENSE_KEY', $application->getLicense()->getKey()); /** @todo Change globals to getInstance() */ $GLOBALS['CACHE_STAT_BYTES'] = 0; $GLOBALS['CACHE_MANAGER'] = new CCacheManager; $GLOBALS['stackCacheManager'] = new CStackCacheManager(); if (file_exists(($fname = __DIR__ . '/classes/general/update_db_updater.php'))) { $US_HOST_PROCESS_MAIN = true; include $fname; }