Changeset 115

Show
Ignore:
Timestamp:
2007-12-25 22:03:34 (1 year ago)
Author:
hannes
Message:

locking HTTP access out of all directories for which it isn't explicitely required (ticket #42)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install.php

    r112 r115  
    311311                                } 
    312312                            } 
    313                             if ($file = @fopen('db/.htaccess', 'w')) { 
     313                            @copy('sessions/.htaccess', 'db/.htaccess'); 
     314                            @copy('sessions/.htaccess', 'classes/.htaccess'); 
     315                            @copy('sessions/.htaccess', 'admin/classes/.htaccess'); 
     316                            @copy('sessions/.htaccess', 'includes/.htaccess'); 
     317                            // sole exception 
     318                            if ($file = @fopen('includes/styles/.htaccess', 'w')) { 
    314319                                // write settings 
    315                                 if (@fwrite($file, 'deny from all')) { 
     320                                if (@fwrite($file, 'allow from all')) { 
    316321                                    @fclose($file); 
    317322                                    // set permissions 
    318                                     @chmod('db/.htaccess', 0660); 
     323                                    @chmod('includes/styles/.htaccess', 0660); 
    319324                                } 
    320325                            }