Ver código fonte

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.
master
keun 8 anos atrás
pai
commit
97b5f9cd3e
6 arquivos alterados com 22 adições e 0 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

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


Carregando…
Cancelar
Salvar