Wedge

Public area => The Pub => Features => Topic started by: Nao on March 3rd, 2014, 12:34 PM

Title: Poll: changing paths
Post by: Nao on March 3rd, 2014, 12:34 PM
Advantages of changing paths:
- You can move your source files to a non-accessible path, meaning no one can see their contents, even if you server fails.

Advantages of keeping paths the same across all copies of Wedge:
- Moving your Wedge install to another folder is a no-brainer, because all paths are automatically updated.
- Seriously, even if someone could see your source file contents... Who cares? They can already see them on GitHub anyway!

To me, the only file that MIGHT warrant being moved to a non-web space is Settings.php, and even SMF doesn't support that... If you're not modifying your Settings.php file (i.e. keeping away from the admin area), you could consider turning Settings.php into a file saying "include (__DIR__ . '../../somewhere/Settings.php')", but because Wedge may not have write access to said path, it's not realistic to expect it to handle this kind of redirection easily.
It might be possible to create a hardlink to that file, but I'm not sure it wouldn't simply be shown in the same circumstances at a regular file.

Can anyone think of a GOOD reason to move your folders around..?

PS: media and attachment folders are a special case, though. It's likely that I'll keep the ability to move them around, because of potential disk space concerns.
Title: Re: Poll: changing paths
Post by: Nao on March 3rd, 2014, 11:03 PM
Oh, I'm soooo looking forward to removing these!! :D
This will also make it easier to try and implement automatic updates for Wedge. (I'm not making any promises, but...)
Title: Re: Poll: changing paths
Post by: Bunstonious on March 4th, 2014, 12:43 AM
I haven't ever had a real need to move to non standard folders.

As long as they all work (its detected some weird locations before)
Title: Re: Poll: changing paths
Post by: Bunstonious on March 4th, 2014, 12:44 AM
It would be good if it was protocol independent.
Title: Re: Poll: changing paths
Post by: Nao on March 4th, 2014, 07:53 AM
It definitely will be. And if not, I have you to scold me for. :P
Title: Re: Poll: changing paths
Post by: Nao on March 5th, 2014, 12:32 AM
Okay, if nobody's against this, I'll soon be removing the custom paths from Settings.php (anything that's not $boardurl and $boarddir, basically.)
I'll keep the others for now, as I said.
Since there might be security issues related to this, I've left the poll open for a few more days, in case someone wants to be heard. ;)
Title: Re: Poll: changing paths
Post by: Nao on March 7th, 2014, 06:24 PM
Last chance for a vote, guys... ;)
Title: Re: Poll: changing paths
Post by: Nao on March 10th, 2014, 03:53 PM
So, path customization will be removed soon. The people have spoken. :)

I'll work on this, hmm... As soon as I'm done with the banner rewrite! And the final South Park dungeon. :P