/* ensure that this file is not called from another file */ defined('_JEXEC') or die('Restricted access'); require_once JApplicationHelper::getPath('admin_html'); require_once JApplicationHelper::getPath('class'); $jversion = new JVersion(); require_once JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_chronoforms" . DS . "controller.php"; require_once JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_chronoforms" . DS . "versions" . DS . "j" . $jversion->RELEASE . DS . "admin.chronoforms.php"; $task = JRequest::getString('task'); $option = strtolower(JRequest::getCmd('option')); //clean the $_POST data $_POST = JRequest::get('post', JREQUEST_ALLOWRAW); // case differentiation switch ($task) { case "form_wizard": case "apply_wizard_changes": ChronoFormsAdmin::form_wizard($task); break; case "wizard_preview": ChronoFormsAdmin::wizard_preview(); break; case "remove": ChronoFormsAdmin::delete_form(); break; case "copy": ChronoFormsAdmin::copy_form(); break; case "add": case "edit": ChronoFormsAdmin::edit_form(); break; case "save":