3
* @version $Id: admin.installer.php 9764 2007-12-30 07:48:11Z ircmaxell $
5
* @subpackage Installer
6
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
7
* @license GNU/GPL, see LICENSE.php
8
* Joomla! is free software. This version may have been modified pursuant
9
* to the GNU General Public License, and as distributed it includes or
10
* is derivative of works licensed under the GNU General Public License or
11
* other free or open source software licenses.
12
* See COPYRIGHT.php for copyright notices and details.
16
defined('_JEXEC') or die('Restricted access');
19
* Make sure the user is authorized to view this page
22
$ext = JRequest::getWord('type');
25
'Plugins' => 'plugin',
26
'Languages' => 'language',
27
'Plugin Extensions' => 'extension'
29
JSubMenuHelper::addEntry(JText::_( 'Control Panel' ), '#" onclick="javascript:document.adminForm.type.value=\'\';document.adminForm.task.value=\'\';submitbutton(\'\');', !in_array( $ext, $subMenus));
30
JSubMenuHelper::addEntry(JText::_( 'Install' ), '#" onclick="javascript:document.adminForm.type.value=\'install\';document.adminForm.task.value=\'\';submitbutton(\'\');', !in_array( $ext, $subMenus));
33
foreach ($subMenus as $name => $extension) {
34
JSubMenuHelper::addEntry(JText::_( $name ), '#" onclick="javascript:document.adminForm.type.value=\''.$extension.'\';submitbutton(\'manage\');', ($extension == $ext));
36
require_once( dirname( __FILE__ ) .DS. 'installer' .DS. 'controller.php' );
37
$controller = new InstallerController( array(
38
'default_task' => 'installform',
39
'base_path' => dirname( __FILE__ ) .DS. 'installer'
41
$task = JRequest::getWord('task');
42
if( $task == 'install' ){
45
$controller->execute( $task );
46
$controller->redirect();
b'\\ No newline at end of file'