input->get('task') === 'plugin') { throw new Exception('Restricted', 403); } $vName = $app->input->get('view'); // fix legacy plugin url if ($vName == 'editor' && $app->input->get('layout') == 'plugin') { if ($app->input->get('plugin')) { $app->input->set('task', 'plugin.display'); } $app->input->set('view', ''); } // constants and autoload require_once __DIR__ . '/includes/base.php'; $controller = JControllerLegacy::getInstance('Jce', array('base_path' => __DIR__)); $controller->execute($app->input->get('task')); $controller->redirect();