[phpwebapp-commits] CVS: documentation webapp.php,1.1.1.1,1.2
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-08-07 15:54:17
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv4938 Modified Files: webapp.php Log Message: Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webapp.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** webapp.php 21 Feb 2003 08:18:23 -0000 1.1.1.1 --- webapp.php 7 Aug 2003 15:54:14 -0000 1.2 *************** *** 1,7 **** <?php ! $app_path = dirname(__FILE__); ! $app_path = str_replace("\\", "/", $app_path); //could be a Windows path ! define("APP_PATH", $app_path."/"); define("CONFIG_PATH", APP_PATH."config/"); include CONFIG_PATH."const.Paths.php"; --- 1,18 ---- <?php ! //define APP_PATH and APP_URL ! $script_filename = $_SERVER["SCRIPT_FILENAME"]; ! $app_path = dirname($script_filename)."/"; ! define("APP_PATH", $app_path); ! $document_root = $_SERVER["DOCUMENT_ROOT"]; ! $app_url = str_replace($document_root, '', $app_path); ! define("APP_URL", $app_url); ! ! //define the path and the URL of the upper folder ! $up_path = ereg_replace('[^/]+/$', '', APP_PATH); ! define("UP_PATH", $up_path); ! $up_url = ereg_replace('[^/]+/$', '', APP_URL); ! define("UP_URL", $up_url); + //define CONFIG_PATH and include the other path constants define("CONFIG_PATH", APP_PATH."config/"); include CONFIG_PATH."const.Paths.php"; |