Location: PHPKode > projects > Replex > replex-0.9.0/admin/domain2.php
<?php
/*************************************************************
$Id: domain2.php,v 1.5 2001/05/09 17:12:40 jimir Exp $
 
 ***************************************************************/

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

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


if(!empty($error)) {
  if($error=="error1") {
    $errormsg="<h3>Required fields are missing</h3>";	
  }
  if($error=="error2") {
    $errormsg="<h3>Domainname already exists</h3>";	
  }
  if($error=="error3") {
    $errormsg="<h3>Prefix already exists - use another!</h3>";	
  }
  if($error=="error5") {
    $errormsg="<h3>DB-ERROR</h3>";	
  }
  
}


$activetab=0;
$showtabs=1;
include("domains2_menu.php");
?>
<span class="headline">Create new domain</span><br><br>
<%=$errormsg%>
<form action="domain_update.php" type="post">
<table border=0>
 <tr>
  <td>Domainname:*</td>
  <td><input type="text" name="domainname" value="<%=$domainname%>" size="30" maxlength="100">&nbsp;&nbsp;e.g.: replex.org</td>
 </tr>
 <tr>
  <td>Prefix:*</td>
  <td><input type="text" name="prefix" value="<%=$prefix%>" size="20" maxlength="20">&nbsp;&nbsp;e.g.: replex</td>
 </tr>
 <tr>
  <td>Max Accounts:*</td>
  <td><select name="maxaccounts">
  <% for($a=0;$a<count($ACCOUNT_MAXACCOUNT);$a++):%>
      <option value="<%=$ACCOUNT_MAXACCOUNT[$a]%>" <%if($maxaccounts==$ACCOUNT_MAXACCOUNT[$a]) echo "SELECTED"%>><%=$ACCOUNT_MAXACCOUNT[$a]%></option>
    
<% endfor %>
</select>
</td>
 </tr>
 
<tr>
  <td></td>
  <td>Required fields are marked with *</td>
 </tr>
<tr>
  <td></td>
  <td>&nbsp;</td>
 </tr>
<tr>
  <td></td>
  <td><input type="submit" name="createdomain" value="Create" CLASS="button" ONMOUSEOVER="this.className='buttonhover'" ONMOUSEOUT="this.className='button'"></td>
 </tr>
</table>
</form>
<?php
	
?>

<% menu_html_trail() %>	
Return current item: Replex