mock('backend', LANDING_LANG, 'mail', 'trackEmail', '', '', array(
'mid' => $_GET['mid'],
'rid' => $_GET['rid']
));
}
// nel caso standard effettua il parsing della richiesta HTTP
else {
$request->parse();
}
$is_demo = file_exists(ROOT_SRC . 'var/service.demo');
$is_up = file_exists(ROOT_SRC . 'var/service.up');
// service.demo
if ($is_demo && $request->getApp() == LANDING_APP && !$request->skipDemo()) {
echo 'SITO IN AGGIORNAMENTO. TORNEREMO PRESTO ON LINE.
THIS SITE IS BEING UPDATED. WE WILL BE BACK ON LINE SOON.';
exit();
}
// service.up (o demo ma non frontend)
else if ($is_up || $is_demo) {
// bootstrap
Init::start($request, $is_demo);
// effettua il routing verso il controller richiesto
$router = new Router($request);
$router->route();
}
// service.down o mancante
else {
echo "Servizio temporaneamente non disponibile causa manutenzione, si prega di riprovare piu' tardi
Service temporarily unavailable due to maintenance, please retry later";
exit();
}
}
catch (\Exception $e) {
ExceptionDump::dump($request->isAjax(), $e);
}
}