Separating public files from private files


Such a code would be useless

if (!defined('STATUSNET')) {

If only index.php and static files were accessibles from the web. Those files should be in a 'www' folder or something like this.

Here is a sample tree :

  • Project folder
    • lib
    • vendor
    • www
      • index.php
      • assets
        • css
        • js
        • img

Beware! Migrating to such a structure will make a mess in git history. Don't try to do this alone!

charlycoste created this task.Via WebJun 17 2014, 5:00 AM
charlycoste added a subscriber: charlycoste.
charlycoste added a project: GNU social

Add Comment