Browse Source

Heure hiver/été

Ajout d'une commande sur chaque index.php permettant de garantir l'heure suivant
si l'on est en été ou en hivers.
prodstable
keun 8 years ago
parent
commit
97b5f9cd3e
6 changed files with 22 additions and 0 deletions
  1. +2
    -0
      environments/dev/backend/web/index-test.php
  2. +6
    -0
      environments/dev/backend/web/index.php
  3. +2
    -0
      environments/dev/frontend/web/index-test.php
  4. +6
    -0
      environments/dev/frontend/web/index.php
  5. +3
    -0
      environments/prod/backend/web/index.php
  6. +3
    -0
      environments/prod/frontend/web/index.php

+ 2
- 0
environments/dev/backend/web/index-test.php View File

@@ -1,5 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

// NOTE: Make sure this file is not accessible when deployed to production
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
die('You are not allowed to access this file.');

+ 6
- 0
environments/dev/backend/web/index.php View File

@@ -1,4 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

@@ -15,4 +18,7 @@ $config = yii\helpers\ArrayHelper::merge(
);

$application = new yii\web\Application($config);

date_default_timezone_set('Europe/Paris');

$application->run();

+ 2
- 0
environments/dev/frontend/web/index-test.php View File

@@ -1,5 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

// NOTE: Make sure this file is not accessible when deployed to production
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
die('You are not allowed to access this file.');

+ 6
- 0
environments/dev/frontend/web/index.php View File

@@ -1,4 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

@@ -15,4 +18,7 @@ $config = yii\helpers\ArrayHelper::merge(
);

$application = new yii\web\Application($config);

date_default_timezone_set('Europe/Paris');

$application->run();

+ 3
- 0
environments/prod/backend/web/index.php View File

@@ -1,4 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');


+ 3
- 0
environments/prod/frontend/web/index.php View File

@@ -1,4 +1,7 @@
<?php

date_default_timezone_set('Europe/Paris');

defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');


Loading…
Cancel
Save