Current Path :
/
home
/
develito
/
public_html
/
plugins
/
system
/
switcheditor
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/plugins/system/switcheditor/switcheditor.php
<?php /** * @package Switch Editor * @subpackage plg_system_switcheditor * @copyright Copyright (C) 2012 Anything Digital. All rights reserved. * @copyright Copyright (C) 2008 Netdream - Como,Italy. All rights reserved. * @license GNU/GPLv2 */ // no direct access defined('_JEXEC') or die; jimport('joomla.filesystem.file'); jimport('joomla.plugin.plugin'); class plgSystemSwitchEditor extends JPlugin { const EXT = 'switcheditor'; public function onAfterInitialise() { $input = JFactory::getApplication()->input; // don't execute if we're not firing one of our own tasks if (self::EXT != $input->get('option')) { return; } // get the module's helper $helper = JPATH_ADMINISTRATOR . '/modules/mod_' . self::EXT . '/helper.php'; if (!JFile::exists($helper)) { return; } require_once $helper; // execute the requested task $task = $input->get('task'); switch ($task) { case 'switch': modSwitchEditorHelper::setEditor(); jexit(); break; default: return; } } }