示例#1
0
 * Joomla! 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.
 */
// no direct access
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
jimport('joomla.application.component.controller');
jimport('joomla.application.component.helper');
$helper = JApplicationHelper::getPath('helper');
if (JDEBUG) {
    dump($helper, "helper");
}
require_once $helper;
JoopoauserHelper::verificaRequisitosMinimos();
$user_option = JRequest::getCmd('option');
$user_controller = JRequest::getCmd('controller', NULL);
$user_task = JRequest::getCmd('task', 'view');
// controla se o script generico do adminform foi adicionado.
global $scriptAdminForm;
$scriptAdminForm = false;
if (JDEBUG) {
    dumpMessage("Debug: Controler -> " . $user_controller);
}
if (is_null($user_controller) || empty($user_controller)) {
    $controllerFile = JPATH_COMPONENT . DS . 'controller.php';
} else {
    $controllerFile = strtolower($user_controller);
    $controllerFile = JPATH_COMPONENT . DS . 'controllers' . DS . $controllerFile . '.php';
    if (file_exists($controllerFile)) {