Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv13391
Modified Files:
serendipity_admin_installer.inc.php
Log Message:
muesli rightly points out that we need to regenerate the .htaccess file
Index: serendipity_admin_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_installer.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- serendipity_admin_installer.inc.php 3 Apr 2003 19:52:25 -0000 1.8
+++ serendipity_admin_installer.inc.php 5 Apr 2003 00:17:57 -0000 1.9
@@ -201,20 +201,6 @@
serendipity_printConfigTemplate(serendipity_parseTemplate("./serendipity_config_local.tpl"), $_POST);
} else {
if (IN_serendipity !== true) {
- // Create .htaccess
- $a = file("./htaccess.tpl");
- $fp = @fopen("./.htaccess", "w");
- if (!is_resource($fp)) {
- echo "<font color='#ff0000'>Error: Could not create .htaccess file, create it yourself:<pre>\n";
- echo implode("\n", $a);
- }
- else {
- for($x=0; $x<count($a); $x++) {
- fwrite($fp, str_replace("{PREFIX}", $_POST["serendipityHTTPPath"],$a[$x])."\n");
- }
- fclose($fp);
- }
-
// Create tables
echo "Attempting to setup Database...<br>";
$queries = serendipity_parse_sql_tables('./db.sql');
@@ -242,6 +228,19 @@
if (is_string($res)) {
echo $res;
}
+ }
+ // Create .htaccess
+ $a = file("./htaccess.tpl");
+ $fp = @fopen("./.htaccess", "w");
+ if (!is_resource($fp)) {
+ echo "<font color='#ff0000'>Error: Could not create .htaccess file, create it yourself:<pre>\n";
+ echo implode("\n", $a);
+ }
+ else {
+ for($x = 0; $x < count($a); $x++) {
+ fwrite($fp, str_replace("{PREFIX}", $_POST["serendipityHTTPPath"],$a[$x])."\n");
+ }
+ fclose($fp);
}
// Save all basic config variables to the database
|