<?php

date_default_timezone_set("Europe/Rome");

if (time() <= strtotime('2025-10-30 09:00:00')) {
    exit;
}

// change the following paths if necessary
$yii = dirname(__FILE__) . '/../yii30/yii.php';
$config = dirname(__FILE__) . '/protected/config/main.php';
$vendor = dirname(__FILE__) . '/protected/vendor';

// remove the following lines when in production mode
if ($_SERVER['SERVER_NAME'] == 'localhost' || str_contains($_SERVER['SERVER_NAME'], 'armosia.it')) {
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    defined('YII_DEBUG') or define('YII_DEBUG', true);
} else {
    defined('YII_DEBUG') or define('YII_DEBUG', false);
}
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

require_once $vendor . '/autoload.php';

require_once($yii);
Yii::createWebApplication($config)->run();
