summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorReCaffeinated <devonyardpersonal@gmail.com>2016-08-20 00:40:02 -0500
committerReCaffeinated <devonyardpersonal@gmail.com>2016-08-20 00:40:02 -0500
commiteccc26b757afc951a44a1c72235e7327c5b8518e (patch)
tree3319c52fcdad3725cbaff35be4394d8a36823f46 /install.php
parent42988fe8efd89071608e2239ad1868dfe12362a2 (diff)
This prevents a crash due to instance-config.php not existing, it will now check if the file exists and if not creates the file
Diffstat (limited to 'install.php')
-rw-r--r--install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.php b/install.php
index 95caf8ec..bc64c567 100644
--- a/install.php
+++ b/install.php
@@ -3,6 +3,11 @@
// Installation/upgrade file
define('VERSION', '4.9.93');
+if (fopen('inc/instance-config.php' , 'a') === false) {
+ print('install.php does not have permission to write to /inc/, without permission the installer cannot continue');
+ exit();
+ }
+
require 'inc/functions.php';
$step = isset($_GET['step']) ? round($_GET['step']) : 0;