Пример #1
0
        $errors[] = 'AC_ERROR_INVALID_WEB_SERVICE_ID';
    } else {
        $user_id = $user_row['user_id'];
    }
}
if (!is_array($decisions)) {
    $errors[] = 'AC_ERROR_SEQUENCEID_NOT_GIVEN';
}
// return errors
if (is_array($errors)) {
    if ($output == 'rest') {
        echo RESTWebServiceOutput::generateErrorRpt($errors);
    } else {
        echo HTMLRpt::generateErrorRpt($errors);
    }
    exit;
}
// make decisions
$decision = new Decision($user_id, $uri, $output, $session_id);
if ($decision->hasError()) {
    $decision_error = $decision->getErrorRpt();
    // displays in checker_input_form.tmpl.php
} else {
    // make decsions
    $decision->makeDecisions($decisions);
    if ($output == 'rest') {
        echo RESTWebServiceOutput::generateSuccessRpt();
    } else {
        echo HTMLRpt::generateSuccessRpt();
    }
}