| Current Path : /home/lejardintz/www/administrator/components/com_komento/views/migrators/ |
| Current File : /home/lejardintz/www/administrator/components/com_komento/views/migrators/view.html.php |
<?php
/**
* @package Komento
* @copyright Copyright (C) 2012 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Komento is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
require_once( KOMENTO_ADMIN_ROOT . DIRECTORY_SEPARATOR . 'views.php');
class KomentoViewMigrators extends KomentoAdminView
{
function display($tpl = null)
{
$user = JFactory::getUser();
$mainframe = JFactory::getApplication();
if( Komento::joomlaVersion() >= '1.6' )
{
if(!$user->authorise('komento.manage.migrators' , 'com_komento') )
{
$mainframe->redirect( 'index.php' , JText::_( 'JERROR_ALERTNOAUTHOR' ) , 'error' );
$mainframe->close();
}
}
parent::display($tpl);
}
public function registerToolbar()
{
$mainframe = JFactory::getApplication();
JToolBarHelper::title( JText::_( 'COM_KOMENTO_MIGRATORS' ), 'migrators' );
JToolBarHelper::back( 'Home' , 'index.php?option=com_komento');
}
public function registerSubmenu()
{
return 'submenu.php';
}
}