Example #1
0
        die;
    }
    $_SESSION['STEP_POSITION'] = $aNextStep['POSITION'];
    $_SESSION['BREAKSTEP']['NEXT_STEP'] = $aNextStep['PAGE'];
    $debuggerAvailable = true;
    if (isset($_SESSION['current_ux']) && $_SESSION['current_ux'] == 'SIMPLIFIED') {
        $debuggerAvailable = false;
    }
    if ($trigger_debug_session && $debuggerAvailable) {
        $_SESSION['TRIGGER_DEBUG']['BREAKPAGE'] = $aNextStep['PAGE'];
        $aNextStep['PAGE'] = $aNextStep['PAGE'] . '&breakpoint=triggerdebug';
    }
    $oForm->validatePost();
    //$oJSON = new Services_JSON();
    $_POST['__notValidateThisFields__'] = isset($_POST['__notValidateThisFields__']) && $_POST['__notValidateThisFields__'] != '' ? $_POST['__notValidateThisFields__'] : $_POST['DynaformRequiredFields'];
    if ($missing_req_values = $oForm->validateRequiredFields($_POST['form'], Bootstrap::json_decode(stripslashes($_POST['__notValidateThisFields__'])))) {
        $_POST['next_step'] = $aNextStep;
        $_POST['previous_step'] = $oCase->getPreviousStep($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION']);
        $_POST['req_val'] = $missing_req_values;
        $G_PUBLISH = new Publisher();
        $G_PUBLISH->AddContent('view', 'cases/missRequiredFields');
        G::RenderPage('publish', 'blank');
        exit(0);
    }
    G::header('location: ' . $aNextStep['PAGE']);
} catch (Exception $e) {
    $G_PUBLISH = new Publisher();
    $aMessage = array();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
    G::RenderPage('publish', 'blank');
Example #2
0
        die;
    }
    $_SESSION['STEP_POSITION'] = $aNextStep['POSITION'];
    $_SESSION['BREAKSTEP']['NEXT_STEP'] = $aNextStep['PAGE'];
    $debuggerAvailable = true;
    if (isset($_SESSION['current_ux']) && $_SESSION['current_ux'] == 'SIMPLIFIED') {
        $debuggerAvailable = false;
    }
    if ($trigger_debug_session && $debuggerAvailable) {
        $_SESSION['TRIGGER_DEBUG']['BREAKPAGE'] = $aNextStep['PAGE'];
        $aNextStep['PAGE'] = $aNextStep['PAGE'] . '&breakpoint=triggerdebug';
    }
    $oForm->validatePost();
    $oJSON = new Services_JSON();
    $_POST['__notValidateThisFields__'] = isset($_POST['__notValidateThisFields__']) && $_POST['__notValidateThisFields__'] != '' ? $_POST['__notValidateThisFields__'] : $_POST['DynaformRequiredFields'];
    if ($missing_req_values = $oForm->validateRequiredFields($_POST['form'], $oJSON->decode(stripslashes($_POST['__notValidateThisFields__'])))) {
        $_POST['next_step'] = $aNextStep;
        $_POST['previous_step'] = $oCase->getPreviousStep($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION']);
        $_POST['req_val'] = $missing_req_values;
        $G_PUBLISH = new Publisher();
        $G_PUBLISH->AddContent('view', 'cases/missRequiredFields');
        G::RenderPage('publish', 'blank');
        exit(0);
    }
    G::header('location: ' . $aNextStep['PAGE']);
} catch (Exception $e) {
    $G_PUBLISH = new Publisher();
    $aMessage = array();
    $aMessage['MESSAGE'] = $e->getMessage();
    $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
    G::RenderPage('publish', 'blank');