AppendObject(new BS_Alert("Successfully deleted record " . $record)); if ($_GET["ptr"] == true) { Debug('PTR record deletion was requested for ' . $record); if (!isset($_GET['key']) || !isset($_GET['value']) || !isset($_GET['type'])) { Warning('PTR record was not removed because either key, value or type was not specified'); return; } $key = $_GET['key']; $type = $_GET['type']; $value = $_GET['value']; if ($type != 'A') { Warning('Requested PTR record was not deleted: PTR record can be only deleted when you are changing A record, you deleted ' . $type . ' record instead'); } else { DNS_DeletePTRForARecord($value, $key, ''); } } } public static function GetContents($fc) { global $g_auth_session_name, $g_domains, $g_selected_domain, $g_total_records_count, $g_hidden_records_count, $g_show_hidden_types, $g_hidden_types_present; // Check toggle for hidden if (isset($_GET['hidden_types'])) { if ($_GET['hidden_types'] == 'show') { setcookie($g_auth_session_name . '_show_hidden_types', true); $g_show_hidden_types = true; } else { setcookie($g_auth_session_name . '_show_hidden_types', false); $g_show_hidden_types = false; } } else { // Check if there is a cookie for hidden types if (isset($_COOKIE[$g_auth_session_name . '_show_hidden_types'])) $g_show_hidden_types = $_COOKIE[$g_auth_session_name . '_show_hidden_types']; } if ($g_selected_domain == null) { reset($g_domains); $g_selected_domain = key($g_domains); } // First get the record list - this function will fill up g_hidden_types_present variable as well as global counters $record_list = GetRecordListTable(NULL, $g_selected_domain); $record_count = ""; if ($g_total_records_count > 0) { if ($g_hidden_records_count == 0) $record_count = " ($g_total_records_count records)"; else $record_count = " ($g_total_records_count records, $g_hidden_records_count hidden)"; } $fc->AppendObject(GetSwitcher($fc)); $fc->AppendHeader($g_selected_domain . $record_count, 2); $fc->AppendHtml('
'); $fc->AppendObject(GetStatusOfZoneAsNote($g_selected_domain)); if ($g_hidden_types_present === true) { // This zone contains some hidden record types, show toggle for user if (!$g_show_hidden_types) $fc->AppendHtml('