Resolved #150 added mbstring as depency (always preinstalled anyways)

This commit is contained in:
kremsy 2017-06-21 18:17:19 +02:00
parent 69f566fb0c
commit 56ae4a8525
2 changed files with 13 additions and 2 deletions

View File

@ -34,13 +34,14 @@ https://www.maniacontrol.com
## REQUIREMENTS: ## REQUIREMENTS:
- MySQL Database - MySQL Database
- PHP 5.4+ - PHP 5.4+
- Needed extensions (on ManiaControl startup you will see if you have them activated): - Needed extensions (on ManiaControl startup you will see if you have them installed and activated):
- php_mysqli - php_mysqli
- php_curl - php_curl
- php_xmlrpc (TM only, recommended for SM) - php_xmlrpc (TM only, recommended for SM)
- php_zlib - php_zlib
- php_zip - php_zip
- php_mbstring
### How to report bugs or request features?: ### How to report bugs or request features?:
- Write a mail to bugs(at)maniacontrol(dot)com - Write a mail to bugs(at)maniacontrol(dot)com
- Open an issue on GitHub.com/ManiaControl/ManiaControl - Open an issue on GitHub.com/ManiaControl/ManiaControl

View File

@ -97,6 +97,16 @@ class SystemUtil {
Logger::log($message . 'FOUND!'); Logger::log($message . 'FOUND!');
} }
// Check for MBString
$message = 'Checking for installed mbstring ... ';
if (!extension_loaded('mbstring')) {
Logger::log($message . 'NOT FOUND!');
Logger::log(" -- You don't have mbstring installed! Check: http://php.net/manual/en/mbstring.setup.php");
$success = false;
} else {
Logger::log($message . 'FOUND!');
}
if (!$success) { if (!$success) {
// Missing requirements // Missing requirements
self::quit(); self::quit();