"; elseif(strlen($reguser) > 20) $error = "Maximum username length is 20 characters.
"; elseif(strlen($regemail) == 0) $error = "Please enter your email address.
"; elseif(valid_email($regemail) == FALSE) $error = "Your email address does not appear to be valid.
"; elseif($regemail != $regcemail) $error = "Your confirmation email address does not match.
"; else { // check username $check_user = mysql_query("SELECT COUNT(id) AS total FROM users WHERE username = '".preparedata($reguser)."' LIMIT 1"); $total = mysql_result($check_user, 0, total); if($total > 0) $error = "An account already exists with that username, please try another.
"; else { // check password $check_pass = mysql_query("SELECT COUNT(id) AS total FROM users WHERE emailadd = '".preparedata($regemail)."' LIMIT 1"); $total = mysql_result($check_pass, 0, total); if($total > 0) $error = "An account already exists with that email address, please try another or login to your existing account.
"; } } if(strlen($error) == 0) { $password = MakeRandomString(7); $cookiekey = MakeRandomString(254); $domain = GetHostByName($REMOTE_ADDR); $insert_user = mysql_query("INSERT INTO users (username, password, emailadd, signupip, signupdate, status, cookiekey) VALUES ('".preparedata($reguser)."', MD5('".preparedata($password)."'), '".preparedata($regemail)."', '".preparedata($domain)."', NOW(), 'freeacc', '".preparedata($cookiekey)."')"); if($insert_user) { // add default folder $userid = mysql_insert_id(); $insert_folder = mysql_query("INSERT INTO folders (userid, foldername) VALUES (".$userid.", 'default')"); $to = $regemail; $subject = "Your access details for ".$site_name; $content = "Hi\n\n"; $content .= "Thanks for signing up for an account on ".$site_name.". You can now manage your uploads using the login information below:\n\n"; $content .= "Url: http://".$site_url."\n"; $content .= "Username: ".$reguser."\n"; $content .= "Password: ".$password."\n\n"; $content .= "Remember to upgrade your account once you login to give you full premium access to our services.\n\n"; $content .= "Thanks again,\n"; $content .= $site_name."\n"; $content .= $site_url; $done = send_email($to, $subject, $content); $success = "Congratulations, your account is now setup. Please check your email address for your login details to access our unique members area."; } } } include("header.php"); ?>
Register for a Premium Account:

You can register for a premium account by using this form and submitting payment on the following page. Important: If you are extending an account, please login and choose the relevant option from your members area.



0) echo show_error($error)."

"; elseif(strlen($success) > 0) { echo show_success($success)."

"; echo "
"; include("footer.php"); exit; die(); } ?>
Preferred Username:
  
Email Address:
Confirm Email Address:



Account Features:

Feature:Premium:Free:
Download Limit
Upload Limit
Download Delay (seconds)
On Screen Advertisingnoyes
When are Files Deleted


Premium Account Cost:

'; } ?>
Period:Cost:Payment Types:
'.$value[humanperiod].'$'.$value[cost].'PayPal