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:/hMailServer/PHPWebAdmin/hm_route_addresses.php
<?php
if (!defined('IN_WEBADMIN'))
   exit();

if (hmailGetAdminLevel() != 2)
	hmailHackingAttemp(); // Users are not allowed to show this page.

?>
<h1><?php EchoTranslation("Addresses")?></h1>
<table border="0" width="100%" cellpadding="5">
<?php

$routeid	= hmailGetVar("routeid",0);

$bgcolor = "#EEEEEE";

$obRoutes	= $obSettings->Routes();
$obRoute    = $obRoutes->ItemByDBID($routeid);
$obAddresses = $obRoute->Addresses();

$Count = $obAddresses->Count();

$str_delete = $obLanguage->String("Remove");

for ($i = 0; $i < $Count; $i++)
{
	$obAddress           = $obAddresses->Item($i);
	$routeaddress        = PreprocessOutput($obAddress->Address);
	$routeaddressid      = $obAddress->ID;
	
	echo "<tr bgcolor=\"$bgcolor\">";
	echo "<td width=\"80%\"><a href=\"?page=route_address&action=edit&routeid=$routeid&routeaddressid=$routeaddressid\">$routeaddress</a></td>";
	echo "<td width=\"20%\"><a href=\"?page=background_route_address_save&csrftoken=$csrftoken&action=delete&routeid=$routeid&routeaddressid=$routeaddressid\">$str_delete</a></td>";
	echo "</tr>";
	
	if ($bgcolor == "#EEEEEE")
	   $bgcolor = "#DDDDDD";
	else
	   $bgcolor = "#EEEEEE";
}

?>

<tr>
   <td>
      <br>
      <a href="?page=route_address&action=add&routeid=<?php echo $routeid?>"><i><?php EchoTranslation("Add")?></i></a>
   </td>
</tr>

</table>