[zi-cvs] packages/com.zzoss.zic.plugin.config install_form.php,1.1,1.2 install_process.php,1.1,1.2 package.xml,1.1,1.2
[email protected] Sun, 04 Jan 2004 05:26:58 -0800
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic.plugin.config
In directory sc8-pr-cvs1:/tmp/cvs-serv29252/com.zzoss.zic.plugin.config
Modified Files:
install_form.php install_process.php package.xml
Log Message:
development applications can now also be installed
Index: install_form.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic.plugin.config/install_form.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** install_form.php 22 Dec 2003 17:27:15 -0000 1.1
--- install_form.php 4 Jan 2004 13:26:55 -0000 1.2
***************
*** 26,34 ****
$input_file = $GLOBALS['ZI']['build_dir'].'input.xml';
if(file_exists($input_file)) {
! require_once 'ZZOSS_Installer/FileReplace.php';
! $replace = new ZZOSS_InstallerFileReplace;
// search and replace config files
! // compose replace array
$values = $_REQUEST['ZI_VALUES'];
if(is_array($values) && count($values)){
--- 26,34 ----
$input_file = $GLOBALS['ZI']['build_dir'].'input.xml';
if(file_exists($input_file)) {
! require_once 'ZZOSS_File/Replace.php';
! $replace = new ZZOSS_FileReplace;
// search and replace config files
! // compose replace array from user input
$values = $_REQUEST['ZI_VALUES'];
if(is_array($values) && count($values)){
***************
*** 36,44 ****
//echo $key.' = '.$val.'<br/>';
if(is_string($val)) {
! $replace_values['{ZI_'.$key.'}'] = htmlspecialchars($val);
}
}
}
!
$replace->file($input_file);
$replace->replace($replace_values);
--- 36,55 ----
//echo $key.' = '.$val.'<br/>';
if(is_string($val)) {
! $replace_values['{ZI_'.$key.'}'] = $replace_values['{zi_'.$key.'}'] = htmlspecialchars($val);
}
}
}
!
! // compose replace array from global vars
! $values = $GLOBALS['ZI'];
! if(is_array($values) && count($values)){
! foreach($values as $key => $val){
! //echo $key.' = '.$val.'<br/>';
! if(is_string($val)) {
! $replace_values['{ZI_'.$key.'}'] = $replace_values['{zi_'.$key.'}'] = htmlspecialchars($val);
! }
! }
! }
!
$replace->file($input_file);
$replace->replace($replace_values);
Index: install_process.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic.plugin.config/install_process.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** install_process.php 22 Dec 2003 17:27:15 -0000 1.1
--- install_process.php 4 Jan 2004 13:26:55 -0000 1.2
***************
*** 55,60 ****
if(is_readable($config_dist)) {
! require_once 'ZZOSS_Installer/FileReplace.php';
! $replace = new ZZOSS_InstallerFileReplace;
System::mkdir(array('-p', $GLOBALS['ZI']['plugin_data_dir']));
--- 55,60 ----
if(is_readable($config_dist)) {
! require_once 'ZZOSS_File/Replace.php';
! $replace = new ZZOSS_FileReplace;
System::mkdir(array('-p', $GLOBALS['ZI']['plugin_data_dir']));
Index: package.xml
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic.plugin.config/package.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** package.xml 22 Dec 2003 17:27:15 -0000 1.1
--- package.xml 4 Jan 2004 13:26:55 -0000 1.2
***************
*** 2,39 ****
<package version="1.0"
xmlns="http://www.zzoss.com/NS/installer/package/">
! <name>com.zzoss.zic.plugin.config</name>
! <summary>ZZ/OSS Installer Configuration Plugin</summary>
! <description>Plugin to install build files.</description>
! <maintainers>
! <maintainer>
! <user>czonsius</user>
! <name>Christian Zonsius</name>
! <email>[email protected]</email>
! <role>developer</role>
! </maintainer>
! <maintainer>
! <user>ordnas</user>
! <name>Sandro Zic</name>
! <email>[email protected]</email>
! <role>developer</role>
! </maintainer>
! </maintainers>
! <release>
! <version>1.0</version>
! <date>{zi_release_date}</date>
! <license url="http://www.gnu.org/licenses/lgpl.txt" version="2.1">LGPL</license>
! <state>stable</state>
! <notes>Initial release.</notes>
! <copyright>
! <holder year="{zi_copyright_year}" url="http://www.zzoss.com">ZZ/OSS</holder>
! </copyright>
! <plugin default="yes">
! <filelist>
! <file role="install" name="install.php"/>
! <file name="install_form.php"/>
! <file name="install_process.php"/>
! <file role="remove" name="remove.php"/>
! </filelist>
! </plugin>
! </release>
</package>
--- 2,59 ----
<package version="1.0"
xmlns="http://www.zzoss.com/NS/installer/package/">
! <name>com.zzoss.zic.plugin.config</name>
! <summary>ZZ/OSS Installer Configuration Plugin</summary>
! <description>Plugin to install build files.</description>
! <maintainers>
! <maintainer>
! <user>czonsius</user>
! <name>Christian Zonsius</name>
! <email>[email protected]</email>
! <role>developer</role>
! </maintainer>
! <maintainer>
! <user>ordnas</user>
! <name>Sandro Zic</name>
! <email>[email protected]</email>
! <role>developer</role>
! </maintainer>
! </maintainers>
! <release>
! <version>1.0.1</version>
! <date>{zi_release_date}</date>
! <license url="http://www.gnu.org/licenses/lgpl.txt" version="2.1">LGPL</license>
! <state>stable</state>
! <notes>
! <![CDATA[
! - added lower case prefix, so now placeholders are detected with ZI_ and zi_ prefix
! - all global vars of the installer ($GLOBALS['ZI']) are also replaced
! ]]>
! </notes>
! <copyright>
! <holder year="2003-{zi_copyright_year}" url="http://www.zzoss.com">ZZ/OSS</holder>
! </copyright>
! <plugin default="yes">
! <filelist>
! <file role="install" name="install.php"/>
! <file name="install_form.php"/>
! <file name="install_process.php"/>
! <file role="remove" name="remove.php"/>
! </filelist>
! </plugin>
! <deps>
! <dep type="pkg" rel="ge" version="1.0.0">com.zzoss.filereplace.lib</dep>
! </deps>
! </release>
! <changelog>
! <release>
! <version>1.0</version>
! <date>2003-12-18</date>
! <license url="http://www.gnu.org/licenses/lgpl.txt" version="2.1">LGPL</license>
! <state>stable</state>
! <notes>Initial release.</notes>
! <copyright>
! <holder year="2003" url="http://www.zzoss.com">ZZ/OSS</holder>
! </copyright>
! </release>
! </changelog>
</package>
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click