[phpwebapp-commits] CVS: documentation webapp.php,1.6,1.7
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2005-07-06 15:27:35
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3078 Modified Files: webapp.php Log Message: Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webapp.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** webapp.php 8 Sep 2003 13:22:39 -0000 1.6 --- webapp.php 6 Jul 2005 15:27:24 -0000 1.7 *************** *** 20,23 **** --- 20,30 ---- */ + /** + * Standard file for all the applications, + * doesn't need to be modified. + * + * @package sample-application + */ + /** */ //define APP_PATH and APP_URL *************** *** 25,28 **** --- 32,36 ---- $app_path = dirname($script_filename)."/"; define("APP_PATH", $app_path); + $script_name = $_SERVER["SCRIPT_NAME"]; $app_url = dirname($script_name)."/"; *************** *** 36,40 **** //define CONFIG_PATH and include the other path constants ! define("CONFIG_PATH", APP_PATH."config/"); include CONFIG_PATH."const.Paths.php"; --- 44,49 ---- //define CONFIG_PATH and include the other path constants ! define("CONFIG_PATH", APP_PATH."config/"); ! include CONFIG_PATH."const.Paths.php"; *************** *** 61,63 **** WebApp::callFreeEvent($event); } ! ?> --- 70,72 ---- WebApp::callFreeEvent($event); } ! ?> \ No newline at end of file |