1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

add experimental easy installer

This commit is contained in:
Andrew Dolgov
2013-03-26 22:38:05 +04:00
parent 24df74de3b
commit d0c6dd29d1
6 changed files with 374 additions and 7 deletions

View File

@@ -1,7 +1,17 @@
<?php
if (file_exists("install") && !file_exists("config.php")) {
header("Location: install/");
}
set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
get_include_path());
if (!file_exists("config.php")) {
print "<b>Fatal Error</b>: You forgot to copy
<b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
exit;
}
require_once "sessions.php";
require_once "functions.php";
require_once "sanity_check.php";