diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-05-24 17:41:35 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-05-24 17:41:35 +0300 |
| commit | 9a3e28ab2cab3aecf1a1c2c6848b84dc9d47e56a (patch) | |
| tree | 563d7be29bd83794532aefad79267efb811661c7 /classes/Config.php | |
| parent | 5d5eccaeee67173c9f8effd94f148fdd4d6515df (diff) | |
| download | the-epube-9a3e28ab2cab3aecf1a1c2c6848b84dc9d47e56a.tar.gz the-epube-9a3e28ab2cab3aecf1a1c2c6848b84dc9d47e56a.tar.xz | |
cleanup, fix missing bracket
Diffstat (limited to 'classes/Config.php')
| -rw-r--r-- | classes/Config.php | 30 |
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> |
