mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Added support for PHP built-in Web server
This commit is contained in:
@@ -10,6 +10,10 @@ if (!ini_get('date.timezone')) {
|
|||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(php_sapi_name() == 'cli-server' && file_exists(substr($_SERVER['REQUEST_URI'], 1))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
require 'vendor/autoload.php';
|
require 'vendor/autoload.php';
|
||||||
$app = require 'boot.php';
|
$app = require 'boot.php';
|
||||||
$app->run();
|
$app->run();
|
||||||
Reference in New Issue
Block a user