index.php
df43c987
 <?php
a22760d5
 
df43c987
 /**
87355db0
  * GitList: an elegant and modern git repository viewer
  * http://gitlist.org
df43c987
  */
 
2abf80e3
 if (!ini_get('date.timezone')) {
     date_default_timezone_set('UTC');
 }
 
a22760d5
 if (php_sapi_name() == 'cli-server' && file_exists(substr($_SERVER['REQUEST_URI'], 1))) {
26f3fecb
     return false;
 }
 
5122e91b
 if (!is_writable(__DIR__ . DIRECTORY_SEPARATOR . 'cache')) {
     die(sprintf('The "%s" folder must be writable for GitList to run.', __DIR__ . DIRECTORY_SEPARATOR . 'cache'));
 }
 
cd497812
 require 'vendor/autoload.php';
d46704d2
 
4e31de15
 
0db44293
 $Filepath____Config_Ini=$_SERVER['DOCUMENT_ROOT'] . "/../apconfig/GitList/Default-Version/config.ini";
4e31de15
 		
 $config = GitList\Config::fromFile($Filepath____Config_Ini);
92b01337
 
87355db0
 if ($config->get('date', 'timezone')) {
     date_default_timezone_set($config->get('date', 'timezone'));
92b01337
 }
 
ca172c2d
 $app = require 'boot.php';
d46704d2
 $app->run();
a22760d5