Update of /cvsroot/phpwebapp/app2
In directory sc8-pr-cvs1:/tmp/cvs-serv6356
Modified Files:
webapp.php browse.php
Log Message:
Index: webapp.php
===================================================================
RCS file: /cvsroot/phpwebapp/app2/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:24:11 -0000 1.1.1.1
--- webapp.php 7 Aug 2003 16:00:59 -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";
Index: browse.php
===================================================================
RCS file: /cvsroot/phpwebapp/app2/browse.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** browse.php 21 Feb 2003 08:24:11 -0000 1.1.1.1
--- browse.php 7 Aug 2003 16:00:59 -0000 1.2
***************
*** 1,4 ****
<?php
! include "application.php";
WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
--- 1,4 ----
<?php
! include "webapp.php";
WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
|