Changeset 22
- Timestamp:
- 2007-11-23 15:00:23 (4 years ago)
- Files:
-
- trunk/admin/classes/pages/Settings.php (modified) (1 diff)
- trunk/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/classes/pages/Settings.php
r20 r22 95 95 if ($file = @fopen('../.htaccess', 'w')) { 96 96 // write settings 97 fwrite($file, "RewriteEngine " . $_rewrite . "\n\nRewriteBase " . $newwebpath . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^ ([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n");97 fwrite($file, "RewriteEngine " . $_rewrite . "\n\nRewriteBase " . $newwebpath . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^install\.php$ install.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n"); 98 98 @fclose($file); 99 99 } trunk/install.php
r19 r22 103 103 // create .htaccess 104 104 if ($handle = @fopen('.htaccess', 'w')) { 105 if (@fwrite($handle, "RewriteEngine On\n\nRewriteBase " . $SETUPDATA['webpath'] . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^ ([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n")) {105 if (@fwrite($handle, "RewriteEngine On\n\nRewriteBase " . $SETUPDATA['webpath'] . "\n\nRewriteRule ^index\.php$ index.php [L]\nRewriteRule ^install\.php$ install.php [L]\nRewriteRule ^([a-z]+)\.php$ index.php?show=$1&%{QUERY_STRING} [L]\n\nOptions -Indexes\n")) { 106 106 // set chmod 107 107 @chmod('.htaccess', 0660);
