Location: PHPKode > projects > PHPmyEXIM > forward_overview.php
<?php
require("session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>Main</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>");
$result1=MYSQL_QUERY("select domain_name from $tabelle where domain_name = '$domain' and alias NOT like '%@$domain' and mbox_name NOT like '@' and is_alias = 'yes'");
$result=MYSQL_QUERY("select mbox_name, domain_name, alias from $tabelle where domain_name = '$domain' and alias NOT like '%@$domain' and mbox_name NOT like '@' and is_alias = 'yes'");
$row1 = mysql_fetch_row($result1);

echo"
<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" align=\"center\">
<tr>
	<th colspan=\"2\">forward-accounts overview</th>
</tr>
";

if($row1[0] != "")
{
	while ($row = mysql_fetch_row($result))
	{
	echo"
	<tr>
		<td class=\"tab\"><i>$row[0]@$row[1]</i> --> <i>$row[2]</i></td><td class=\"tab\"><a href=\"forward_delete.php?domain=$domain&user=$row[0]&alias=$row[2]\" target=\"main\"><img src=\"images/delete.gif\" border=\"0\"></a></td>
	</tr>
	";
	}
}else
{	
echo"
<tr>
	<td class=\"tab\">No forward-accounts available</td><td class=\"tab\">&nbsp;</td>
</tr>
";
}
echo"
<tr align=center>
<td colspan=\"2\"><a href=\"forward_create.php?domain=$domain\" target=\"main\"><img src=\"images/create_forward.gif\" border=\"0\"></a></td>
</tr></table>";

?>
</body>
</html>
Return current item: PHPmyEXIM