From f11809bcd7840102961fede4e3f77799ce96581f Mon Sep 17 00:00:00 2001 From: Sam Tuke Date: Fri, 12 Apr 2019 19:17:22 +0200 Subject: [PATCH] Revert PR 508 (Check for required PHP extensions): db34c25fdfa20b903b092e583cf6d2c9f0f8332a, cc3a07af8bd8fc9dc51bd1ba3a6da18e46860a4f, f792b538b93e366171d16b329116815e275e456a --- public_html/lists/admin/index.php | 37 ------------------------------- 1 file changed, 37 deletions(-) diff --git a/public_html/lists/admin/index.php b/public_html/lists/admin/index.php index a3e829c1f..aaa2894b1 100644 --- a/public_html/lists/admin/index.php +++ b/public_html/lists/admin/index.php @@ -23,42 +23,6 @@ // Remove when php5.X is unsupported, currently 31 Dec 2018, https://secure.php.net/supported-versions.php require_once dirname(__FILE__).'/inc/random_compat/random.php'; -// Check if required PHP modules are installed. -$requiredExtensions = array( - 'pcre', - 'core', - 'date', - 'hash', - 'spl', - 'filter', - 'openssl', - 'mbstring', - 'session', - 'xml', - 'curl', - 'iconv', - 'json', - 'gettext', - 'simplexml', - 'mysqli', - 'gd', -); - -$notInstalled = array(); - -foreach ($requiredExtensions as $value) { - if (!extension_loaded($value)) { - array_push($notInstalled, $value); - } -} -if (count($notInstalled) > 0) { - $message = "The following PHP extensions are missing:" . '
'; - foreach ($notInstalled as $value) { - $message .= $value . '
'; - } - die($message); -} - /* no idea why it wouldn't be there (no dependencies are mentioned on php.net/mb_strtolower), but * found a system missing it. We need it from the start */ if (!function_exists('mb_strtolower')) { @@ -557,7 +521,6 @@ function mb_strtolower($string) echo Info($GLOBALS['I18N']->get('Running in testmode, no emails will be sent. Check your config file.')); } - if (!strpos(VERSION, 'dev')){ $updaterdir = __DIR__ . '/../updater';