Пример #1
0
    $crap = set_error_handler('PresciaErrorHandler');
    unset($crap);
}
# ab -n50 total mean: 20ms	16ms	16ms	16ms
require CONS_PATH_INCLUDE . "getBrowser.php";
# this will also detect if we are on mobile, required at domainLoad
$core->isbot = CONS_BROWSER == 'UN';
// bots are not logged and have twice as much cache time
if (!$core->isbot && CONS_HONEYPOT) {
    include CONS_PATH_SYSTEM . "lazyload/honeypot.php";
}
// start up honeypot detection if enabled
$core->domainLoad();
// locks domain, load config, start i18n, parses requested URL
define("CONS_FMANAGER", CONS_PATH_PAGES . $_SESSION['CODE'] . "/files/");
$core->servingFile = $core->checkDirectLink();
// if serving a file, will end here (if file is not set to statistics collection)
if (CONS_CACHE && !$core->servingFile) {
    $core->cacheControl->startCaches();
}
// detects which cache to use from auto-throttle system
# -- database and metadata load
if (!$core->dbconnect()) {
    $core->offlineMode = true;
}
# ab -n50 total mean: 30ms	27ms	26ms	26ms
if (!$core->loadMetadata()) {
    $core->errorControl->raise(1, "metamodel fault");
}
// loadMetadata loads dimconfig
if ($core->debugmode) {