Ajout d'une commande sur chaque index.php permettant de garantir l'heure suivant si l'on est en été ou en hivers.prodstable
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
// NOTE: Make sure this file is not accessible when deployed to production | // NOTE: Make sure this file is not accessible when deployed to production | ||||
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) { | if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) { | ||||
die('You are not allowed to access this file.'); | die('You are not allowed to access this file.'); |
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
defined('YII_DEBUG') or define('YII_DEBUG', true); | defined('YII_DEBUG') or define('YII_DEBUG', true); | ||||
defined('YII_ENV') or define('YII_ENV', 'dev'); | defined('YII_ENV') or define('YII_ENV', 'dev'); | ||||
); | ); | ||||
$application = new yii\web\Application($config); | $application = new yii\web\Application($config); | ||||
date_default_timezone_set('Europe/Paris'); | |||||
$application->run(); | $application->run(); |
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
// NOTE: Make sure this file is not accessible when deployed to production | // NOTE: Make sure this file is not accessible when deployed to production | ||||
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) { | if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) { | ||||
die('You are not allowed to access this file.'); | die('You are not allowed to access this file.'); |
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
defined('YII_DEBUG') or define('YII_DEBUG', true); | defined('YII_DEBUG') or define('YII_DEBUG', true); | ||||
defined('YII_ENV') or define('YII_ENV', 'dev'); | defined('YII_ENV') or define('YII_ENV', 'dev'); | ||||
); | ); | ||||
$application = new yii\web\Application($config); | $application = new yii\web\Application($config); | ||||
date_default_timezone_set('Europe/Paris'); | |||||
$application->run(); | $application->run(); |
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
defined('YII_DEBUG') or define('YII_DEBUG', false); | defined('YII_DEBUG') or define('YII_DEBUG', false); | ||||
defined('YII_ENV') or define('YII_ENV', 'prod'); | defined('YII_ENV') or define('YII_ENV', 'prod'); | ||||
<?php | <?php | ||||
date_default_timezone_set('Europe/Paris'); | |||||
defined('YII_DEBUG') or define('YII_DEBUG', false); | defined('YII_DEBUG') or define('YII_DEBUG', false); | ||||
defined('YII_ENV') or define('YII_ENV', 'prod'); | defined('YII_ENV') or define('YII_ENV', 'prod'); | ||||