HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/mailadmin/background_dnsblacklist_save.php
<?php
   if (!defined('IN_WEBADMIN'))
      exit();

   if (hmailGetAdminLevel() != ADMIN_SERVER)
   	hmailHackingAttemp(); // The user is not server administrator.
   
   $action	   = hmailGetVar("action","");
   $id	      = hmailGetVar("id",0);
   $Active	      = hmailGetVar("Active",0);
   $DNSHost	      = hmailGetVar("DNSHost","");
   $ExpectedResult= hmailGetVar("ExpectedResult","");
   $RejectMessage	= hmailGetVar("RejectMessage","");
   $Score	      = hmailGetVar("Score",0);
   
   $dnsBlackLists = $obBaseApp->Settings->AntiSpam->DNSBlackLists;
   
   if ($action == "edit")
      $dnsBlackList     = $dnsBlackLists->ItemByDBID($id);
   elseif ($action == "add")
      $dnsBlackList     = $dnsBlackLists->Add();
   elseif ($action == "delete")
   {
      $dnsBlackLists->DeleteByDBID($id);
      header("Location: index.php?page=dnsblacklists");
   }

   // Save the changes
   $dnsBlackList->Active = $Active;
   $dnsBlackList->DNSHost = $DNSHost;
   $dnsBlackList->ExpectedResult = $ExpectedResult;
   $dnsBlackList->RejectMessage = $RejectMessage;
   $dnsBlackList->Score = $Score;   

   $dnsBlackList->Save();
   
   $id = $dnsBlackList->ID;
   
   header("Location: index.php?page=dnsblacklists");
?>