<?
//
//  cP Account Creator Version 0.4 Beta Build 01
//  Copyright (C) 2004 Brian Freeman
//  All Rights Reserved.
//
//  This script set is distributed as is with absolutely no warranty.
//  Users of this script set agree to use at their own risk.
//  Questions or comments?  Contact webmaster@freemans-web.com
//
//



include("../config.php");
include("header.php");
?>
<table width=700>
<tr>
<td>
<table width=280>
<tr>
<td>
&nbsp
</td>
</tr>
</table>
</td>
<td>
<table width=400 border=8>

<?

//$conn  = mysql_connect($dbhost, $dbusername, $dbpass) or die(mysql_error( ));
//mysql_select_db($dbname,$conn) or die(mysql_error( ));

$get_items="SELECT * FROM config WHERE id=1";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
	while ($items = mysql_fetch_array ($get_items_res)) {
		$tbl_id=$items[id];
		$c_auto=$items[auto_create];
		$c_sub=$items[sub_domain];
		$c_ftp=$items[ftp_user];
		$c_db=$items[database_user];
		$c_str_lmt=$items[stor_lmt_enab];
		$c_str=$items[stor_lmt];
                $c_ftp_lmt=$items[ftp_lmt];
                $c_sub_name1=$items[sub_name1];
                $c_sub_name2=$items[sub_name2];
                $c_sub_name3=$items[sub_name3];
                $c_sub_name4=$items[sub_name4];
}
?>

<form method="POST" action="functions.php">

<tr>

<td>
<font size="4">
AutoActivate:

</td>

<td><input type="text" name="u_auto" value=<? echo $c_auto;?>>

</td>
<td></td>
</tr>

<tr>

<td>
<font size="4">
Enable Subdomain Creation:

</td>

<td><input type="text" name="u_sub" value=<? echo $c_sub;?>>

</td>
 <td></td>
</tr>


<tr>

<td>
<font size="4">
Subdomain1:

</td>

<td><input type="text" name="u_sub_name1" value=<? echo $c_sub_name1;?>>

</td>

</tr>
<tr>

<td>
<font size="4">
Subdomain2:

</td>

<td><input type="text" name="u_sub_name2" value=<? echo $c_sub_name2;?>>

</td>

</tr>

<tr>

<td>
<font size="4">
Subdomain3:

</td>

<td><input type="text" name="u_sub_name3" value=<? echo $c_sub_name3;?>>

</td>

</tr>
<tr>

<td>
<font size="4">
Subdomain4:

</td>

<td><input type="text" name="u_sub_name4" value=<? echo $c_sub_name4;?>>

</td>

</tr>

<tr>

<td>
<font size="4">
Enable FTP Creation:

</td>

<td><input type="text" name="u_ftp" value=<? echo $c_ftp;?>>

</td>
 
</tr>
<tr>

<td>
<font size="4">
FTP Storage Limit:

</td>

<td><input type="text" name="u_ftp_lmt" value=<? echo $c_ftp_lmt;?>>

</td>

</tr>
<tr>

<td>
<font size="4">
Enable Database Creation:

</td>

<td><input type="text" name="u_db" value=<? echo $c_db;?>>

</td>
 
</tr>

<tr>

<td>
<font size="4">
Enable Email Storage Limits:

</td>

<td><input type="text" name="u_str_lmt" value=<? echo $c_str_lmt;?>>

</td>
 
</tr>




<tr>

<td>
<font size="4">
Email Storage Limits:

</td>

<td><input type="text" name="u_str" value=<? echo $c_str;?>>

</td>

</tr>


<tr>




<input type="hidden" name="updt_config" value="1">

<input type="hidden" name="u_id" value=<? echo $tbl_id;?>>

<tr>
<td></td>
<td><input type="submit" value="Update"></td>

</tr>
</form>



<?							
echo $display_block;

echo "</table></td><td>
<table width=250>
<tr>
<td>
&nbsp
</td>
</tr>
</table>






</td></tr></table>";


include("footer.php");




?>