<? 

//
//  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
//
//
//  User variables begin at line 49.
if(!empty($_GET)) extract($_GET);
if(!empty($_POST)) extract($_POST);
include("dbconfig.php");
include("initial_conf.php");


//  Set to 1 to verify the scripts operation.
$debugon='1';
$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)) {
		$autocreate=$items[auto_create];
		$add_sub=$items[sub_domain];
		$add_ftp=$items[ftp_user];
		$add_sql=$items[database_user];
		$str_en=$items[stor_lmt_enab];
		$str_lim=$items[stor_lmt];
		$ftp_lim=$items[ftp_lmt];
		$sub_name1=$items[sub_name1];
		$sub_name2=$items[sub_name2];
		$sub_name3=$items[sub_name3];
		$sub_name4=$items[sub_name4];
}

$script_dir=explode("public_html",$srcroot1);
$script_directory=$script_dir[1];
$client_acc="client/client_acc.php";
$suspend="suspended.php";
//FTP variable
$srcrela = "";

// Base Script Version Number for initial upgrade to 2.041
$ver=2.030;

// User Variables
// HTML information
$title="Page Title";
$meta_tags="<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n<meta name=\"keywords\" content=\"Your Keywords\">\n<meta name=\"description\" content=\"Your Description\">\n<META NAME=\"robots\" CONTENT=\"index, follow\">\n<!-- (Robot commands: Index, Follow) -->\n<META NAME=\"revisit-after\" CONTENT=\"30 days\">\n<META NAME=\"distribution\" CONTENT=\"global\">\n<META NAME=\"rating\" CONTENT=\"general\">\n<META NAME=\"Content-Language\" CONTENT=\"english\">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";


// If not using localhost ensure that port is open for outbound traffic

// cPanel server

$host='localhost';
$port='2082';
$port_mail='2095';
$cpmod='x2'; //cPanel Theme



//Install PHPBB2 Forum / SiteFrame Automatically
$inst_forum="0";
$inst_siteframe="0";
$inst_guestbook="0";


//Control Panel Options
// Allow User to install SiteFrame via control panel
$user_inst_sf="0";
$user_inst_forum="0";
$user_inst_guestbook="0";
//Use Script Installed version of SquirrelMail
// 0=cPanel Webmail
$mail_script="0";

//enable webftp
$webftp=0;

//enable net2ftp
$net2ftp=0;

// enable phpmyadmin
$phpmyadmin=0;

//enable mpanel
$mpanel=0;

//enable add mail forward
$emforward=0;


//  Set to 1 to add script installed by cPanel Scripts Library
$add_script=0;
$add_on="phpBB";
//$add_on="InvisionBoard";
//$add_on="EasySite";
$scriptdir1=$email; //Do not change
$scriptdir2="_forum";//Change to your preference

//Mail signup information to user if autoactivate=1
$info_email=0;


//Activate/Deactivate Mods
$pphlogger=0;
$pphlogger_dir="pphlogger";
$pphlogger_url="$domain$script_directory$pphlogger_dir";

//Lost Password Recovery
$lost_pass=1;





?>