<?php

date_default_timezone_set("Europe/Rome");
// if (time() <= strtotime('2025-07-19 10:00:00')) {
//     exit;
// }

// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);

// 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'))
    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);

// if (!YII_DEBUG) {
//     if (time() <= strtotime('2025-07-19 10:00:00')) {
//         exit;
//     }
// }


require_once $vendor . '/autoload.php';

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