Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28620/config
Modified Files:
globals.php
Log Message:
Added configuration URL detection.
Index: globals.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/globals.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** globals.php 14 May 2005 22:25:56 -0000 1.8
--- globals.php 14 May 2005 22:44:20 -0000 1.9
***************
*** 31,35 ****
$configdir = dirname(__FILE__);
if( !file_exists( "$configdir/sitesettings.php" ) ) {
! die( "You'll have to set openFIRST up first!" );
}
--- 31,44 ----
$configdir = dirname(__FILE__);
if( !file_exists( "$configdir/sitesettings.php" ) ) {
! $path = "#";
! if(file_exists("../config/first.php")) {
! $path = "../config/first.php";
! } elseif(file_exists("config/first.php")) {
! $path = "config/first.php";
! } elseif(file_exists("../../config/first.php")) {
! $path = "../../config/first.php";
! }
! $path = htmlentities($path);
! die( "You'll have to <a href="$path">set openFIRST up</a> first!" );
}
|