diff --git a/README.md b/README.md
index 5d3d1ad..ee4b101 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
![Website screenshot](http://i.imgur.com/gKZezVc.png)
-**ts-website - free website for your TeamSpeak 3 server**
+**ts-website - free website for your TeamSpeak 3 server**
#### Useful links
- [Demo](https://ts.wruczek.top/)
@@ -19,7 +19,8 @@
### Requirements
- Minimum
- - PHP 5.3.0 or newer
+ - PHP 5.4 or newer
+ - Installed and enabled ``mbstring`` extension
- Recommended
- Newest stable PHP version
- Up-to-date Apache server
diff --git a/include/modulecheck.php b/include/modulecheck.php
index 679cfe6..0a8a1ee 100644
--- a/include/modulecheck.php
+++ b/include/modulecheck.php
@@ -36,13 +36,24 @@ function isPHPVersionSupported() {
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
- return PHP_VERSION_ID >= 50300;
+ return PHP_VERSION_ID >= 50400;
}
if (!isPHPVersionSupported()) {
$title = 'Unsupported PHP version';
- $text = '
You are using old, unsupported PHP version.
Your PHP version: ' . phpversion() . ', required PHP version: 5.3.0.
Please update your PHP installation and try again.
'; + $text = 'You are using old, unsupported PHP version.
Your PHP version: ' . phpversion() . ', required PHP version: 5.4.0.
Please update your PHP installation and try again.
'; + + die(showError($title, $text)); +} + +if (!extension_loaded("mbstring")) { + + $title = 'MBString extension is missing'; + + $text = 'Required PHP extension: mbstring
has not been found on the server.
Follow this instructions if you are using Ubuntu 16.04 with PHP 7.0 (recommended). Otherwise, installation instructions can be found on Google ;)
+If you are using Web Hosting service, please contact the Hosting support for instruction on enabling mbstring.
'; die(showError($title, $text)); }