session_start(); // get form data $username = $_REQUEST['username']; $username = trim($username); $password = $_REQUEST['password']; $password = trim($password); $url = $_REQUEST['url']; $url = trim($url); $patterns = array('/\s+/', '/\//', '/\^/', '/\$/', '/\|/', '/\:/', '/\(/', '/\)/', '/\[/', '/\]/', '/\*/', '/\+/', '/\?/', '/\{/', '/\}/', '/\,/','/http/'); $replacements = array('','','','','','', '','','','','','', '','','','',''); $url = preg_replace($patterns, $replacements, $url); $fname = $_REQUEST['fname']; $lname = $_REQUEST['lname']; $email = $_REQUEST['email']; $email = trim($email); $error_msg = ''; /** check for captcha **/ if($_REQUEST['submit'] && !empty($_SESSION['security_code']) && $_SESSION['security_code'] != $_POST['security_code']){ $error_msg = "Sorry, your security code is incorrect. Please retype your security code again"; } if ($_REQUEST['submit'] && ($password=='' || $username=='' || $url=='')){ $error_msg = "Oops, Somthing wrong! Please check it!"; } if ($_REQUEST['submit'] && $error_msg == ''){ function full_copy( $source, $target ){ if ( is_dir( $source ) ){ @mkdir( $target ); $d = dir( $source ); while ( FALSE !== ( $entry = $d->read() ) ) { if ( $entry == '.' || $entry == '..' ) { continue; } $Entry = $source . '/' . $entry; if ( is_dir( $Entry ) ) { full_copy( $Entry, $target . '/' . $entry ); continue; } copy( $Entry, $target . '/' . $entry ); } $d->close(); }else{ copy( $source, $target ); } } include_once('lib/db_setup.php'); $con = mysql_connect($mysqlServer, $mysqlUserName, $mysqlPassword); mysql_select_db ($mysqlDatabase); $sql = "select id from user where username='$username' or url='$url'"; $result = mysql_query($sql); $count = mysql_num_rows($result); $error_username = ''; $error_url = ''; $checked=''; if($_REQUEST['agree']){ $checked='checked'; } if ($count == 0){ // do insert user $sql_59 = "select * from user where id=59"; $result_59 = mysql_query($sql_59); $record_59 = mysql_fetch_array($result_59); $remote_ip = $_ENV["REMOTE_ADDR"]; $sql = "insert into user (username,password,fname,lname,url,email,active,web_company,web_title,web_contact,web_picture_flash,web_background,web_picture,web_language,template,remote_ip,signupdate ) values ('$username','$password','$fname','$lname','$url','$email','1','$record_59[web_company]','$record_59[web_title]','$record_59[web_contact]','$record_59[web_picture_flash]','$record_59[web_background]','$record_59[web_picture]','$record_59[web_language]','$record_59[template]','$remote_ip',now())"; mysql_query($sql) or die("Could not insert: " . mysql_error()); $sid = mysql_insert_id(); //create newsletter $sql_news = "insert into newsletter set user_id=$sid"; mysql_query($sql_news) or die("Could not insert: " . mysql_error()); //create postcard $sql_card = "insert into postcard set user_id=$sid"; mysql_query($sql_card) or die("Could not insert: " . mysql_error()); //create initial 6 web pages $sql_p3 = "select * from page where user_id=59"; $result_p3 = mysql_query($sql_p3); while($record_p3 = mysql_fetch_array($result_p3)){ $sql_p2 = "insert into page set user_id=$sid, page_order='$record_p3[page_order]', page_name='$record_p3[page_name]', page_title='$record_p3[page_title]', page_active='$record_p3[page_active]', page_content='$record_p3[page_content]', page_form_active='$record_p3[page_form_active]', page_form_info='$record_p3[page_form_info]', page_gallery_active='$record_p3[page_gallery_active]'"; mysql_query($sql_p2) or die("Could not insert: " . mysql_error()); } //create initial gallery $sql_g3 = "select * from gallery where user_id=59"; $result_g3 = mysql_query($sql_g3); while($record_g3 = mysql_fetch_array($result_g3)){ $sql_g2 = "insert into gallery set user_id=$sid, image_name ='$record_g3[image_name]', image_title ='$record_g3[image_title]', image_desc ='$record_g3[image_desc]', image_order ='$record_g3[image_order]', image_type ='$record_g3[image_type]'"; mysql_query($sql_g2) or die("Could not insert: " . mysql_error()); } $sql_g4 = "select id from gallery where user_id=$sid order by id"; $result_g4 = mysql_query($sql_g4); $gallery_order = ""; $nn = 1; while($record_g4 = mysql_fetch_array($result_g4)){ if($nn == 1){ $gallery_order = $record_g4['id']; }else{ $gallery_order = $record_g4['id'] . ',' . $gallery_order; } $nn ++; } $sql_g5 = "update user set web_gallery_order='$gallery_order' where id=$sid"; mysql_query($sql_g5); mysql_close(); // create user folder $rootdir = $_SERVER['DOCUMENT_ROOT']; $userdir = $rootdir . '/userfiles/' . $sid; mkdir($userdir, 0775); // link image library mkdir($userdir . '/image', 0775); chdir($userdir . '/image'); $source = '../../ImageLibrary'; $dest = 'ImageLibrary'; symlink($source, $dest); // copy gallery folder chdir($userdir); $source="../59/gallery"; $target="gallery"; full_copy($source,$target); $email_to = $email; $email_from = 'customerservice@webdco.com'; $subject = "Your Webdco.com Signup Member Account"; $header = "From: $email_from BCC: david_jia@hotmail.com, member@webdco.com"; $body = " Hello $fname $lname, Thank you for choosing Webdco.com www.webdco.com/$url is now live on the world wide web Your registration has been confirmed.You can now starting using our services. For your records, we have provided you with some useful information below. Please print this email and store your information in a secure environment. You will be asked for the user name and password each time you wish to edit your website. http://www.webdco.com/Login.php User name : $username Password: $password After logging in, you can change your password and user data on Manage Your Website. Thank You for using Webdco. Customer Service Webdco.com customerservice@webdco.com "; mail($email_to, $subject, $body, $header); session_start(); $valid_user = $sid; //session_register("valid_user"); $_SESSION['valid_user'] = $valid_user; if($_REQUEST['pay_period']){ header("Location: Signup_contact.php?pay_period=$_REQUEST[pay_period]"); }else{ //free signup header("Location: Signup_contact.php?free=1"); } exit; }else{ $sql2 = "select id from user where username='$username'"; $result2 = mysql_query($sql2); $count2 = mysql_num_rows($result2); if($count2 > 0){ $error_username = 'Oops! The Username already exists, please choose another!'; }else{ $error_url = 'Oops! The URL already exists, please choose another!'; } } } ?> include_once('inc/header_new.php'); ?> Create Your Own Website in Minutes include_once('inc/topbar.php'); ?> Create your account Only (Aa to Zz) (.) (_) and (0 to 9) are allowed. Username:* Must be at least 6 characters long. Password:* Retype Password:* Please Enter your desired Webdco.com URL:* Please do not use the prefix "http://www" or "www" www.webdco.com/ Contact Information First Name:* Last Name:* Email:* Security Code:* Select Your Package > BEGINNER Membership > BUSINESS Membership 3500+ Templates 3500+ Templates 1200+ Postcards 1200+ Postcards 1200+ Newsletters 1200+ Newsletters 6500+ Image Library 6500+ Image Library Site Builder Site Builder 6 Pages 6 Pages + Unlimited Subpages Photo Gallery (up to 80) Photo Gallery (unlimited) - Main Image Slide Show Video Gallery (up to 5) Video Gallery (unlimited) - Event Calendar Address Map Address Map Language Translator Language Translator Currency Converter Currency Converter YouTube Integration YouTube Integration Music Library Music Library Shopping Cart Shopping Cart 5 Email Address 60 Email Address 200 MB Disk Space 600 MB Disk Space Domain Name First Year Include with your Package Domain Lifetime Customer Free - - - Create specific main image for your website at your request Limited Bandwidth Unlimited Bandwidth Search Engine Friendly Search Engine Friendly No Setup Fee No Setup Fee Customer Service Customer Service Price: $ 19.99 / Month Paid Yearly $ 149 Price: $ 29.99 / Month Paid Yearly $ 289 I have read and understood Webdco's TERMS & POLICY. See Our Testimonials Tell a Friend See Our Demo Take a Tour include_once('inc/footer3.php'); ?>
Create Your Own Website in Minutes
Create your account
Retype Password:*
First Name:*
Last Name:*
Email:*
Security Code:*
>
3500+ Templates
1200+ Postcards
1200+ Newsletters
6500+ Image Library
Site Builder
6 Pages
6 Pages + Unlimited Subpages
Photo Gallery (up to 80)
Photo Gallery (unlimited)
-
Main Image Slide Show
Video Gallery (up to 5)
Video Gallery (unlimited)
Event Calendar
Address Map
Language Translator
Currency Converter
YouTube Integration
Music Library
Shopping Cart
5 Email Address
60 Email Address
200 MB Disk Space
600 MB Disk Space
Domain Name First Year Include with your Package
Domain Lifetime Customer Free
Create specific main image for your website at your request
Limited Bandwidth
Unlimited Bandwidth
Search Engine Friendly
No Setup Fee
Customer Service
Price: $ 19.99 / Month Paid Yearly $ 149
Price: $ 29.99 / Month Paid Yearly $ 289
I have read and understood Webdco's TERMS & POLICY.
See Our Testimonials Tell a Friend See Our Demo Take a Tour