Exemplo n.º 1
0
 function process($option)
 {
     switch ($option) {
         case 'EditDropdown':
             parent::process($option);
             require_once 'modules/Studio/DropDowns/EditView.php';
             break;
         case 'SaveDropDown':
             DropDownHelper::saveDropDown($_REQUEST);
             require_once 'modules/Studio/DropDowns/EditView.php';
             break;
         default:
             parent::process($option);
     }
 }
 function process($option)
 {
     switch ($option) {
         case 'ViewCustomFields':
             parent::process($option);
             require_once 'modules/Studio/EditCustomFields/ListView.php';
             break;
         case 'CreateCustomFields':
             if (empty($_REQUEST['to_pdf'])) {
                 parent::process($option);
             }
             require_once 'modules/Studio/EditCustomFields/EditView.php';
             break;
         case 'SaveCustomField':
             require_once 'modules/Studio/EditCustomFields/Save.php';
             break;
         case 'DeleteCustomField':
             require_once 'modules/Studio/EditCustomFields/Delete.php';
             break;
         case 'EditCustomField':
             parent::process($option);
             require_once 'modules/Studio/EditCustomFields/EditView.php';
             break;
         case 'ClearCache':
             require_once 'modules/DynamicFields/DynamicField.php';
             DynamicField::deleteCache();
             echo '<script>YAHOO.util.Event.addListener(window, "load", function(){ajaxStatus.showStatus("cache cleared");window.setTimeout(\'ajaxStatus.hideStatus();\', 2000);});</script>';
             parent::process($option);
             break;
         case 'RepairCustomFields':
             header('Location: index.php?module=Administration&action=UpgradeFields');
             sugar_cleanup(true);
         default:
             parent::process($option);
     }
 }
Exemplo n.º 3
0
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
require_once 'modules/Studio/config.php';
require_once 'modules/Studio/wizards/StudioWizard.php';
$wizard = !empty($_REQUEST['wizard']) ? $_REQUEST['wizard'] : 'StudioWizard';
if (file_exists('modules/Studio/wizards/' . $wizard . '.php')) {
    require_once 'modules/Studio/wizards/' . $wizard . '.php';
    $thewiz = new $wizard();
} else {
    unset($_SESSION['studio']['lastWizard']);
    $thewiz = new StudioWizard();
}
if (!empty($_REQUEST['back'])) {
    $thewiz->back();
}
if (!empty($_REQUEST['option'])) {
    $thewiz->process($_REQUEST['option']);
} else {
    $thewiz->display();
}
 function display()
 {
     $_SESSION['studio']['lastWizard'] = 'ManageBackups';
     if (empty($_REQUEST['setFile'])) {
         require_once 'modules/Studio/wizards/SelectModuleLayout.php';
         $newWiz = new SelectModuleLayout();
         $newWiz->fileuse = 'backupmanager';
         $newWiz->display();
     } else {
         parent::display();
     }
 }