[zi-cvs] packages/com.zzoss.zic setup.php,1.10,1.11

Christian Zonsius <[email protected]> Mon, 05 Apr 2004 12:32:35 +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-serv10086

Modified Files:
	setup.php 
Log Message:
added ZZOSS_InstallerUtils::fixPath() for path output

Index: setup.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/setup.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** setup.php	3 Apr 2004 16:15:48 -0000	1.10
--- setup.php	5 Apr 2004 12:32:33 -0000	1.11
***************
*** 26,38 ****
      // check if data directory has been provided
      require_once 'inc/config_params.php';
!     
      if(!isset($GLOBALS['ZI']['data']) || !strlen($GLOBALS['ZI']['data'])){
          echo "<p>You need to set the absolute path to the directory where the installer stores all its data.</p>";
          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'] = '".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>".$GLOBALS['ZI']['data']."</code>' 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;
--- 26,39 ----
      // 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'])){
          echo "<p>You need to set the absolute path to the directory where the installer stores all its data.</p>";
          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;



-------------------------------------------------------
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