1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-09 11:39:16 +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

@@ -15,7 +15,7 @@ function db_connect($host, $user, $pass, $db) {
$string .= " host=$host";
}
if (defined('DB_PORT')) {
if (defined('DB_PORT') && DB_PORT) {
$string = "$string port=" . DB_PORT;
}

View File

@@ -12,6 +12,10 @@
require_once "sanity_config.php";
if (file_exists("install") && !file_exists("config.php")) {
array_push($errors, "Please copy config.php-dist to config.php or run the installer in install/");
}
if (strpos(PLUGINS, "auth_") === FALSE) {
array_push($errors, "Please enable at least one authentication module via PLUGINS constant in config.php");
}