AAAAchrono_connectivity_return.ctp000066600000004247151374433070012763 0ustar00
Chrono Connectivity Return to App
Header(array('settings' => 'Settings', 'help' => 'Help'), 'chrono_connectivity_return_config_{n}'); ?> tabStart('settings'); ?> input('action_chrono_connectivity_return_{n}_purge_old_data_config', array('type' => 'select', 'label' => "Purge Old Data", 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'Should the action remove the session data of the current last executed action before redirecting back to the main connection page ?')); ?> input('action_chrono_connectivity_return_{n}_connection_name_config', array('type' => 'text', 'label' => "Connection Name", 'class' => 'medium_input', 'smalldesc' => 'Leave empty for auto integration, if no connection name is passed for this action then this will be used.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>
.htaccess000066600000000177151374433070006362 0ustar00 Order allow,deny Deny from all chrono_connectivity_return.php000066600000003642151374433070012762 0ustar00 'Chrono Connectivity Return', 'tooltip' => 'Return to the Connection listing page.'); var $group = array('id' => 'x_chronoforms_apps', 'title' => 'ChronoForms Apps'); function run($form, $actiondata){ $mainframe = JFactory::getApplication(); $params = new JParameter($actiondata->params); if(trim($params->get('connection_name', '')) != ''){ $received_data = array( 'connection_name' => $params->get('connection_name', '') ); $this->processData($received_data); }else if(isset($form->data['apps_data']['ChronoConnectivity']['action_'.$actiondata->order])){ $received_data = $form->data['apps_data']['ChronoConnectivity']['action_'.$actiondata->order]; if(isset($received_data['connection_name'])){ $this->processData($received_data); } } } function processData($received_data = array()){ $mainframe = JFactory::getApplication(); $connection_name = $received_data['connection_name']; require_once(JPATH_SITE.DS.'components'.DS.'com_chronoconnectivity'.DS.'libraries'.DS.'chronoconnection.php'); $MyConnection = CFChronoConnection::getInstance($connection_name); /*$redirect = $MyConnection->connection_url; if($MyConnection->connection_area != 'admin'){ //$redirect = JRoute::_($MyConnection->connection_url, true); }*/ $mainframe->redirect(JRoute::_($MyConnection->connection_url, false)); } function load($clear){ if($clear){ $action_params = array( 'connection_name' => '', 'purge_old_data' => 1, ); } return array('action_params' => $action_params); } } ?>index.html000066600000000035151374433070006552 0ustar00