Created
October 12, 2018 13:56
-
-
Save thyseus/7b470819d7ae075fab8000ac1c553af0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```php | |
<?php | |
# Be careful. This stuff is powerful and possibly dangerous. Good Luck ! | |
if (false && $_SERVER['REMOTE_ADDR'] == '146.0.115.137') { | |
error_reporting(-1); | |
ini_set('display_errors', true); | |
defined('YII_DEBUG') or define('YII_DEBUG', true); | |
} | |
defined('YII_ENV') or define('YII_ENV', 'prod'); | |
require(__DIR__ . '/../vendor/autoload.php'); | |
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); | |
date_default_timezone_set('Europe/Berlin'); | |
$config = require(__DIR__ . '/../config/web.php'); | |
(new yii\web\Application($config))->run(); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment