Location: PHPKode > projects > Replex > replex-0.9.0/admin/domain3.php
<?php
/*************************************************************
$Id: domain3.php,v 1.5 2001/05/07 16:43:17 jimir Exp $
 
 ***************************************************************/

include("include/config.php"); 
include("lib/user.php");
include("lib/domain.php");
include("db/class_mysql.php");

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

if(!empty($domain)) {
  $DOMAIN = new Domain;
  if($DOMAIN->retrieveDomain($DBCONN,$domain)) {
    $show=1;	
  }
  else {
    $show=0;
    $error="error2";	
  }
  	
}
else {
  $DOMAIN = new Domain;
  $DOMAIN->name="";	
}


$activetab=0;
$showtabs=6;
include("domains3_menu.php");
?>
<% if($show) { %>
<span class="headline">Domain details</span><br><br>
<%=$errormsg%>
<table border=0>
<tr>
<td>Domainname:</td>
<td><%=$DOMAIN->getName(0)%></td>
</tr>

 <tr>
  <td>Prefix:</td>
  <td><%=$DOMAIN->getPrefix(0)%></td>
 </tr>
 <tr>
  <td>Max accounts:</td>
  <td><%=$DOMAIN->getMaxAccounts(0)%></td>
 </tr>
  <td></td>
  <td>&nbsp;</td>
 </tr>
</table>
<% } %>
<% menu_html_trail() %>	
Return current item: Replex