status=true; ini_set('display_errors', true); } $this->nb_sql_query=0; $this->tps_sql_query=0; $this->generation_started=microtime(true); } function activate() { setcookie('alternc_debugme',true, time()+3600); // expire in 1 hour $this->status=""; return true; } function desactivate() { setcookie('alternc_debugme',false); $this->status=false; return true; } function add($txt) { $this->infos .= "\n$txt"; return true; } function dump() { global $cuid; if ( $cuid!=2000 ) return false; if ( ! $this->status ) return false; $generation_time = (microtime(true) - $this->generation_started) * 1000; echo "
"; return true; } } /* Class debug_alternc */ ?>