<?php
require("session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<link rel=stylesheet type="text/css" href="global.css">
</head>
<body>
<?php
if (isset($_GET['domain']))
{
$domain = $_GET['domain'];
}
else
{
$domain = "";
}
require("config.php");
$tabelle = "mail_users";
/* Connection to the Database */
MYSQL_CONNECT($server, $user, $passw) or die ( "<H3>unable to connect to database server</H3>");
MYSQL_SELECT_DB($datenbank) or die ( "<H3>database does not exist</H3>");
$result=MYSQL_QUERY("select alias from $tabelle where domain_name = '$domain' and mbox_name='@'");
$row = mysql_fetch_row($result);
echo"
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" align=\"center\">
<tr>
<th colspan=\"2\">catch-all-account overview</th>
</tr>
";
if($row[0] != "")
{
echo"
<tr>
<td>$row[0]</td><td class=\"tab\" align=right><a href=\"catchall_delete.php?domain=$domain\" target=\"main\"><img src=\"images/delete.gif\" border=\"0\"></a></td>
</tr>
";
}else
{
echo"
<tr>
<td>No catch-all-account available</td><td class=\"tab\"> </td>
</tr>
";
}
echo"
<tr align=center>
<td colspan=\"2\"><a href=\"catchall_create.php?domain=$domain\" target=\"main\"><img src=\"images/create_catch_all.gif\" border=\"0\"></a></td>
</tr></table>";
?>
</body>
</html>