Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/index.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: index.php,v 1.3 2004/04/04 15:53:41 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
    */
	
    require_once 'inc/init.php';
    
    // Single Application Mode
    if(
        $GLOBALS['ZI']['mode'] == 'setup' || 
        isset($GLOBALS['ZI']['application']) && strlen($GLOBALS['ZI']['application']) &&
        isset($GLOBALS['ZI']['distribution']) && strlen($GLOBALS['ZI']['distribution'])){
        
        $zi_registry->setDistribution($GLOBALS['ZI']['distribution']);
        $zi_registry->setApplication($GLOBALS['ZI']['application']);
        
        $application = $zi_registry->getApplication();
        $_REQUEST['distribution'] = $GLOBALS['ZI']['distribution'];
        $_REQUEST['application'] = $GLOBALS['ZI']['application'];
        $_REQUEST['type'] = 'application';
        $_REQUEST['widget_type'] = '_self';
        
        header('Location: info.php'.zi_form_querystr().'&nav_parent=app_info');
        exit;
    }
    
    // All other modes
    header('Location: applications.php?nav_parent=apps&nav_child=applications');
    exit;
?>
Return current item: ZZ/OSS Installer