| 1 |
<?php |
<?php |
| 2 |
|
/** |
| 3 |
|
* @package Mambo Open Source |
| 4 |
|
* @subpackage Languages |
| 5 |
|
* @author Carlos Souza <csouza@mambo-foundation.org> |
| 6 |
|
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
| 7 |
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * |
| 8 |
|
* |
| 9 |
|
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
| 10 |
|
* that Mambo remained free Open Source software owned and managed by the community. |
| 11 |
|
* Mambo is Free Software |
| 12 |
|
*/ |
| 13 |
|
|
| 14 |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'admin.languages.class.php'); |
/** ensure this file is being included by a parent file */ |
| 15 |
|
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); |
| 16 |
|
|
| 17 |
|
$task = mosGetParam($_REQUEST, 'task', ''); |
| 18 |
|
|
| 19 |
/* error handling */ |
// ensure user has access to this component |
| 20 |
error_reporting(E_ALL ^ E_NOTICE); |
if (!$acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_languages' ) ) { |
| 21 |
set_error_handler('error_handler'); |
mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
require_once(mamboCore::get('rootPath').'/includes/phpgettext/error.php'); |
| 25 |
|
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'admin.languages.class.php'); |
| 26 |
$include_path = ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.dirname(__FILE__)); |
$include_path = ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.dirname(__FILE__)); |
| 27 |
$controller = new Controller('com_languages'); |
$controller = new Controller('com_languages'); |
| 28 |
#$controller->forward(mosGetParam($_REQUEST, 'task')); |
$controller->forward($task); |
| 29 |
ini_set('include_path', $include_path); |
ini_set('include_path', $include_path); |
| 30 |
?> |
?> |