about summary refs log tree commit diff stats
path: root/classes/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Config.php')
-rw-r--r--classes/Config.php30
1 files changed, 1 insertions, 29 deletions
diff --git a/classes/Config.php b/classes/Config.php
index b125875..40cb077 100644
--- a/classes/Config.php
+++ b/classes/Config.php
@@ -263,10 +263,6 @@ class Config {
 
 		$errors = [];
 
-		/*if (strpos(self::get(Config::PLUGINS), "auth_") === false) {
-			array_push($errors, "Please enable at least one authentication module via PLUGINS");
-		}*/
-
 		if (function_exists('posix_getuid') && posix_getuid() == 0) {
 			array_push($errors, "Please don't run this script as root.");
 		}
@@ -275,35 +271,11 @@ class Config {
 			array_push($errors, "PHP version 7.1.0 or newer required. You're using " . PHP_VERSION . ".");
 		}
 
-		// TODO: add some relevant stuff
-
-		/*if (!class_exists("UConverter")) {
-			array_push($errors, "PHP UConverter class is missing, it's provided by the Internationalization (intl) module.");
-		}
-
-		if (!is_writable(self::get(Config::CACHE_DIR) . "/images")) {
-			array_push($errors, "Image cache is not writable (chmod -R 777 ".self::get(Config::CACHE_DIR)."/images)");
-		}
-
-		if (!is_writable(self::get(Config::CACHE_DIR) . "/upload")) {
-			array_push($errors, "Upload cache is not writable (chmod -R 777 ".self::get(Config::CACHE_DIR)."/upload)");
-		}
-
-		if (!is_writable(self::get(Config::CACHE_DIR) . "/export")) {
-			array_push($errors, "Data export cache is not writable (chmod -R 777 ".self::get(Config::CACHE_DIR)."/export)");
-		}
-
-		if (self::get(Config::SINGLE_USER_MODE) && class_exists("PDO")) {
-			if (UserHelper::get_login_by_id(1) != "admin") {
-				array_push($errors, "SINGLE_USER_MODE is enabled but default admin account (ID: 1) is not found.");
-			}
-		}*/
-
 		if (php_sapi_name() != "cli") {
-
 			if (self::get_schema_version() < 0) {
 				array_push($errors, "Base database schema is missing. Either load it manually or perform a migration (<code>update.php --update-schema</code>)");
 			}
+		}
 
 		if (count($errors) > 0 && php_sapi_name() != "cli") { ?>
 			<!DOCTYPE html>