From: Harvie Date: Fri, 17 Dec 2010 15:11:59 +0000 (+0100) Subject: TODO: fix bloodsucking path system X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=9297729bdd2cbd927b2db599de1d159a1d4e4c2b;p=mirrors%2FKyberia-bloodline.git TODO: fix bloodsucking path system --- diff --git a/doc/TODO b/doc/TODO index 9e8ffe5..ef30f6e 100644 --- a/doc/TODO +++ b/doc/TODO @@ -12,6 +12,15 @@ - SQL injections (many fixed, but some should be still there) - remove absolute paths from all source files (!) +- convert to some more inteligent path system... eg.: + define('SYSTEM_ROOT', '/srv/kyberia/'); + define('SYSTEM_WWWROOT', SYSTEM_ROOT.'/wwwroot/'); + define('SYSTEM_URL', '/'); //or https://dev.kyberia.cz/ + define('SYSTEM_DATA', '_data/'); + define('SYSTEM_IMAGES', '_images/'); + because right now we can't determine both: filesystem path and URL of the same directory. this SUX! +- when we will be doing this we should make kyberia compatible with "./" PHP open base dir. + i think that it's really nice philosophy when PHP script is never accessing files that are not in the same directory (or it's subdirectory) as the script itself (especialy when it cannot do this - it can be good security improvement). - remove hard-coded hostname from: ( registration mails )