diff options
author | karel.wintersky <karel.wintersky@gmail.com> | 2015-09-11 03:32:40 +0300 |
---|---|---|
committer | karel.wintersky <karel.wintersky@gmail.com> | 2015-09-11 03:32:40 +0300 |
commit | 2919e1006deaa6cd62aae9d0848ce5c3abbccdfd (patch) | |
tree | 71754bacd7b9aacb760bb54758d2ea6d62166cc0 | |
parent | 1fbd951d69dc0f36a3dcfffa02375aa1d5b17c63 (diff) | |
download | PHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.zip PHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.tar.gz PHPAuth-2919e1006deaa6cd62aae9d0848ce5c3abbccdfd.tar.bz2 |
PHP version check
+ dies with message if PHP Version below 5.4
-rwxr-xr-x | auth.class.php | 4 |
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"); } |