+++ /dev/null
-<?php
-
-/**
- * Checks the increased system requirements.
- *
- * @author Tim Duesterhus
- * @copyright 2001-2022 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core
- */
-
-use wcf\system\WCF;
-
-$phpVersion = \PHP_VERSION;
-$neededPhpVersion = '8.1.2';
-if (!\version_compare($phpVersion, $neededPhpVersion, '>=')) {
- if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
- $message = "Ihre PHP-Version '{$phpVersion}' ist unzureichend für die Installation dieser Software. PHP-Version {$neededPhpVersion} oder höher wird benötigt.";
- } else {
- $message = "Your PHP version '{$phpVersion}' is insufficient for installation of this software. PHP version {$neededPhpVersion} or greater is required.";
- }
-
- throw new \RuntimeException($message);
-}
-
-if (\PHP_INT_SIZE != 8) {
- if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
- $message = "Die eingesetzte PHP-Version muss 64-Bit-Ganzzahlen unterstützen.";
- } else {
- $message = "The PHP version must support 64-bit integers";
- }
-
- throw new \RuntimeException($message);
-}
-
-$sqlVersion = WCF::getDB()->getVersion();
-$compareSQLVersion = \preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $sqlVersion);
-if (\stripos($sqlVersion, 'MariaDB') !== false) {
- $neededSqlVersion = '10.5.12';
- $sqlFork = 'MariaDB';
-} else {
- $sqlFork = 'MySQL';
- $neededSqlVersion = '8.0.29';
-}
-
-if (!\version_compare($compareSQLVersion, $neededSqlVersion, '>=')) {
- if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
- $message = "Ihre {$sqlFork}-Version '{$sqlVersion}' ist unzureichend für die Installation dieser Software. {$sqlFork}-Version {$neededSqlVersion} oder höher wird benötigt.";
- } else {
- $message = "Your {$sqlFork} version '{$sqlVersion}' is insufficient for installation of this software. {$sqlFork} version {$neededSqlVersion} or greater is required.";
- }
-
- throw new \RuntimeException($message);
-}
+++ /dev/null
-<?php
-
-/**
- * Checks for non-TLS update servers.
- *
- * @author Tim Duesterhus
- * @copyright 2001-2022 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core
- */
-
-use Laminas\Diactoros\Uri;
-use wcf\data\package\update\server\PackageUpdateServerList;
-use wcf\system\WCF;
-
-$list = new PackageUpdateServerList();
-$list->readObjects();
-
-foreach ($list as $server) {
- $uri = new Uri($server->serverURL);
-
- if ($uri->getScheme() !== 'https') {
- if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
- $message = "Der Paketserver '{$uri}' verwendet das unverschlüsselte http-Protokoll.";
- } else {
- $message = "The package server '{$uri}' uses the unencrypted 'http' scheme.";
- }
-
- throw new \RuntimeException($message);
- }
- if ($uri->getPort()) {
- if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
- $message = "Der Paketserver '{$uri}' verwendet nicht den Standard-Port.";
- } else {
- $message = "The package server '{$uri}' uses a non-standard port.";
- }
-
- throw new \RuntimeException($message);
- }
-}
--- /dev/null
+<?php
+
+/**
+ * Checks the increased system requirements.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use wcf\system\WCF;
+
+$phpVersion = \PHP_VERSION;
+$neededPhpVersion = '8.1.2';
+if (!\version_compare($phpVersion, $neededPhpVersion, '>=')) {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Ihre PHP-Version '{$phpVersion}' ist unzureichend für die Installation dieser Software. PHP-Version {$neededPhpVersion} oder höher wird benötigt.";
+ } else {
+ $message = "Your PHP version '{$phpVersion}' is insufficient for installation of this software. PHP version {$neededPhpVersion} or greater is required.";
+ }
+
+ throw new \RuntimeException($message);
+}
+
+if (\PHP_INT_SIZE != 8) {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Die eingesetzte PHP-Version muss 64-Bit-Ganzzahlen unterstützen.";
+ } else {
+ $message = "The PHP version must support 64-bit integers";
+ }
+
+ throw new \RuntimeException($message);
+}
+
+$sqlVersion = WCF::getDB()->getVersion();
+$compareSQLVersion = \preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $sqlVersion);
+if (\stripos($sqlVersion, 'MariaDB') !== false) {
+ $neededSqlVersion = '10.5.12';
+ $sqlFork = 'MariaDB';
+} else {
+ $sqlFork = 'MySQL';
+ $neededSqlVersion = '8.0.29';
+}
+
+if (!\version_compare($compareSQLVersion, $neededSqlVersion, '>=')) {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Ihre {$sqlFork}-Version '{$sqlVersion}' ist unzureichend für die Installation dieser Software. {$sqlFork}-Version {$neededSqlVersion} oder höher wird benötigt.";
+ } else {
+ $message = "Your {$sqlFork} version '{$sqlVersion}' is insufficient for installation of this software. {$sqlFork} version {$neededSqlVersion} or greater is required.";
+ }
+
+ throw new \RuntimeException($message);
+}
--- /dev/null
+<?php
+
+/**
+ * Checks for non-TLS update servers.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use Laminas\Diactoros\Uri;
+use wcf\data\package\update\server\PackageUpdateServerList;
+use wcf\system\WCF;
+
+$list = new PackageUpdateServerList();
+$list->readObjects();
+
+foreach ($list as $server) {
+ $uri = new Uri($server->serverURL);
+
+ if ($uri->getScheme() !== 'https') {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Der Paketserver '{$uri}' verwendet das unverschlüsselte http-Protokoll.";
+ } else {
+ $message = "The package server '{$uri}' uses the unencrypted 'http' scheme.";
+ }
+
+ throw new \RuntimeException($message);
+ }
+ if ($uri->getPort()) {
+ if (WCF::getLanguage()->getFixedLanguageCode() === 'de') {
+ $message = "Der Paketserver '{$uri}' verwendet nicht den Standard-Port.";
+ } else {
+ $message = "The package server '{$uri}' uses a non-standard port.";
+ }
+
+ throw new \RuntimeException($message);
+ }
+}