diff --git a/components/install/view.php b/components/install/view.php old mode 100755 new mode 100644 index 0829774..045aeb8 --- a/components/install/view.php +++ b/components/install/view.php @@ -3,7 +3,7 @@ /* * Copyright (c) Codiad & Kent Safranski (codiad.com), distributed -* as-is and without warranty under the MIT License. See +* as-is and without warranty under the MIT License. See * [root]/license.txt for more. This information must remain intact. */ @@ -14,17 +14,7 @@ $data = is_writable($path . "/data"); $conf = $path . '/config.php'; -if(!file_exists($conf) && !is_writable($path)) { - $config = false; -} elseif(!file_exists($conf) && is_writable($path)) { - $config = file_put_contents($conf, file_get_contents($path . "/config.example.php")); - if($config !== false) { - $config = true; - unlink($conf); - } -} elseif(file_exists($conf)) { - $config = is_writable($conf); -} +$config = is_writable(file_exists($conf) ? $conf : $path); if(ini_get('register_globals') == 1) { $register = true; @@ -40,7 +30,7 @@ if(!$workspace || !$data || !$config || $register){
[SYSTEM]/config.php - PASSED'; } else { echo 'ERROR'; } ?>
[SYSTEM]/workspace - PASSED'; } else { echo 'ERROR'; } ?>
-[SYSTEM]/data - PASSED'; } else { echo 'ERROR'; } ?>
+[SYSTEM]/data - PASSED'; } else { echo 'ERROR'; } ?>
Please make sure these environmental variables are set:
@@ -49,36 +39,36 @@ if(!$workspace || !$data || !$config || $register){ - +