<?php
/*************************************************************
$Id: account3.php,v 1.8 2001/05/19 02:43:13 jimir Exp $
***************************************************************/
include("include/config.php");
include("lib/user.php");
include("lib/domain.php");
include("lib/account.php");
include("db/class_mysql.php");
include("lib/libfunction.php");
# Authenticate current user
$USER = new User;
if (!$USER->HTTPauthenticate($DBCONN)) {
$USER->http_refuse();
}
if(!empty($account)) {
$ACCOUNT = new Account;
if($ACCOUNT->retrieveAccount($DBCONN,$account)) {
$show=1;
}
else {
$show=0;
$error="error2";
}
}
else {
//redirect
HTTPRedirect("account1.php");
exit;
}
$activetab=0;
$showtabs=2;
include("accounts3_menu.php");
?>
<span class="headline">Account details</span><br><br>
<%=$errormsg%>
<table border=0>
<tr>
<td>Account:</td>
<td><%=$ACCOUNT->getUserName()%></td>
</tr>
<tr>
<td>Password:</td>
<td><%=$ACCOUNT->getPassword()%></td>
</tr>
<tr>
<td>Alias:</td>
<td><% if(trim($ACCOUNT->strRemoveDomain($ACCOUNT->getAlias(0)))=="") echo "*"; else echo $ACCOUNT->strRemoveDomain($ACCOUNT->getAlias(0));%>@<%=$ACCOUNT->getDomainName()%></td>
</tr>
<% for($a=1;$a<count($ACCOUNT->alias);$a++):%>
<tr>
<td></td>
<td><%if(trim($ACCOUNT->strRemoveDomain($ACCOUNT->getAlias($a)))=="") echo "*"; else echo $ACCOUNT->strRemoveDomain($ACCOUNT->getAlias($a));%>@<%=$ACCOUNT->getDomainName()%></td>
</tr>
<% endfor %>
<tr>
<td></td>
<td> </td>
</tr>
</table>
<% menu_html_trail() %>