Created
February 14, 2017 13:17
-
-
Save s-melnikov/1792a2c97e00e42018be81eae0df33de 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 | |
| define('COCKPIT_ADMIN', 1); | |
| // set default url rewrite setting | |
| if (!isset($_SERVER['COCKPIT_URL_REWRITE'])) { | |
| $_SERVER['COCKPIT_URL_REWRITE'] = 'Off'; | |
| } | |
| // set default timezone | |
| date_default_timezone_set('UTC'); | |
| // handle php webserver | |
| if (PHP_SAPI == 'cli-server' && is_file(__DIR__.parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) { | |
| return false; | |
| } | |
| // bootstrap cockpit | |
| require(__DIR__.'/bootstrap.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment