echo "Hosting Data Stored<br>Sending Email (Following is the email)\n\n";
$letter="Your new site, on our servers, is now fully operational and awaits publication of your code!\n\nWhen uploading files please make sure to upload them to the public_html directory or they will not display.\n\n------------------------------------------------------\nYOUR NEW HOSTING ACCOUNT INFORMATION\n------------------------------------------------------\n\n";
$letter=$letter."Domain: ".$host.".fh-net.com\n\n";
$letter=$letter."Temporary Web Path: http://72.36.180.50/~".$huser."/ (until your domain name resolves, use this link to access your site)\n\nUsername: ".$huser." (cPanel only allows 8 characters)\n\nPassword: ".$hpass." (please note password is CaSe SeNsItIvE)\n\nYou can access your cpanel from [url]http://www.fh-net.com/cpanel[/url] or when your domain resolves, ".$host."/cpanel. Use the above username and password to login.\n\nSMTP/POP3 mail server: mail.$huser.fh-net.com\n* email will not work until your domain resolved to our servers.\n\n\n------------------------------------------------------\n IMPORTANT INFORMATION\n------------------------------------------------------\n\nIf you are using your own domain name, please update the DNS at your registrar to use the following servers:\n\nNs1.fh-net.com\nNs2.fh-net.com\n\nThank you for using FH-Net.com, if you have any questions please feel free to contact us anytime.\n\nRegards,\nFH-Net.com.";
mail($row["enemail"],"Hosting Approved",$letter);
if($row['enemail']!=$row['dbemail']){
mail($row['dbemail'],"Hosting Approved",$letter);
}
str_replace('\n','<br>',$letter);
echo $letter;
echo "<br><br>Email Sent";
//Just inform the admin to modify posts manually
echo "<br><br>Admin, please modify the Users Post by Removing the necessary points for Plan ".$plan."<br>You can modify points <a href=http://www.fh-net.com/forum/cash.php?mode=modedit&ref=viewprofile&u=".$id.">Here</a>";
echo "<br><br>With that<br><h1>ACCOUNT CONFIRMED</h1>";