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_blocked_attachment_save.php
<?php



   if (!defined('IN_WEBADMIN'))
      exit();

   if (hmailGetAdminLevel() != ADMIN_SERVER)
   	hmailHackingAttemp(); // Only server can change these settings.      
      
   $id	            = hmailGetVar("id",0);
   $wildcard	      = hmailGetVar("wildcard","");
   $description	   = hmailGetVar("description","");
   
   $action	   = hmailGetVar("action","");
  
   $obSettings	= $obBaseApp->Settings();
   $obAntivirus	= $obSettings->AntiVirus();
   $blockedAttachments = $obAntivirus->BlockedAttachments;
   
   
   if ($action == "add")
   {
      $blockedAttachment = $blockedAttachments->Add();
      
      $blockedAttachment->Wildcard = $wildcard;
      $blockedAttachment->Description = $description;
      $blockedAttachment->Save();
   }
   else if ($action == "delete")
   {
      $blockedAttachments->DeleteByDBID($id);
   }
   else if ($action == "edit")
   {
   
      $blockedAttachment = $blockedAttachments->ItemByDBID($id);
      
      
      $blockedAttachment->Wildcard = $wildcard;
      $blockedAttachment->Description = $description;
      $blockedAttachment->Save();      
   }
   
   header("Location: index.php?page=smtp_antivirus");
   
   
?>