0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: custom_code.php.tar
home/academiac/www/administrator/components/com_chronoforms/form_actions/custom_code/custom_code.php0000604 00000001641 15137721213 0030455 0 ustar 00 <?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 CfactionCustomCode{ var $formname; var $formid; var $details = array('title' => 'Custom Code', 'tooltip' => 'Display custom HTML code or process PHP code.'); function run($form, $actiondata){ $mainframe = JFactory::getApplication(); $params = new JParameter($actiondata->params); if($params->get('mode', 'controller') == 'controller'){ $message = $actiondata->content1; eval('?>'.$message); } } function load($clear){ if($clear){ $action_params = array( 'content1' => '', 'action_label' => '', 'mode' => 'controller' ); } return array('action_params' => $action_params); } } ?>