예제 #1
0
<?php

/**
* @version $Id: toolbar.installer.php,v 1.5 2004/08/26 05:20:39 rcastley Exp $
* @package Mambo_4.5.1
* @copyright (C) 2000 - 2004 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
* @subpackage Installer
*/
/** ensure this file is being included by a parent file */
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
require_once $mainframe->getPath('toolbar_html');
switch ($task) {
    case "new":
        TOOLBAR_installer::_NEW();
        break;
    default:
        $element = mosGetParam($_REQUEST, 'element', '');
        if ($element == 'component' || $element == 'module' || $element == 'mambot') {
            TOOLBAR_installer::_DEFAULT2();
        } else {
            TOOLBAR_installer::_DEFAULT();
        }
        break;
}
예제 #2
0
<?php

/**
* @package Mambo
* @subpackage Installer
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license GNU/GPL Version 2, see LICENSE.php
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the License.
*/
/** ensure this file is being included by a parent file */
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
require_once $mainframe->getPath('toolbar_html');
switch ($task) {
    case "new":
        TOOLBAR_installer::_NEW();
        break;
    default:
        $element = mosGetParam($_REQUEST, 'element', '');
        if ($element == 'component' || $element == 'module' || $element == 'mambot') {
            TOOLBAR_installer::_DEFAULT2($element);
        } else {
            TOOLBAR_installer::_DEFAULT();
        }
        break;
}