[zi-cvs] packages/com.zzoss.installer.lib ConfigInput.php,1.3,1.4
Sandro Zic <[email protected]> Tue, 06 Apr 2004 19:12:00 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20400/com.zzoss.installer.lib
Modified Files:
ConfigInput.php
Log Message:
new mode dev_inst for widgets (if installer itself should be devloped, the specified widget is shown or suppresed)
Index: ConfigInput.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/ConfigInput.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConfigInput.php 26 Mar 2004 10:26:31 -0000 1.3
--- ConfigInput.php 6 Apr 2004 19:11:57 -0000 1.4
***************
*** 59,63 ****
//print_r($modes);
if(!in_array($GLOBALS['ZI']['mode'], $modes)){
! return false;
}
}
--- 59,71 ----
//print_r($modes);
if(!in_array($GLOBALS['ZI']['mode'], $modes)){
! // check if it's a widget for developing the installer itself
! // which we should display
! if($GLOBALS['ZI']['installer_dev']){
! if(!in_array('dev_inst', $modes)){
! return false;
! }
! } else {
! return false;
! }
}
}
***************
*** 70,73 ****
--- 78,91 ----
if(in_array($GLOBALS['ZI']['mode'], $modes)){
return false;
+ } else {
+ // check if it's a widget for developing the installer itself
+ // which we are not supposed to display
+ if($GLOBALS['ZI']['installer_dev']){
+ if(in_array('dev_inst', $modes)){
+ return false;
+ }
+ } else {
+ return false;
+ }
}
}
-------------------------------------------------------
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