AAAAcfaction_custom_code.ctp000066600000000201151377531130011431 0ustar00runCode($form, $actiondata); ?>custom_code.php000066600000001641151377531130007575 0ustar00 '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); } } ?>custom_code.ctp000066600000005615151377531130007601 0ustar00
Custom Code
Header(array('settings' => 'Settings', 'help' => 'Help'), 'custom_code_config_{n}'); ?> tabStart('settings'); ?> input('action_custom_code_{n}_mode_config', array('type' => 'select', 'label' => 'Mode', 'options' => array('controller' => 'Controller', 'view' => 'View'), 'smalldesc' => 'When should this code run ? during the controller code processing (early) or later when the ouput is viewed.')); ?> input('action_custom_code_{n}_action_label_config', array('type' => 'text', 'label' => "Action Label", 'class' => 'medium_input', 'smalldesc' => 'Label for your action in the wizard.')); ?> input('action_custom_code_{n}_content1_config', array('type' => 'textarea', 'label' => "Code", 'rows' => 20, 'cols' => 70, 'smalldesc' => 'any code can be placed here, any PHP code should include the PHP tags.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>
cfaction_custom_code.php000066600000001216151377531130011441 0ustar00params); if($params->get('mode', 'controller') == 'view'){ $message = $actiondata->content1; ob_start(); eval('?>'.$message); $output = ob_get_clean(); echo $form->curly_replacer($output, $form->data, '.', true); } } } ?>.htaccess000066600000000177151377531130006361 0ustar00 Order allow,deny Deny from all index.html000066600000000035151377531130006551 0ustar00