Changeset 1130
- Timestamp:
- 11/23/07 17:52:55 (12 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/installhandler.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/installhandler.php
r1081 r1130 604 604 /** 605 605 * returns an array of .htaccess declarations used by Habari 606 **/606 */ 607 607 public function htaccess() 608 608 { 609 returnarray(609 $htaccess= array( 610 610 'open_block' => '### HABARI START', 611 611 'engine_on' => 'RewriteEngine On', 612 612 'rewrite_cond_f' => 'RewriteCond %{REQUEST_FILENAME} !-f', 613 613 'rewrite_cond_d' => 'RewriteCond %{REQUEST_FILENAME} !-d', 614 'rewrite_base' => '#RewriteBase /', 614 615 'rewrite_rule' => 'RewriteRule . index.php [PT]', 615 616 'close_block' => '### HABARI END', 616 617 ); 618 $rewrite_base= trim( dirname( $_SERVER['SCRIPT_NAME'] ), '/\\' ); 619 if ( $rewrite_base != '' ) 620 $htaccess['rewrite_base']= 'RewriteBase /' . $rewrite_base; 621 622 return $htaccess; 617 623 } 618 624 … … 620 626 * checks for the presence of an .htaccess file 621 627 * invokes write_htaccess() as needed 622 **/628 */ 623 629 public function check_htaccess() 624 630 {
