public static function get_instance()
 {
     if (self::$instance == NULL) {
         self::$instance = new CodeAnalysis_ExecutionTimer();
     }
     return self::$instance;
 }
예제 #2
0
}
/*
 * Define which module is being asked for.
 */
define('MODULE', isset($_GET['module']) ? $_GET['module'] : 'admin');
/*
 * Define which page we are on.
 */
define('PAGE', isset($_GET['page']) ? $_GET['page'] : 'home');
if (DEBUG) {
    header('Content-Type: text/plain');
    echo DEBUG_DELIM_OPEN;
    require_once PROJECT_ROOT . '/haddock/code-analysis/classes/' . 'CodeAnalysis_ExecutionTimer.inc.php';
    require_once PROJECT_ROOT . '/haddock/formatting/classes/' . 'Formatting_FileName.inc.php';
    echo "Running in DEBUG mode...\n";
    $execution_timer = CodeAnalysis_ExecutionTimer::get_instance();
    $file = new Formatting_FileName(__FILE__);
    echo "In:\n";
    echo $file->get_pretty_name();
    echo "\n";
    echo 'print_r($_GET)' . "\n";
    print_r($_GET);
    echo "\n";
    echo 'print_r($_POST)' . "\n";
    print_r($_POST);
    echo "\n";
    echo 'print_r($_SERVER)' . "\n";
    print_r($_SERVER);
    echo "\n";
    echo 'print_r($_FILES)' . "\n";
    print_r($_FILES);