summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/setup.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/setup.php b/www/setup.php
index 28cec00..2e8c7fe 100644
--- a/www/setup.php
+++ b/www/setup.php
@@ -7,6 +7,13 @@
$db = new SQLite3("../database/sqlite.db");
+$bool = false;
+
+if (version_compare(phpversion(), '5.5', '<')) {
+ echo "You need at least PHP version 5.5 or higher";
+ exit;
+}
+
foreach ($_GET as $name => $value) {
if(preg_match("/drop(ped)?/i",$name)){
$bool=true;