Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/setup_resume.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: setup_resume.php,v 1.2 2004/01/04 13:26:55 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';
    
    function zi_process()
    {
       if($_REQUEST['resume'] == 'no'){
            $zi_setup->rmData($_REQUEST['data_dir']);
            $zi_setup->initData();
            header('Location: index.php');
            exit;
        }
        if($_REQUEST['resume'] == 'yes'){
            header('Location: index.php');
            exit;
        }
        $error = 'Please choose an option.';
        header('Location: setup_resume.php?error='.rawurldecode($error));
        exit;
    }
    
    require_once 'themes/'.$GLOBALS['ZI']['theme'].'/header.php';
?>
<h1>Resume Previous Setup</h1>
<p>It seems that the installer has been setup before.</p>
        <?php
        if(strlen($_REQUEST['error'])){
            echo '<p class="warning">'.rawurldecode($_REQUEST['error']).'</p>';
        }
        ?>
<p><input type="radio" name="resume" value="yes">Resume from previous setup.</p>
<p><input type="radio" name="resume" value="no">Make a fresh setup (deletes all previous settings).</p>
<?php
    $zi_buttons['next'] = 'setup_resume.php';
    require_once 'themes/'.$GLOBALS['ZI']['theme'].'/footer.php';
?>
Return current item: ZZ/OSS Installer