Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/dev_bundle.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: dev_bundle.php,v 1.7 2004/04/03 16:15:48 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';
    
    if(isset($_REQUEST['action'])){
        $action_redirect    = '';
        $bundle_tgz         = '';
        switch($_REQUEST['action']){
            case 'bundle':
                $procedures = array(
                    'plugins_register'  => 'hide',
                    'packages_register' => 'hide',
                    '_dest'             => 'dev_bundle_process.php'.zi_form_querystr().'&action=bundle'
                    );
                $zi_registry->setProcedures($procedures);
                $action_redirect = 'application_settings.php'.zi_form_querystr();
            break;
            case 'instant':
                $procedures = array(
                    'plugins_register'  => 'hide',
                    'packages_register' => 'hide',
                    '_dest'             => 'dev_bundle_process.php'.zi_form_querystr().'&action=instant'
                    );
                $zi_registry->setProcedures($procedures);
                $action_redirect = 'application_settings.php'.zi_form_querystr();
            break;
        }
        if(strlen($action_redirect)){
            header('Location: '.$action_redirect);
            exit;
        }
    }
    
    /***************************************************************************   
    * PAGE CONTENT                                                             *   
    ***************************************************************************/   
    
    include 'themes/'.$GLOBALS['ZI']['theme'].'/header.php';
    
    $application = $zi_registry->getApplication();
    ?>
    <h1>Application Bundle</h1>
    <h2><a href="info.php?mode=<?php echo $_REQUEST['mode']; ?>&type=application&distribution=<?php echo $_REQUEST['distribution']; ?>&application=<?php echo $_REQUEST['application']; ?>" onclick="javascript:window.open('info.php?mode=<?php echo $_REQUEST['mode']; ?>&type=application&distribution=<?php echo $_REQUEST['distribution']; ?>&application=<?php echo $_REQUEST['application']; ?>', 'ApplicationInformation', 'width=500,height=500,resizable=1,status=0,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0,dependent=0');void(0);javascript:return(false);" target="_blank" title="<?php echo $application["summary"].' '.$application['release']['version']; ?>"><?php echo $application["summary"].' '.$application['release']['version']; ?></a></h2>
    
    <?php
    if(isset($msg) && strlen($msg)){
        echo $msg;
    }
    ?>
    
    <p>
        [<a href="<?php echo $_SERVER['PHP_SELF'].zi_form_querystr().'&action=bundle'; ?>">Bundle</a>]<br/>
        Create a new bundle. Such a bundle can be used for installation or update of an application within an installer.
    </p>
    <p>
        [<a href="<?php echo $_SERVER['PHP_SELF'].zi_form_querystr().'&action=instant'; ?>">Instant Bundle</a>]&nbsp;
        [<a href="dev_bundle_instant.php?mode=instant&distribution=<?php echo $GLOBALS['ZI']['installer_distribution']; ?>&application=<?php echo $GLOBALS['ZI']['installer_application']; ?>&action=start&distribution_bundle=<?php echo $_REQUEST['distribution']; ?>&application_bundle=<?php echo $_REQUEST['application']; ?>" title="Configure Instant Installer">Configure Instant Installer</a>]<br/>
        An instant bundle contains the application as well as the installer.<br/>
        
    </p>
    <?php
    //$zi_buttons['back'] = 'applications.php'.zi_form_querystr();
	include 'themes/'.$GLOBALS['ZI']['theme'].'/footer.php';
?>
Return current item: ZZ/OSS Installer