[zi-cvs] packages/com.zzoss.zis/xml getApplication.php,NONE,1.1 getApplications.php,NONE,1.1 getDistribution.php,NONE,1.1 getDistributions.php,NONE,1.1 getPackage.php,NONE,1.1 getPackages.php,NONE,1.1

[email protected] Wed, 14 Jan 2004 08:38:42 -0800
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zis/xml
In directory sc8-pr-cvs1:/tmp/cvs-serv8193/xml

Added Files:
	getApplication.php getApplications.php getDistribution.php 
	getDistributions.php getPackage.php getPackages.php 
Log Message:
initial release

--- NEW FILE: getApplication.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getApplication.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/ApplicationRepository.php';
	
	// create class instance and get xml
	$applicationRepository = new ZZOSS_ApplicationRepository();
	$xml = $applicationRepository->getApplicationByNameVersionXML($_REQUEST['name'], $_REQUEST['version']);
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>
--- NEW FILE: getApplications.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getApplications.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/ApplicationRepository.php';
	
	// create class instance and get xml
	$applicationRepository = new ZZOSS_ApplicationRepository();
	$xml = $applicationRepository->listApplicationsXML($_REQUEST['distribution']);
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>
--- NEW FILE: getDistribution.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getDistribution.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/DistributionRepository.php';
	
	// create class instance and get xml
	$distributionRepository = new ZZOSS_DistributionRepository();
	$xml = $distributionRepository->getDistributionByNameVersionXML($_REQUEST['name'], $_REQUEST['version']);
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>
--- NEW FILE: getDistributions.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getDistributions.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/DistributionRepository.php';
	
	// create class instance and get xml
	$distributionRepository = new ZZOSS_DistributionRepository();
	$xml = $distributionRepository->listDistributionsXML();
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>
--- NEW FILE: getPackage.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getPackage.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/PackageRepository.php';
	
	// create class instance and get xml
	$packageRepository = new ZZOSS_PackageRepository();
	$xml = $packageRepository->getPackageByNameVersionXML($_REQUEST['name'], $_REQUEST['version']);
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>
--- NEW FILE: getPackages.php ---
<?php 
	/*   
	Copyright (C) 2001-2003 ZZOSS GbR, http://www.zzoss.com
	----------------------------------------------------------------------   
	This program is free software; you can redistribute it and/or   
	modify it under the terms of the GNU General Public License   
	as published by the Free Software Foundation; either version 2   
	of the License, or (at your option) any later version.   
	----------------------------------------------------------------------   
	$Id: getPackages.php,v 1.1 2004/01/14 16:38:40 czonsius Exp $   
	*/

	// include the access class for distribution repository
	require_once 'ZZOSS_Installer_Server/PackageRepository.php';
	
	// create class instance and get xml
	$packageRepository = new ZZOSS_PackageRepository();
	$xml = $packageRepository->listPackagesXML($_REQUEST['application']);
	
	// output
	header("Content-type: text/xml");
	echo $xml;
?>



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html