- gitlist.git
- public
- index.php
This file ( 730B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
<?php
/**
* GitList: an elegant and modern git repository viewer
* http://gitlist.org
*/
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;
}
$cacheFolder = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'cache';
if (!is_writable($cacheFolder)) {
die(sprintf('The "%s" folder must be writable for GitList to run.', $cacheFolder));
}
require '../vendor/autoload.php';
$config = GitList\Config::fromFile('../config.ini');
if ($config->get('date', 'timezone')) {
date_default_timezone_set($config->get('date', 'timezone'));
}
$app = require '../boot.php';
$app->run();