diff --git a/install.php b/install.php
index 9ae157a..8e8a7d8 100644
--- a/install.php
+++ b/install.php
@@ -10,10 +10,12 @@ ini_set('max_execution_time', 300);
session_start();
// Include environment files
+$usingEnv = false;
$envFiles = array('_ss_environment.php', '../_ss_environment.php', '../../_ss_environment.php');
foreach($envFiles as $envFile) {
if(@file_exists($envFile)) {
include($envFile);
+ $usingEnv = true;
break;
}
}
@@ -624,13 +626,39 @@ SSViewer::set_theme('blackcandy');
PHP;
}
- echo "
Creating '$template/_config.php'...";
- flush();
- $devServers = $this->var_export_array_nokeys(explode("\n", $_POST['devsites']));
+ global $usingEnv;
+ if($usingEnv) {
+ echo "Creating '$template/_config.php' for use with _ss_environment.php...\n";
+ flush();
+ $this->createFile("$template/_config.php", <<
+PHP
+ );
+
+
+ } else {
+ echo "Creating '$template/_config.php'...\n";
+ flush();
- $escapedPassword = addslashes($config['mysql']['password']);
- $this->createFile("$template/_config.php", <<var_export_array_nokeys(explode("\n", $_POST['devsites']));
+
+ $escapedPassword = addslashes($config['mysql']['password']);
+ $this->createFile("$template/_config.php", <<
PHP
- );
+ );
+ }
echo "Creating '.htaccess' file...";
flush();