You've already forked joomla_test
first commit
This commit is contained in:
21
administrator/components/com_cpanel/controller.php
Normal file
21
administrator/components/com_cpanel/controller.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Cpanel Controller
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
* @since 1.5
|
||||
*/
|
||||
class CpanelController extends JControllerLegacy
|
||||
{
|
||||
}
|
16
administrator/components/com_cpanel/cpanel.php
Normal file
16
administrator/components/com_cpanel/cpanel.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// No access check.
|
||||
|
||||
$controller = JControllerLegacy::getInstance('Cpanel');
|
||||
$controller->execute(JFactory::getApplication()->input->get('task'));
|
||||
$controller->redirect();
|
25
administrator/components/com_cpanel/cpanel.xml
Normal file
25
administrator/components/com_cpanel/cpanel.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.1" method="upgrade">
|
||||
<name>com_cpanel</name>
|
||||
<author>Joomla! Project</author>
|
||||
<creationDate>April 2006</creationDate>
|
||||
<copyright>(C) 2005 - 2013 Open Source Matters. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<authorEmail>admin@joomla.org</authorEmail>
|
||||
<authorUrl>www.joomla.org</authorUrl>
|
||||
<version>3.0.0</version>
|
||||
<description>COM_CPANEL_XML_DESCRIPTION</description>
|
||||
<administration>
|
||||
<files folder="admin">
|
||||
<filename>controller.php</filename>
|
||||
<filename>cpanel.php</filename>
|
||||
<filename>index.html</filename>
|
||||
<folder>views</folder>
|
||||
</files>
|
||||
<languages folder="admin">
|
||||
<language tag="en-GB">language/en-GB.com_cpanel.ini</language>
|
||||
<language tag="en-GB">language/en-GB.com_cpanel.sys.ini</language>
|
||||
</languages>
|
||||
</administration>
|
||||
</extension>
|
||||
|
1
administrator/components/com_cpanel/index.html
Normal file
1
administrator/components/com_cpanel/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$user = JFactory::getUser();
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<div class="sidebar-nav">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header"><?php echo JText::_('COM_CPANEL_HEADER_SUBMENU'); ?></li>
|
||||
<li class="active"><a href="<?php echo $this->baseurl; ?>"><?php echo JText::_('COM_CPANEL_LINK_DASHBOARD'); ?></a></li>
|
||||
<li class="nav-header"><?php echo JText::_('COM_CPANEL_HEADER_SYSTEM'); ?></li>
|
||||
<?php if ($user->authorise('core.admin')):?>
|
||||
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_config"><?php echo JText::_('COM_CPANEL_LINK_GLOBAL_CONFIG'); ?></a></li>
|
||||
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_admin&view=sysinfo"><?php echo JText::_('COM_CPANEL_LINK_SYSINFO'); ?></a></li>
|
||||
<?php endif;?>
|
||||
<?php if ($user->authorise('core.manage', 'com_cache')):?>
|
||||
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_cache"><?php echo JText::_('COM_CPANEL_LINK_CLEAR_CACHE'); ?></a></li>
|
||||
<?php endif;?>
|
||||
<?php if ($user->authorise('core.admin', 'com_checkin')):?>
|
||||
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_checkin"><?php echo JText::_('COM_CPANEL_LINK_CHECKIN'); ?></a></li>
|
||||
<?php endif;?>
|
||||
<?php if ($user->authorise('core.manage', 'com_installer')):?>
|
||||
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_installer"><?php echo JText::_('COM_CPANEL_LINK_EXTENSIONS'); ?></a></li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php
|
||||
foreach ($this->modules as $module)
|
||||
{
|
||||
$output = JModuleHelper::renderModule($module, array('style' => 'well'));
|
||||
$params = new JRegistry;
|
||||
$params->loadString($module->params);
|
||||
echo $output;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<?php
|
||||
// Display the submenu position modules
|
||||
$this->iconmodules = JModuleHelper::getModules('icon');
|
||||
foreach ($this->iconmodules as $iconmodule)
|
||||
{
|
||||
$output = JModuleHelper::renderModule($iconmodule, array('style' => 'well'));
|
||||
$params = new JRegistry;
|
||||
$params->loadString($iconmodule->params);
|
||||
echo $output;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* HTML View class for the Cpanel component
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_cpanel
|
||||
* @since 1.0
|
||||
*/
|
||||
class CpanelViewCpanel extends JViewLegacy
|
||||
{
|
||||
protected $modules = null;
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// Set toolbar items for the page
|
||||
JToolbarHelper::title(JText::_('COM_CPANEL'), 'cpanel.png');
|
||||
JToolbarHelper::help('screen.cpanel');
|
||||
|
||||
$input = JFactory::getApplication()->input;
|
||||
|
||||
/*
|
||||
* Set the template - this will display cpanel.php
|
||||
* from the selected admin template.
|
||||
*/
|
||||
$input->set('tmpl', 'cpanel');
|
||||
|
||||
// Display the cpanel modules
|
||||
$this->modules = JModuleHelper::getModules('cpanel');
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
1
administrator/components/com_cpanel/views/index.html
Normal file
1
administrator/components/com_cpanel/views/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Reference in New Issue
Block a user