if($_GET['show_sql_stat'] == 'Y') { global $DB; $DB->ShowSqlStat = true; $debug = new CDebugInfo(); $debug->Start(); }