AppendObject(new BS_Alert("Successfully deleted record " . $record)); } function ProcessInsertFromPOST($zone, $record, $value, $type, $ttl) { if (psf_string_is_null_or_empty($record) && psf_string_is_null_or_empty($zone)) Error("Both record and zone can't be empty"); $fqdn = $record; if (!psf_string_is_null_or_empty($zone)) { // Make sure we don't add trailing dot if (!psf_string_is_null_or_empty ($fqdn)) $fqdn .= '.' . $zone; else $fqdn = $zone; } return "update add " . $fqdn . " " . $ttl . " " . $type . " " . $value . "\n"; }