0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: cfaction_joomla_plugins.php.tar
www/administrator/components/com_chronoforms/form_actions/joomla_plugins/cfaction_joomla_plugins.php0000604 00000002172 15137277242 0033510 0 ustar 00 home/academiac <?php /** * CHRONOFORMS version 4.0 * Copyright (c) 2006 - 2011 Chrono_Man, ChronoEngine.com. All rights reserved. * Author: Chrono_Man (ChronoEngine.com) * @license GNU/GPL * Visit http://www.ChronoEngine.com for regular updates and information. **/ defined('_JEXEC') or die('Restricted access'); class CfactionJoomlaPluginsHelper{ function show($form, $actiondata){ $mainframe = JFactory::getApplication(); $params = new JParameter($actiondata->params); $contentParams = $mainframe->getParams('com_content'); $dispatcher = JDispatcher::getInstance(); $type = 'content'; JPluginHelper::importPlugin($type); $jversion = new JVersion(); if($jversion->RELEASE > 1.5){ $context = ''; $rowPlg = new stdClass(); $rowPlg->text = $form->form_output; $results = $mainframe->triggerEvent('onContentPrepare', array($context, &$rowPlg, &$contentParams, 0)); $form->form_output = $rowPlg->text; }else{ $rowPlg = new stdClass(); $rowPlg->text = $form->form_output; $results = $mainframe->triggerEvent('onPrepareContent', array(&$rowPlg, &$contentParams, 0)); $form->form_output = $rowPlg->text; } } } ?>