[zi-cvs] packages/com.zzoss.installer.lib ConfigInput.php,1.5,1.6
Sandro Zic <[email protected]> Tue, 18 May 2004 17:24:03 +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-serv22750/com.zzoss.installer.lib
Modified Files:
ConfigInput.php
Log Message:
undo update sandbox
Index: ConfigInput.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/ConfigInput.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ConfigInput.php 11 May 2004 18:42:20 -0000 1.5
--- ConfigInput.php 18 May 2004 17:24:00 -0000 1.6
***************
*** 32,35 ****
--- 32,37 ----
// turn off case folding
var $folding = false;
+
+ var $widget_modes = array();
/**
***************
*** 48,51 ****
--- 50,58 ----
}
+ function setWidgetModes($modes)
+ {
+ $this->widget_modes = $modes;
+ }
+
function startHandler($xp, $element, $attribs = array())
{
***************
*** 58,73 ****
if(isset($attribs['mode']) && strlen($attribs['mode'])){
$modes = explode('|',$attribs['mode']);
! //echo $attribs['variable'];
! //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
! !($GLOBALS['ZI']['installer_dev'] && in_array('dev_inst', $modes)) &&
! // check if it's for windows or *nix
! !in_array(strtolower(substr(PHP_OS, 0, 3)), $modes)
! ){
return false;
}
}
--- 65,87 ----
if(isset($attribs['mode']) && strlen($attribs['mode'])){
$modes = explode('|',$attribs['mode']);
! /*
! echo '<h1>mode</h1>';
! echo $attribs['variable'].'<br/><pre>';
! print_r($this->widget_modes);
! print_r($modes);
! print_r(array_diff($this->widget_modes, $modes));
! echo '</pre>';
! */
! if(count(array_diff($this->widget_modes, $modes)) == count($this->widget_modes)){
! /*
! echo '<p>false</p>';
! echo '<hr/>';
! */
return false;
}
+ /*
+ echo '<p>true</p>';
+ echo '<hr/>';
+ */
}
***************
*** 75,90 ****
if(isset($attribs['not_mode']) && strlen($attribs['not_mode'])){
$modes = explode('|',$attribs['not_mode']);
! //echo $attribs['variable'];
! //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
! ($GLOBALS['ZI']['installer_dev'] && in_array('dev_inst', $modes)) &&
! // check if it's for windows or *nix
! in_array(strtolower(substr(PHP_OS, 0, 3)), $modes)
! ){
return false;
}
}
--- 89,111 ----
if(isset($attribs['not_mode']) && strlen($attribs['not_mode'])){
$modes = explode('|',$attribs['not_mode']);
! /*
! echo '<h1>not_mode</h1>';
! echo $attribs['variable'].'<br/><pre>';
! print_r($this->widget_modes);
! print_r($modes);
! print_r(array_diff($this->widget_modes, $modes));
! echo '</pre>';
! */
! if(count(array_diff($this->widget_modes, $modes)) < count($this->widget_modes)){
! /*
! echo '<p>false</p>';
! echo '<hr/>';
! */
return false;
}
+ /*
+ echo '<p>true</p>';
+ echo '<hr/>';
+ */
}
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click