Beispiel #1
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.
**/
/* 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');
//clean the $_POST data
$_POST = JRequest::get('post', JREQUEST_ALLOWRAW);
// case differentiation
switch ($task) {
    case "form_wizard":
    case "apply_wizard_changes":
        form_wizard($task);
        break;
    case "remove":
        delete_form();
        break;
    case "copy":
        copy_form();
        break;
    case "add":
    case "edit":
        edit_form();
        break;
    case "save":
    case "apply":
        save_form($task);
        break;
 case 'saveconfig':
     saveSettings($option);
     break;
 case 'cancelconfig':
     cancelSettings($option);
     break;
 case 'save_conf':
     save_conf($option);
     break;
     ////// wizard
 ////// wizard
 case 'form_wizard':
     form_wizard('', $option);
     break;
 case 'wizardedit':
     form_wizard($cid[0], $option);
     break;
 case 'wizard_elements':
     wizard_elements($option);
     break;
 case 'save_form_wizard':
     save_form_wizard($option);
     break;
 case 'editelement':
     editElement($cid[0], $option);
     break;
 case 'newelement':
     editElement(0, $option);
     break;
 case 'saveelement':
 case 'applyelement':