Your IP : 216.73.216.240


Current Path : /home/s/u/n/sunflowe/www2/j15/administrator/components/com_rokdownloads/
Upload File :
Current File : /home/s/u/n/sunflowe/www2/j15/administrator/components/com_rokdownloads/admin.rokdownloads.php

<?php
/**
 * @version $Id: admin.rokdownloads.php 20138 2010-03-16 14:49:23Z btowles $
 * @package RocketTheme
 * @subpackage	RokDownloads
 * @copyright Copyright (C) 2008 RocketWerx. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/*
 * Make sure the user is authorized to view this page
 */
//$user = & JFactory::getUser();
//if (!$user->authorize( 'com_rokdownloads', 'manage' )) {
//	$mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') );
//}

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Require specific controller if requested
if(!$controller_name = JRequest::getVar('controller')) {
	$controller_name = "rokdownloads"; //if no controller specified, set to default controller
}


// Create the controller
switch($controller_name){
    case "rokdownloads":
        $classname = "RokdownloadsControllerRokdownloads";
        $classfile = "rokdownloads";
        break;
    case "config":
        $classname = "RokdownloadsControllerConfig";
        $classfile = "config";
        break;
    case "file":
        $classname = "RokdownloadsControllerFile";
        $classfile = "file";
        break;
    case "rokdownload":
        $classname = "RokdownloadsControllerRokdownload";
        $classfile = "rokdownload";
        break;
    case "select":
        $classname = "RokdownloadsControllerSelect";
        $classfile = "select";
        break;
    default:
        exit;
}


// Create the controller
require_once (JPATH_COMPONENT.DS.'controllers'.DS.$classfile.'.php');
$controller = new $classname( );

// Perform the Request task
$controller->execute( JRequest::getVar('task'));
$controller->redirect();

?>