summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkarel.wintersky <karel.wintersky@gmail.com>2015-09-11 03:32:40 +0300
committerkarel.wintersky <karel.wintersky@gmail.com>2015-09-11 03:32:40 +0300
commit2919e1006deaa6cd62aae9d0848ce5c3abbccdfd (patch)
tree71754bacd7b9aacb760bb54758d2ea6d62166cc0
parent1fbd951d69dc0f36a3dcfffa02375aa1d5b17c63 (diff)
downloadPHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.zip
PHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.tar.gz
PHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.tar.bz2
PHP version check
+ dies with message if PHP Version below 5.4
-rwxr-xr-xauth.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/auth.class.php b/auth.class.php
index 200bb4f..e88603c 100755
--- a/auth.class.php
+++ b/auth.class.php
@@ -21,6 +21,10 @@ class Auth
$this->config = $config;
$this->lang = $lang;
+ if (version_compare(phpversion(), '5.4.0', '<')) {
+ die('PHP 5.4.0 required for PHPAuth engine!');
+ }
+
if (version_compare(phpversion(), '5.5.0', '<')) {
require("files/password.php");
}