[zi-cvs] packages/com.zzoss.zic setup.php,1.11,1.12
Christian Zonsius <[email protected]> Mon, 05 Apr 2004 13:00:27 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17230
Modified Files:
setup.php
Log Message:
make use of ZZOSS_File::fixPath() instead of ZZOSS_InstallerUtils::fixPath() for path output
Index: setup.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/setup.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** setup.php 5 Apr 2004 12:32:33 -0000 1.11
--- setup.php 5 Apr 2004 13:00:25 -0000 1.12
***************
*** 26,30 ****
// check if data directory has been provided
require_once 'inc/config_params.php';
! require_once 'lib/ZZOSS_Installer/Utils.php';
if(!isset($GLOBALS['ZI']['data']) || !strlen($GLOBALS['ZI']['data'])){
--- 26,30 ----
// check if data directory has been provided
require_once 'inc/config_params.php';
! require_once 'lib/ZZOSS_File/File.php';
if(!isset($GLOBALS['ZI']['data']) || !strlen($GLOBALS['ZI']['data'])){
***************
*** 32,39 ****
echo "<p>Do this in <code>\$GLOBALS['ZI']['data']</code> of the file '<code>".getcwd().DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."config_params.php</code>'.";
echo "<p>For example:</p>";
! echo "<pre>\$GLOBALS['ZI']['data'] = '".ZZOSS_InstallerUtils::fixPath(dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR."zic_data".DIRECTORY_SEPARATOR)."';</pre>";
exit;
} elseif(!is_writeable($GLOBALS['ZI']['data'].DIRECTORY_SEPARATOR.'.')){
! echo "<p>Please make the data directory '<code>".ZZOSS_InstallerUtils::fixPath($GLOBALS['ZI']['data'])."</code>' exists and is writeable.";
echo "<p>Or change the path in <code>\$GLOBALS['ZI']['data']</code> of the file <code>".getcwd().DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."config_params.php</code>.";
exit;
--- 32,39 ----
echo "<p>Do this in <code>\$GLOBALS['ZI']['data']</code> of the file '<code>".getcwd().DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."config_params.php</code>'.";
echo "<p>For example:</p>";
! echo "<pre>\$GLOBALS['ZI']['data'] = '".ZZOSS_File::fixPath(dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR."zic_data".DIRECTORY_SEPARATOR)."';</pre>";
exit;
} elseif(!is_writeable($GLOBALS['ZI']['data'].DIRECTORY_SEPARATOR.'.')){
! echo "<p>Please make the data directory '<code>".ZZOSS_File::fixPath($GLOBALS['ZI']['data'])."</code>' exists and is writeable.";
echo "<p>Or change the path in <code>\$GLOBALS['ZI']['data']</code> of the file <code>".getcwd().DIRECTORY_SEPARATOR."inc".DIRECTORY_SEPARATOR."config_params.php</code>.";
exit;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click