+ if ( ! is_writable(ABSPATH) ) :
+ display_header();
+?>
+<p>Sorry, but I can't write the <code>wp-config.php</code> file.</p>
+<p>You can create the <code>wp-config.php</code> manually and paste the following text into it.</p>
+<textarea cols="98" rows="15" class="code"><?php
+ foreach( $configFile as $line ) {
+ echo htmlentities($line, ENT_COMPAT, 'UTF-8');
+ }
+?></textarea>
+<p>After you've done that, click "Run the install."</p>
+<p class="step"><a href="install.php" class="button">Run the install</a></p>
+<?php
+ else :
+ $handle = fopen(ABSPATH . 'wp-config.php', 'w');
+ foreach( $configFile as $line ) {
+ fwrite($handle, $line);
+ }
+ fclose($handle);
+ chmod(ABSPATH . 'wp-config.php', 0666);
+ display_header();