Location: PHPKode > projects > ZZ/OSS Installer > zic-1.1.0dev1/installer/inc/registry.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: registry.php,v 1.3 2004/01/29 14:09:16 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 'ZZOSS_Installer/Registry.php';
    // are we in development?
    if(isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'dev'){
        $data_dir = $GLOBALS['ZI']['installer_data_dir_dev'];
    } else {
        $data_dir = $GLOBALS['ZI']['installer_data_dir'];
    }
    $zi_registry = new ZZOSS_InstallerRegistry($data_dir);
    $zi_registry->setInitDir($GLOBALS['ZI']['data_dir']);
    $zi_registry->refreshDistributions();
    
    if(isset($_REQUEST['distribution'])){
        $zi_registry->setDistribution($_REQUEST['distribution']);
    }
    
    if(isset($_REQUEST['application'])){
        $zi_registry->setApplication($_REQUEST['application']);
    }
?>
Return current item: ZZ/OSS Installer