mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
I have removed the directory management features from Gitter and ported them to GitList, since they are application-specific logic. I was unhappy with the way directories and multiple directories were handled, so i altered almost everything. The tests are OK, but the coverage is not good. This means that i'll need som help from all GitList users that are actively testing the development version with multiple directories. I have removed the directory caching feature for now, it will be re-implemented soon.
27 lines
639 B
PHP
27 lines
639 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;
|
|
}
|
|
|
|
if (!is_writable(__DIR__ . DIRECTORY_SEPARATOR . 'cache')) {
|
|
die(sprintf('The "%s" folder must be writable for GitList to run.', __DIR__ . DIRECTORY_SEPARATOR . 'cache'));
|
|
}
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
$config = GitList\Config::fromFile('config.ini');
|
|
$app = require 'boot.php';
|
|
$app->run();
|
|
|