Update of /cvsroot/phpwebapp/app1
In directory sc8-pr-cvs1:/tmp/cvs-serv5887
Modified Files:
webapp.php
Log Message:
Index: webapp.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/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:23:38 -0000 1.1.1.1
--- webapp.php 7 Aug 2003 15:58:49 -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";
|