PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
administrator
/
components
/
com_falang
<?php /** * @version 1.2.0 * @package Joomla * @subpackage Falang * @author Stéphane Bouey * @copyright Copyright (C) 2012-2013 Faboba * @license GNU/GPL, see LICENSE.php */ defined( '_JEXEC' ) or die( 'Restricted access' ); //Global definitions if( !defined('DS') ) { define( 'DS', DIRECTORY_SEPARATOR ); } //initialise liveupdate require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'liveupdate'.DS.'liveupdate.php'; if(JRequest::getCmd('view','') == 'liveupdate') { LiveUpdate::handleRequest(); return; } // Access check. if (!JFactory::getUser()->authorise('core.manage', 'com_falang')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } jimport('joomla.filesystem.path'); // disable Zend php4 compatability mode - this causes problem with passing translations by reference // see http://forum.joomla.org/index.php/topic,80065.msg451560.html#msg451560 for details of problem // See http://uk.php.net/ini.core for description of the flag @ini_set("zend.ze1_compatibility_mode","Off"); /** required standard extentions **/ require_once( JPATH_SITE .DS. 'components' .DS. 'com_falang' .DS. 'helpers' .DS. 'defines.php' ); JLoader::register('FalangManager', FALANG_ADMINPATH .DS. 'classes' .DS. 'FalangManager.class.php' ); JLoader::register('FalangExtensionHelper', FALANG_ADMINPATH .DS. 'helpers' .DS. 'extensionHelper.php' ); JLoader::register('FalangVersion', FALANG_ADMINPATH .DS. 'version.php' ); $falangManager = FalangManager::getInstance( dirname( __FILE__ ) ); $cmd = JRequest::getCmd('task', 'cpanel.show'); if (strpos($cmd, '.') != false) { // We have a defined controller/task pair -- lets split them out list($controllerName, $task) = explode('.', $cmd); // Define the controller name and path $controllerName = strtolower($controllerName); $controllerPath = FALANG_ADMINPATH.DS.'controllers'.DS.$controllerName.'.php'; // If the controller file path exists, include it ... else lets die with a 500 error if (file_exists($controllerPath)) { require_once($controllerPath); } else { JError::raiseError(500, 'Invalid Controller'); } } else { // Base controller, just set the task $controllerName = null; $task = $cmd; } // Set the name for the controller and instantiate it $controllerClass = ucfirst($controllerName).'Controller'; if (class_exists($controllerClass)) { $controller = new $controllerClass(); } else { JError::raiseError(500, 'Invalid Controller Class - '.$controllerClass ); } $config = JFactory::getConfig(); // Perform the Request task $controller->execute($task); // Redirect if set by the controller $controller->redirect();
[+]
..
[-] access.xml
[edit]
[+]
assets
[+]
classes
[-] config.xml
[edit]
[+]
contentelements
[-] controller.php
[edit]
[+]
controllers
[+]
documentation
[+]
editors
[-] falang.php
[edit]
[-] falang.xml
[edit]
[+]
help
[+]
helpers
[-] index.html
[edit]
[+]
legacy
[+]
liveupdate
[+]
models
[-] script.php
[edit]
[+]
sql
[+]
tables
[-] version.php
[edit]
[+]
views
[-] .htaccess.disabled
[edit]