ProcessStats() public static method

Process the statistics for the request.
public static ProcessStats ( boolean &$p_statsOnly ) : boolean
$p_statsOnly boolean Is this request just for statistics.
return boolean
Esempio n. 1
0
<?php

$installPrefix = pathinfo($_SERVER['SCRIPT_NAME'], PATHINFO_DIRNAME);
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = substr($uri, strlen($installPrefix)) ?: '';
$uri = ltrim($uri, '/');
switch (true) {
    case substr($uri, 0, strlen('_statistics')) === '_statistics':
        require_once __DIR__ . '/classes/Statistics.php';
        $stats_only = false;
        Statistics::ProcessStats($stats_only);
        exit(0);
        break;
    case substr($uri, 0, strlen('api')) === 'api':
    case substr($uri, 0, strlen('_profiler')) === '_profiler':
        require_once __DIR__ . '/constants.php';
        require_once __DIR__ . '/../gimme/web/app.php';
        break;
    default:
        require_once __DIR__ . '/public/index.php';
}