summaryrefslogtreecommitdiff
path: root/www/setup.php
diff options
context:
space:
mode:
authorroot2014-03-12 23:12:32 +0100
committerroot2014-03-12 23:12:32 +0100
commitb5845f91e3d54773daecfc8ecc8fe917db02e510 (patch)
tree4b424fe7dea6b3c0cdcc3ac9c5530dc5f1114886 /www/setup.php
parentefd3bb601ac3d1937bddb4f2a5b945911ccc5326 (diff)
downloadfiles.iamfabulous.de-b5845f91e3d54773daecfc8ecc8fe917db02e510.tar.gz
Checks if PHP version is compatible.
Diffstat (limited to 'www/setup.php')
-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;