diff --git a/class.php b/class.php index 020b023..0aebf28 100644 --- a/class.php +++ b/class.php @@ -2100,6 +2100,7 @@ class idlers extends helperFunctions public function mainPage() { + $this->checkPHPversion();//Check PHP version. Wont load if not PHP 7.4 or above $this->pageHead(); $this->pageContents(); $this->pageFooter(); @@ -3154,6 +3155,14 @@ class idlers extends helperFunctions return $id; } + protected function checkPHPversion() + { + if (version_compare(PHP_VERSION, '7.4') === -1) { + echo ""; + exit; + } + } + //Compare functions protected function compatibleComparesSelect() {