status=true; } } function activate() { setcookie('alternc_debugme',true, time()+3600); // expire in 1 hour $this->status=""; ini_set('display_errors', true); 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; echo "
";
    echo "+++ BEGIN Debug Mode+++\n\n";
    print_r($this->infos);
    echo "\n\n--- GET ---\n";
    print_r($_GET);
    echo "\n\n--- POST ---\n";
    print_r($_POST);
    echo "\n\n--- SERVER ---\n";
    print_r($_SERVER);
    echo "\n\n+++ END Debug Mode+++";
    echo "
"; return true; } } /* Class debug_alternc */ ?>