AAAA.htaccess000066600000000177151374453510006363 0ustar00 Order allow,deny Deny from all confirmation_page.php000066600000002345151374453510010761 0ustar00 'form_utilities', 'title' => 'Utilities'); var $events = array('confirm' => 0, 'back' => 0, 'show' => 0); var $details = array('title' => 'Confirmation Page', 'tooltip' => 'Displays a confirmation page which asks the users for their confirmation before proceeding, may conflict with "Anti SPAM" tools.'); function run($form, $actiondata){ $params = new JParameter($actiondata->params); if(isset($_POST['confirmation_page'])){ if($_POST['confirmation_page'] == '_confirm'){ $this->events['confirm'] = 1; }else if($_POST['confirmation_page'] == '_back'){ $this->events['back'] = 1; } }else{ //show confimration page event $this->events['show'] = 1; } } function load($clear){ if($clear){ $action_params = array( 'buttons' => 1, 'content1' => '' ); } return array('action_params' => $action_params); } } ?>cfaction_confirmation_page.php000066600000002225151374453510012624 0ustar00params); $output = '
'; $output .= $actiondata->content1; if(!isset($_POST['confirmation_page'])){ $buttons_code = ' '; if((int)$params->get('buttons', 1) == 1){ $output .= $buttons_code; } ob_start(); eval("?>".$output); $output = ob_get_clean(); $output .= '
'; return $form->curly_replacer($output, $form->data); } } function selfURL(){ $uri = JURI::getInstance(); $inbetween = ''; if($uri->getQuery())$inbetween = '?'; return $uri->current().$inbetween.$uri->getQuery(); } } ?>index.html000066600000000035151374453510006553 0ustar00 cfaction_confirmation_page.ctp000066600000000230151374453510012615 0ustar00loadAction($form, $actiondata); ?>confirmation_page.ctp000066600000005155151374453510010762 0ustar00
Confirmation Page
Header(array('settings' => 'Settings', 'help' => 'Help'), 'confirmation_page_config_{n}'); ?> tabStart('settings'); ?> input('action_confirmation_page_{n}_buttons_config', array('type' => 'select', 'label' => 'Enable Buttons', 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'Should the plugin add the 2 confirm and back buttons to the end of the page ?')); ?> input('action_confirmation_page_{n}_content1_config', array('type' => 'textarea', 'label' => "Page Code", 'rows' => 20, 'cols' => 70, 'smalldesc' => 'any code can be placed here, any PHP code should include the PHP tags, fields names inside curly brackets will be replaced by their values.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>