| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Languages 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 // ensure user has access to this component 21 if (!$acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_languages' ) ) { 22 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 23 } 24 25 require_once(mamboCore::get('rootPath').'/includes/phpgettext/error.php'); 26 require_once(mamboCore::get('rootPath').'/includes/phpgettext/phpgettext.catalog.php'); 27 require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'admin.languages.class.php'); 28 29 $include_path = ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.dirname(__FILE__)); 30 31 $request =& Request::getInstance('com_languages'); 32 $session =& $request->session(); 33 if (isset($session['mosmsg'])) { 34 $request->set('mosmsg', $session['mosmsg']); 35 unset($session['mosmsg']); 36 } 37 38 $lang = $session['lang'] = mosGetParam($_POST, 'lang', isset($session['lang']) ? $session['lang'] : mamboCore::get('mosConfig_locale')); 39 $mamboLanguage =& new mamboLanguage($lang); 40 $languages = $mamboLanguage->getLanguages(); 41 $task = mosGetParam($_REQUEST, 'task', 'index'); 42 $act = mosGetParam($_REQUEST, 'act' , 'language'); 43 $search = trim(mosGetParam($_POST, 'search' , '')); 44 45 $request->set('task', $task); 46 $request->set('act', $act); 47 $request->set('lang', $lang); 48 $request->set('languages', $languages); 49 $request->set('search', $search); 50 51 52 $renderer =& Renderer::getInstance(); 53 foreach ($request->get() as $key => $value) { 54 $renderer->addvar($key, $value); 55 } 56 57 $controller = new Controller('com_languages'); 58 $controller->forward($task); 59 ini_set('include_path', $include_path); 60 61 #dump($_REQUEST); 62 63 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |