Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/packages_process.php
<?php   
    /*
    Copyright (C) 2001-2004 ZZOSS GbR, http://www.zzoss.com

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
    
    /**
    @version $Id: packages_process.php,v 1.11 2004/04/06 14:45:17 ordnas Exp $
    @copyright Copyright &copy; 2001-2004 ZZ/OSS GbR, http://www.zzoss.com
    @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
    */
    
	// execute init file
	require_once 'inc/init.php';
    
    $pkg_type = 'package';
    if(isset($_REQUEST['type'])){
        $pkg_type = $_REQUEST['type'];
    }
    
 	// check step
	if(!isset($_REQUEST["step"])) {
		$step = 0;
		// remove old log file
		/*if(file_exists($zi_registry->getApplicationPath().'installer'.DIRECTORY_SEPARATOR.'packages.log')) {
			unlink($zi_registry->getApplicationPath().'installer'.DIRECTORY_SEPARATOR.'packages.log');
		}*/
	} else {
		$step = $_REQUEST["step"];
	}

    // check if this script is part of installation procedure
    if(!$zi_registry->isProcedure($pkg_type.'s_fileroles')){
        header('Location: plugins_process.php'.zi_form_querystr().'&step='.$step);
        exit;
    }
	
	/***************************************************************************   
    * STARTUP                                                             	   *   
    ***************************************************************************/   
	
    $zi_registry->setPackageType($pkg_type);

    // Register all packages again, because there might be
    // new ones from download.
    $zi_registry->registerPackages();
    
    // Redirect to plugins Runtime Environment
    $url_next = 'plugins_re.php'.zi_form_querystr().'&re_type=filerole&step='.$step;
	header('Location: '.$url_next);
	exit;
?>
Return current item: ZZ/OSS Installer