Pārlūkot izejas kodu

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 pirms 8 gadiem
vecāks
revīzija
97b5f9cd3e
6 mainītis faili ar 22 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt