mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
24 lines
481 B
PHP
24 lines
481 B
PHP
<?php
|
|
|
|
/**
|
|
* GitList 0.3
|
|
* https://github.com/klaussilveira/gitlist
|
|
*/
|
|
|
|
// Set the default timezone for systems without date.timezone set in php.ini
|
|
if (!ini_get('date.timezone')) {
|
|
date_default_timezone_set('UTC');
|
|
}
|
|
|
|
if(php_sapi_name() == 'cli-server' && file_exists(substr($_SERVER['REQUEST_URI'], 1))) {
|
|
return false;
|
|
}
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
// Load configuration
|
|
$config = GitList\Config::fromFile('config.ini');
|
|
|
|
$app = require 'boot.php';
|
|
$app->run();
|