function b1n_regChangeFile($sql, &$ret_msgs, $reg_data, $reg_config) { if (isset($reg_data['do_not_upload'])) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "file", "File"); } else { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "file", "File", "b1n_regAddFilePlus"); } }
function b1n_regChangeAirport($sql, &$ret_msgs, $reg_data, $reg_config) { if ($reg_data['apt_timezone'] > 0 && !strstr($reg_data['apt_timezone'], '+')) { $reg_data['apt_timezone'] = '+' . $reg_data['apt_timezone']; } $reg_data['apt_icao'] = strtoupper($reg_data['apt_icao']); $reg_data['apt_iata'] = strtoupper($reg_data['apt_iata']); return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "airport", "Airport"); }
function b1n_regChangeLink($sql, &$ret_msgs, $reg_data, $reg_config) { // Testing if the link really belongs to the current user $rs = $sql->singleQuery("SELECT COUNT(lnk_id) AS c FROM \"link\" WHERE usr_id = '" . b1n_inBd($_SESSION['user']['usr_id']) . "' AND lnk_id = '" . b1n_inBd($reg_data['id']) . "'"); if ($rs['c'] == '1') { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "link", "Link"); } else { b1n_retMsg($ret_msgs, b1n_FIZZLES, "This Link does not belongs to you, What are you Trying to Do?"); return false; } }
function b1n_regChangePax_vst($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "pax_vst", "Pax Visa"); }
function b1n_regChangeFoodtype($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "foodtype", "Food Type", "b1n_regChangeFoodtypePlus"); }
function b1n_regChangeOperator($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "operator", "Operator"); }
function b1n_regChangeFood($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "food", "Food"); }
function b1n_regChangeCaterer($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "caterer", "Caterer", "b1n_regChangeCatererPlus"); }
function b1n_regChangeOccupation($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "occupation", "Occupation"); }
function b1n_regChangeCmb($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "cmb", "Crew Member"); }
function b1n_regChangeHandler($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "handler", "Handler", "b1n_regChangeHandlerPlus"); }
function b1n_regChangeContact($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "contact", "Contact"); }
function b1n_regChangeCountry($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "country", "Country"); }
function b1n_regChangeUser($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "user", "User"); }
function b1n_regChangeAircraft($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "aircraft", "Aircraft"); }
function b1n_regChangeVisatype($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "visatype", "Visa Type"); }
function b1n_regChangeService($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "service", "Service"); }
function b1n_regChangeLeg($sql, &$ret_msgs, $reg_data, $reg_config) { // We will update the Trip (if changed) in the ChangeLegPlus function $reg_config['Trip']['db'] = 'none'; return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, 'leg', 'Leg', 'b1n_regChangeLegPlus'); }
function b1n_regChangePax($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "pax", "Pax"); }
function b1n_regChangePermit($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "permit", "Permit", "b1n_regChangePermitPlus"); }
function b1n_regChangeCitizenship($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "citizenship", "Citizenship"); }
function b1n_regChangeGroup($sql, &$ret_msgs, $reg_data, $reg_config) { return b1n_regChange($sql, $ret_msgs, $reg_data, $reg_config, "group", "Group", "b1n_regChangeGroupPlus"); }