Location: PHPKode > projects > Replex > replex-0.9.0/admin/domain7.php
<?php
/*************************************************************
$Id: domain7.php,v 1.2 2001/05/19 02:43:13 jimir Exp $ 
 
 ***************************************************************/

include("include/config.php");
include("lib/user.php");
include("lib/search.php");
include("lib/account.php");
include("lib/alias.php");
include("db/class_mysql.php");

# Authenticate current user
$USER = new User;
if (!$USER->HTTPauthenticate($DBCONN)) {
  $USER->http_refuse();
}

$ALIAS = new Alias;

if(!empty($domain)) {
  //we have a domain
  $ALIAS->retrieveAliasPerDomain($DBCONN,$domain);
  $show=1;
}
else {
//error page

}


if(!empty($error)) {
  if($error=="error1") {
    $errormsg="<h3></h3>";	
  }
  
}


$activetab=4;
$showtabs=6;
include("domains3_menu.php");
?>
<span class="headline">Aliases</span><br><br>
<%=$errormsg%>

<% if(!empty($show)): %>
<table border=0>
<tr>
  <td colspan="4">Found <b><%=$ALIAS->getAffectedRows()%></b> result(s)</td>
</tr>
<tr>
  <td class="td-hl">Alias</td>
  <td class="td-hl">Destination</td>
</tr>
 <% for($i=0;$i<count($ALIAS->alias);$i++): %>
 <tr>
   <td class="td-content" valign="top">
   <% if($ALIAS->getAlias($i)=="@".$domain):%>
      <a href="domain10.php?alias=<%=$ALIAS->getAlias($i)%>"><%="*".$ALIAS->getAlias($i)%></a><br>
    <% else: %>
     <a href="domain10.php?alias=<%=$ALIAS->getAlias($i)%>"><%=$ALIAS->getAlias($i)%></a><br>
    <% endif %>
</td>
   <td class="td-content" valign="top"><%=$ALIAS->getDest($i)%></td>
 </tr>
 <% endfor %>
</table>
<% endif %>
<% menu_html_trail() %>	
Return current item: Replex