=6)&&(strlen($FamilyUserName)>=6)){ if(($_POST[country] == "USA" && $_REQUEST['State_Reside'] > " " && $_REQUEST['Zip'] > " ") || ($_POST[country] <> "USA")){ if(preg_match("/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i",$Email)){ $SQL1 = "select ID from users where Lower(Email) = '".strtolower($Email)."' "; $result1 = mysql_query($SQL1) or die(mysql_error()); $SQL2 = "select ID from users where Lower(Family_User_Name) = '".strtolower($FamilyUserName)."' "; $result2 = mysql_query($SQL2) or die(mysql_error()); if($myrow1=MySQL_fetch_array($result1)){ $dupEmail = "y"; }else if($myrow2=MySQL_fetch_array($result2)){ $dupUserName = "y"; } else { $dob = $_REQUEST['Birth_Date'] ; //calculate age list($BirthMonth,$BirthDay,$BirthYear) = explode("/", $dob); $YearDiff = date("Y") - $BirthYear; $MonthDiff = date("m") - $BirthMonth; $DayDiff = date("d") - $BirthDay; if ($MonthDiff < "0"){ $YearDiff --; } else if ($BirthMonth == date("m") && $DayDiff < "0"){ $YearDiff --; } $age = $YearDiff ; $agelimit=$age; $Birthdate =$BirthYear."-".$BirthMonth."-".$BirthDay ; if(checkdate($BirthMonth,$BirthDay,$BirthYear)){ if($agelimit >= 18 && $agelimit <= 90){ //echo"hi "; echo "
"; print_r($_REQUEST);exit;
			$todayDate = date("Y-m-d G:i:s") ;
			$display = $_POST['directory'];
			if ($display <> "Y"){ $display = "N"; }
			$trialDate = date('Y-m-d') ;
			$SQL = "INSERT INTO  users (Country,meet_people, City, First_Name, Last_Name,Email,Family_User_Name, Password, Birth_Date, State_Reside, Zip, Gender, Marital_Status, Number_Of_Children, Comments, Anniversary, Photo, Bio, IP_Address, Last_Logon, date_joined,Trial_Date ) 
			VALUES ('$_POST[country]', '$display' ,'" . $_REQUEST['City'] . "' ,  '" . $_REQUEST['First_Name'] . "' ,  '" . $_REQUEST['Last_Name'] . "' ,  '" . $_REQUEST['Email'] . "' ,  '" . $_REQUEST['Family_User_Name'] . "' ,  '" . $_REQUEST['Password'] . "' ,  '" . $Birthdate . "' ,  '" . $_REQUEST['State_Reside'] . "' ,  '" . $_REQUEST['Zip'] . "' ,  '" . $_REQUEST['Gender'] . "' ,  '" . $_REQUEST['Marital_Status'] . "' ,  '" . $_REQUEST['Number_Of_Children'] . "' ,  '" . $_REQUEST['Comments'] . "' ,  '" . $_REQUEST['Anniversary'] . "' ,  '" . $_REQUEST['Photo'] . "' ,  '" . $_REQUEST['Bio'] . "' ,  '" . $logged_string . "' ,  '" . $today . "', '$todayDate','$trialDate' )";
			
                        $result = mysql_query($SQL) or die(mysql_error());
			
			//get id just inserted
			$userID = mysql_insert_id();
			
			$Email = $_REQUEST['Email'];
			
			$_SESSION["sessionUserID"] = $userID;
			
			$_SESSION["sessionFname"] = $_REQUEST['First_Name'];
			
			$_SESSION["sessionLname"] = $_REQUEST['Last_Name'];
			
			$_SESSION["sessionGender"] = $_REQUEST['Gender'];
			
			$_SESSION["sessionEmail"] = $_REQUEST['Email'];
                        $_SESSION["sessionFamilyUserName"] = $_REQUEST['Family_User_Name'];
                        //$_SESSION["sessionEmail"] = $_REQUEST['Email'];
			  setcookie("cookieEmail", $_REQUEST["Email"], time()+3600*24*360 );
	  setcookie("cookiePassword", $_REQUEST["Password"], time()+3600*24*360 );	
			
			//***********************************
			//if this user was invited   
			//***********************************
			if( ($_SESSION["sessionRandom_Key"] > " ") && ($_SESSION["sessionInvid"] > " ")  ){
			
			 $SQL2 = "UPDATE  invitations SET Joined = 'Y', Accepted = 'Y', Friends_New_ID = '$userID' WHERE Random_Key = '" . $_SESSION["sessionRandom_Key"]. "' and ID = '" . $_SESSION["sessionInvid"] . "'  ";
			  $result2 = mysql_query($SQL2) or die(mysql_error());
				  
			  //get the invitors id
			  $sql3 = "select USER_ID from invitations WHERE Random_Key = '" . $_SESSION["sessionRandom_Key"]. "' and ID = '" . $_SESSION["sessionInvid"] . "'  ";
			  $result3 = mysql_query($sql3) or die(mysql_error());
			  if($row = mysql_fetch_assoc($result3)) {
				 $invitorID = $row["USER_ID"];
				 
				$sql = "INSERT INTO privacy (user_id, friend_id,show_profile_page,photo,cookbook, grocery, blog, contacts)" ;
				$sql = $sql . " VALUES ('$invitorID','$userID','Y','Y','Y','Y','Y','Y')" ;
				$result1 = mysql_query($sql) or die(mysql_error());
			
				$sql1 = "INSERT INTO privacy (friend_id, user_id,show_profile_page,photo,cookbook, grocery, blog, contacts)" ;
			  $sql1 = $sql1 . " VALUES ('$invitorID','$userID','Y','Y','Y','Y','Y','Y')" ;
				$result4 = mysql_query($sql1) or die(mysql_error());
				
				
				//put a message in the invitors inbox
				$firstName = $_SESSION["sessionFname"] ;
				$lastName = $_SESSION["sessionLname"] ;
				$dateSent=date("Y-m-d") ;
				$timeSent = date("H:i") ;
				$msgTitle = "YadaHome Network" ;
				$theText = "$firstName $lastName just accepted your invitation and joined your network!";
				$sql4 = "insert into messages (From_ID, To_ID, Date_Sent, Time_Sent, The_Text, Type ,msg_title) values ( '$userID', '$invitorID', '$dateSent', '$timeSent', '$theText', '','$msgTitle' )";
				$replyID =  mysql_insert_id() ;
			   
			   $sqlupdate = "Update messages Set Reply_ID='$replyID' where ID='$replyID'";
			   $result2 = mysql_query($sqlupdate) or die(mysql_error());
			   
			   

			   
			  }
			  
			  
			  
			  	 //************************************************** 
			   // now see if the invitor has any premium slots open 
			   //***************************************************
				$selfID = $userID;
				$SQLS = "select * from users_purchased_slots, users where (users.ID = '$invitorID') and (Prem_Ind = 'Y') and (users.ID = users_purchased_slots.USER_ID) and (NUMBER_LEFT > 0)";
				$resultS = mysql_query($SQLS) or die(mysql_error());
				if($myrowS=MySQL_fetch_array($resultS)){
				  $inv_slots_left = $myrowS["NUMBER_LEFT"];
				  $inv_slots_used = $myrowS["NUMBER_USED"];
				  $inv_date_purchased = $myrowS["DATE_PURCHASED"];
				  
				 $sql = "update users set Prem_Ind = 'Y', MASTER_ACCOUNT = '$invitorID'  where ID = '$selfID' ";
				 $result = mysql_query($sql) or die(mysql_error());
				 //now decrement the invitees slots
				 $sql = "update users_purchased_slots set NUMBER_LEFT = NUMBER_LEFT - 1, NUMBER_USED = NUMBER_USED + 1 where USER_ID = '$invitorID' ";
				 $result = mysql_query($sql) or die(mysql_error());
				  
				  
				}
			   
			   //end of prem slots
			   
			   
			   //IF THE USER WAS INVITED SEE OF THE PERSON WHO INVITED IS USING THE FULL APP, LITE APP, OR NEITHER
			   $sendEmailVersion = 'lite';
			   $sqlInv = "select * from users where ID = ' $invitorID' ";
			   $resultInv = mysql_query($sqlInv) or die(mysql_error());
			   if($myrowInv=MySQL_fetch_array($resultInv)){
				  if( ($myrowInv['iphone'] == 'Y') && ($myrowInv['IPHONE_FREE'] == "N")   ){
				     $sendEmailVersion = 'full';
				  }
			   }
			   //END OF IF THE USER WAS INVITED SEE OF THE PERSON WHO INVITED IS USING THE FULL APP, LITE APP, OR NEITHER
			   
			   
			//***********************************
			//* end of invite process
			//***********************************   	   
			}
			
			  
			//********************************************************************************
			//* NOW SEND AN EMAIL TO USER ASKING THEM TO VERIFY THEIR EMAIL ADDRESS
			//********************************************************************************  
			 
				 
			//change this to your email. 
			$password = $_REQUEST['Password'];
			$to = $_REQUEST['Email'];
			$from = "SignUp@yadahome.com";
			$toName = $_REQUEST['First_Name'];
			$fromName = $_REQUEST["yourName"];	
			include "emailTerms.php"; 
			$subject = "Welcome to www.yadahome.com!"; 
			
			//begin  HTML message 
			$message = "
						$subject




Your YadaHome Family Account Has Been Activated!

YadaHome's Collection of iPhone Apps, Web Apps
(BlackBerry, Android, Windows Mobile) And Its
Website Are Designed To Keep You Organized
On Any Device Wherever You Are.

You Can Also Share Your Calendars, Schedules,
To Do Lists, And Shopping Lists At Home Or
On-The-Go With Your Family In Real-Time.

Please Enjoy Your Membership!

Family Organizer:Shared Calendar And Lists For Families

Manage Your Calendars And Lists On-The-Go
  • Multi-View Calendar
  • Unlimited To Do Lists
  • Unlimited Grocery Lists
  • Real-Time Sync With Family (Premium)
  • Offline/Online Access (Premium)
  • Backup Data Online (Premium)


                          view in iTunes App Store

BlackBerry / Android / Windows Mobile Applications
www.yadahome.com/m

Manage Your Calendars And Lists On Any Smart Phone
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync
  • Online Access
  • Email Alerts



Internet / Online Web Access
www.yadahome.com

Manage Your Calendar And Lists From Any Computer
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Shared Recipes
  • Shared Photos
  • Shared Journals
  • Email Alerts

Networking and Sharing Instructions

How Do I Invite Family Members To My Network And Start Sharing?

       On Your App:

  • Select The "Invite Family Members" Tab On Your App Home Screen
  • Follow The Instructions On The Following Screen
 

For More Tips On Getting The Most Out Of www.yadahome.com, Please Visit The FAQ Section Of The Website at www.yadahome.com/faqs.php, By Visiting The YadaHome Manual On Your My Fridge® Page Or By Writing Us At admin@yadahome.com !

 




©2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SureType®, SurePress™ and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world.
$emailTerms
"; $messageFull="$subject




Your YadaHome Account Has Been Activated!

YadaHome's Collection of iPhone Apps, Mobile Apps (BlackBerry, Android, Windows Mobile) And Its Website Are Designed To Keep Your Family Organized On Any Device Wherever You Are.

Easily Share Your Family's Calendars, Schedules, To Do Lists, And Shopping Lists At Home Or On-The-Go.


5-in-1 iPhone App
Family Organizer: Shared Calendar+To Do+Grocery List+Google Cal+Family Chat
 [Requires Paid Premium Membership]

Manage Your Calendars And Lists On-The-Go
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync
  • Shared Family Chat
  • Google Calendar™ Import
  • Offline/Online Access
  • Email Alerts

                          view in iTunes App Store

BlackBerry / Android / Windows Mobile Applications
Coming October 2010

Manage Your Calendars And Lists On Any Smart Phone
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Real-Time Sync
  • Shared Family Chat
  • Google Calendar™ Import
  • Offline/Online Access
  • Email Alerts



Internet / Online Web Access
www.yadahome.com

Manage Your Calendar And Lists From Any Computer
  • Shared Calendars
  • Shared To Do Lists
  • Shared Grocery Lists
  • Shared Recipes
  • Auto Coupon Finder
  • Shared Family Chat
  • Google Calendar™ Import
  • Shared Photos
  • Shared Journals
  • Email Alerts

Networking and Sharing Instructions

How Do I Invite Family Members To My Network And Start Sharing?

       Online:

  • After logging in to www.yadahome.com, click the 'Add Friends and Family' button at the top right
  • Add Your Family's Email Addresses And Press 'Send'
  • An Email Will Be Sent Inviting Them To Create An Account And Join Your Network
  • Once They Have Joined Your Network, You Can Start Sharing With Them

       On Your App:

  • Select The "Add Family/Friends" Tab On Your App Home Screen
  • Add Your Family's Email Addresses And Press 'Send'
  • An Email Will Be Sent Inviting Them To Create An Account And Join Your Network
  • Once They Have Joined Your Network, You Can Start Sharing With Them
 

For More Tips On Getting The Most Out Of www.yadahome.com, Please Visit The FAQ Section Of The Website at www.yadahome.com/faqs.php, By Visiting The YadaHome Manual On Your My Fridge® Page Or By Writing Us At admin@yadahome.com !

 




*Paid premium membership required to use premium YadaHome app
©2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SureType®, SurePress™ and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world.
$emailTerms
"; if( $sendEmailVersion == "full"){ $message = $messageFull; } //end of message $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; //options to send to cc+bcc //$headers .= "Cc: [email]maa@p-i-s.cXom[/email]"; //$headers .= "Bcc: [email]email@maaking.cXom[/email]"; // now lets send the email. mail($to, $subject, $message, $headers); //* END OF THE EMAIL //***************send email to frinds // SEND EMAIL TO FRIENDS //find out how many friends were entered $numberOfFriends = 0; $count = count( $_REQUEST["FriendsEmail"] ); for ($i=0; $i<$count; $i++) { if($_REQUEST["FriendsEmail"][$i] > " "){ $numberOfFriends++; } } // //insert friends_email $count = 0; $count = count( $_REQUEST["FriendsEmail"] ); $numberfilled = 0; $friendsList = ""; for ($i=0; $i<$count; $i++) { //insert into table if($_REQUEST["FriendsEmail"][$i] > " "){ $sendEmailtoInviter = "Y"; $numberfilled++; $rand_key = md5(time()); $rand_key= rand(0,999999999); $invitDate = date(Y-m-d) ; $_POST[msg] = ereg_replace("'", "´",$_POST[msg]); $InsertStr = "INSERT INTO invitations (Message,Invite_Date, USER_ID, EMAIL, Invited, Type, Random_Key,Fname ) VALUES ('$_POST[msg]', '$invitDate','" . $_SESSION["sessionUserID"] . "' , '" . $_REQUEST["FriendsEmail"][$i] . "', 'Y', '" . $_REQUEST["Type"][$i] . "', '$rand_key', '" . $_REQUEST["FriendsName"][$i] . "')"; $result = mysql_query($InsertStr) or die(mysql_error()); $lastInvId=mysql_insert_id() ; //************************************************************************************************************************ //* see if user is already a yada member - if so then dont sent the registration email - just put a message in their box //************************************************************************************************************************ //see if user is on the dont send email list $lookupEmail = $_REQUEST["FriendsEmail"][$i]; include "doNotSend.php"; //end of email lookup - result will be $OkToSendEmail = Y or N $SelectStr2 = "SELECT * FROM users where Email = '" . $_REQUEST["FriendsEmail"][$i] . "'"; $result2 = mysql_query($SelectStr2) or die(mysql_error()); if($myrow2=MySQL_fetch_array($result2)){ $sqlM = "update invitations set is_Member = 'Y' where ID = '$lastInvId' "; $resultM = mysql_query($sqlM) or die(mysql_error()); $dateSent=date("Y-m-d") ; $timeSent = date("H:i") ; $friendID = $myrow2["ID"]; $invID = $lastInvId; $proNoun = "their"; if ( $_SESSION["sessionGender"] == "m" ){ $proNoun = "his"; } if ( $_SESSION["sessionGender"] == "f" ){ $proNoun = "her"; } $sqlInsert = "INSERT INTO messages (From_ID, To_ID, Date_Sent, Time_Sent, Mark_As_Read, The_Text)" ; $sqlInsert = $sqlInsert . " VALUES ('" . $_SESSION["sessionUserID"] . "','$friendID','$dateSent','$timeSent','N','011')" ; $result3 = mysql_query($sqlInsert) or die(mysql_error()); $replyID = mysql_insert_id() ; $msgTitle = "Invitation from ".$_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] ; $message = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"] . " has invited you to join $proNoun network.
Click here to accept or reject this invitation."; $sqlupdate = "Update messages Set msg_title = '$msgTitle' ,Reply_ID='$replyID',The_Text = '$message' where ID='$replyID'"; $result2 = mysql_query($sqlupdate) or die(mysql_error()); } else{ //*********************DID NOT FIND THE FRIEND IN THE USERS TABLE - NOT YET A MEMBER $theGender1 = "they"; $theGender2 = "his or her"; if($_SESSION["sessionGender"] == "f"){ $theGender1 = "she"; $theGender1C = "She"; $theGender2 = "her";} if($_SESSION["sessionGender"] == "m"){ $theGender1 = "he"; $theGender1C = "He"; $theGender2 = "his";} $theLink = "http://www.yadahome.com/signUpProcess.php?rndid=" . $rand_key . "&invid=" . $lastInvId ; $to = $_REQUEST["FriendsEmail"][$i]; $fromName = $_SESSION["sessionFname"] . " " . $_SESSION["sessionLname"]; $fromEmail = $_SESSION["sessionFname"] . "" . $_SESSION["sessionLname"]; $from = "$fromEmail@yadahome.com"; $fromNamePoss = $_SESSION["sessionFname"] . "'s"; include "emailTerms.php"; $subject = "Take A Look At My Profile On A New Great Website I Discovered!"; $greeting = "Hi,

"; if ( $_REQUEST["FriendsName"][$i] > " "){ if ($friendsList > " "){ if($numberOfFriends == 2){ $friendsList .= " and "; }; if( ($numberOfFriends == 3) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 3) && ($i == 2) ){ $friendsList .= ", and "; }; if( ($numberOfFriends == 4) && ($i == 1) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 4) && ($i == 2) ){ $friendsList .= ", "; }; if( ($numberOfFriends == 4) && ($i == 3) ){ $friendsList .= ", and "; }; } $friendsList .= $_REQUEST["FriendsName"][$i]; $greeting = "Hi " . $_REQUEST["FriendsName"][$i] . ",

"; $subject = "Take A Look At My Profile On A New Great Website I Discovered!"; } if($_POST[msg] > " "){ $notes = "
". $_POST[msg] ."



"; } else { $notes = " "; } $message = " $subject

" . $greeting . " I've been using YadaHome, a great new website I recently discovered. It has lots of useful features including free organizational tools like shared grocery lists, to do lists, photos, and calendars. Plus, you can network with family and friends! It's free to join, and it would be great to add you to my new network! Thanks!

$fromName

Check out my YadaHome profile here: http://www.yadahome.com/profileLimited.php?fid=$_SESSION[sessionUserID]

Get your own free profile here: $theLink

Take a quick tour of www.yadahome.com and see all of their cool features here: http://www.yadahome.com




-----------------------------------------------------
$emailTermsInvitation
"; //end of message $headers = "From: $from \r\n"; $headers .="Reply-To: $_SESSION[sessionEmail] \r\n"; $headers .= "Content-type: text/html\r\n"; //options to send to cc+bcc //$headers .= "Cc: [email]maa@p-i-s.cXom[/email]"; //$headers .= "Bcc: [email]email@maaking.cXom[/email]"; // now lets send the email. if( $OkToSendEmail == "Y"){ mail($to, $subject, $message, $headers); } } } } //******************************* //* end of send out the email //******************************************************************* // END OF SEND EMAIL TO FRIENDS $_SESSION[thePage] = "partnersOffer.php"; header("Location: signInToFridge.php"); exit ; }else { $underAge = "y" ; } } else { $badDate = "y"; } } } else { $badEmail = "y"; } } else { $badState = "y" ; } } else { $badlength="y"; } } ?> Create Family Account
yada home
sign up process
" "){?> " "){?> " "){?> " "){?>
This email is invalid. Please enter a correct email address.
This family User Name is already in use. Please enter a different Family User Name.
The birthdate provided is incorrect. Please enter a valid birthdate.
This email is already in use. Please enter a different email.
You must be at least 18 years of age to register with www.yadahome.com.
Please provide state & zip code.
Please provide at least 6 digit username and password.
       
Some General Information About You!
First Name: " />  *required
Last Name: " /> *required
Email: " />  *requiredInvalid format.
Family User Name: " />  *requiredInvalid format.
Family Password: " /> *required
Birthdate: " size="12" maxlength="10" /> required.Invalid format.Why do we ask?
Country: *
City: " /> * required.
State:  *Required
Zipcode: required " size="5" maxlength="5" />  *required
Note:Family User Name and Password will be shared by your family and must be at least 6 characters in length

 
Optional Information
Gender: /> Male     /> Female
Marital Status: /> Single      /> Taken
Number of Children:   " size="2" maxlength="2" /> Invalid format.
 
[Required!]
       
I have reviewed and agree to the site's terms of use & privacy policy.


share recipes