Пример #1
0
function b1n_regCheckChangeUser($sql, &$ret_msgs, $reg_data, $reg_config)
{
    $ret = b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
    if ($reg_data["usr_passwd"] != $reg_data["usr_passwd2"]) {
        b1n_retMsg($ret_msgs, b1n_FIZZLES, '<b>Password</b> and <b>Confirmation</b> do not match.');
        $ret = false;
    }
    return $ret;
}
Пример #2
0
function b1n_regCheckChangePax_vst($sql, &$ret_msgs, $reg_data, $reg_config)
{
    $ret = b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
    if ($ret) {
        $query = "SELECT pvs_id FROM \"pax_vst\" WHERE pax_id = '" . b1n_inBd($reg_data['pax_id']) . "' AND vst_id = '" . b1n_inBd($reg_data['vst_id']) . "' AND pvs_id != '" . $reg_data['id'] . "'";
        $rs = $sql->singleQuery($query);
        if (is_array($rs)) {
            b1n_retMsg($ret_msgs, b1n_FIZZLES, "This combination of <b>Pax</b> and <b>Visa Type</b> already exists.");
            $ret = false;
        }
    }
    return $ret;
}
Пример #3
0
function b1n_regCheckChangeAirport($sql, &$ret_msgs, $reg_data, $reg_config)
{
    $ret = b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
    if ($ret) {
        if ($reg_data['apt_timezone'] > 12 || $reg_data['apt_timezone'] < -12) {
            b1n_retMsg($ret_msgs, b1n_FIZZLES, 'Invalid <b>TimeZone</b> (valid values are between +12 and -12).');
            $ret = false;
        }
        $dst_start = mktime(0, 0, 0, $reg_data['apt_dst_start_dt']['month'], $reg_data['apt_dst_start_dt']['day'], $reg_data['apt_dst_start_dt']['year']);
        $dst_end = mktime(0, 0, 0, $reg_data['apt_dst_end_dt']['month'], $reg_data['apt_dst_end_dt']['day'], $reg_data['apt_dst_end_dt']['year']);
        if ($dst_start > $dst_end) {
            b1n_retMsg($ret_msgs, b1n_FIZZLES, '<b>DST Start</b> cannot be bigger than <b>DST End</b>.');
            $ret = false;
        } elseif (!empty($dst_start['month']) && $dst_start == $dst_end) {
            b1n_retMsg($ret_msgs, b1n_FIZZLES, '<b>DST Start</b> cannot be equal to <b>DST End</b>.');
            $ret = false;
        }
    }
    return $ret;
}
Пример #4
0
function b1n_regCheckChangeCitizenship($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}
Пример #5
0
function b1n_regCheckChangeCaterer($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}
Пример #6
0
function b1n_regCheckChangeOccupation($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}
Пример #7
0
function b1n_regCheckChangeService($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}
Пример #8
0
function b1n_regCheckChangeVisatype($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}
Пример #9
0
function b1n_regCheckChangeFile($sql, &$ret_msgs, &$reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config) && b1n_regCheckFileUpload($ret_msgs, $reg_data);
}
Пример #10
0
function b1n_regCheckChangeAircraft($sql, &$ret_msgs, $reg_data, $reg_config)
{
    return b1n_regCheckChange($sql, $ret_msgs, $reg_data, $reg_config);
}