1 Star 0 Fork 0

Git工具集 / gitlist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 690 Bytes
一键复制 编辑 原始数据 按行查看 历史
Klaus Silveira 提交于 2014-05-17 09:32 . Proper config namespace
<?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;
}
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');
if ($config->get('date', 'timezone')) {
date_default_timezone_set($config->get('date', 'timezone'));
}
$app = require 'boot.php';
$app->run();
PHP
1
https://gitee.com/vcs-all-in-one/gitlist.git
git@gitee.com:vcs-all-in-one/gitlist.git
vcs-all-in-one
gitlist
gitlist
master

搜索帮助