.id
4461
.gutitle
bn_welcome_confirmemail
.title
bn_welcome_confirmemail
.file
.extension
.name
|/routinetype-page|
.user_id
7
.notes
.body
<ensure variable="get.s2" value="">



<if get.s2 EQ "yay">

<tag.bn_layout NOFOLLOW="1"
title="Email Confirmed | Balloon" ping_mode="1">
<tag.bn_welcome_confirmemail_yay>
</tag.bn_layout>
<break>

<elseif get.s2 EQ "exists">

<tag.bn_layout NOFOLLOW="1"
title="This Email is Already In Use | Balloon">
<tag.bn_welcome_confirmemail_exists>
</tag.bn_layout>
<break>

<elseif get.s2 EQ "nomatch">

<tag.bn_layout NOFOLLOW="1"
title="This Email Cannot be Confirmed | Balloon">
<tag.bn_welcome_confirmemail_nomatch>
</tag.bn_layout>
<break>

</if>







<div>&nbsp;</div>


<real_person>
<goto url="http://#this_domain#/">
<BREAK>
</real_person>


<ensure variable="get.function" value="">
<ensure variable="get.pe" value="">

<var _hide_form = 0>

<var _real_email = "">
<var _potential_email = get.pe>
<var _bn_site_id = site_id>



<if isdefined("get.confirm_token") AND get.confirm_token EQ hash("#client_id#|#_potential_email#|yayay") AND isValidEmail(_potential_email) EQ 1>
<var _hide_form = 1>

<fake_person>
<!--- get users with no email, but this potential email
(the oldest user will win) --->

<var _conf_status = 0>
<set orb="user" select="user.id,user.email,user.name" where="user.site_id = #_bn_site_id# AND user.potentialemail_protected = '#_potential_email#'"
orderby="user.so_dateinserted ASC" is_proxy="1">
<!--- anybody have this email for real? --->
<setcrawl>
<if set.email EQ _potential_email>
<var _conf_status = 2>
<break>
</if>
</setcrawl>
<if _conf_status EQ 0>
<!--- oldest wins... --->
<setcrawl>
<if _conf_status EQ 0 AND set.email EQ "">
<var _conf_status = 1>
<update orb="user" where="user.id = #set.id#" is_proxy="1"
email="#_potential_email#"
potentialemail_protected="">
<!--- email them! --->
<var _name = "Balloon User">
<if trim(set.name) NEQ "">
<var _name = escapeMarkup(set.name)>
</if>
<!--<email from="balloon@thisisballoon.com" to="#_potential_email#" subject="Welcome to Balloon.">Hello #_name#,

Thank you for confirming your email address.

Welcome to Balloon, the no-nonsense social network that's all about you.

Bookmark this link to start using Balloon:
http://thisisballoon.com/

Thanks for signing up!

Sincerely,
- Balloon

--</email>-->
<else>
<if _conf_status EQ 1 AND set.email EQ "">
<!--- this is a duplicate sign up attempt: delete. --->
<delete orb="user" where="user.id = #set.id#" is_proxy="1">
</if>
</if>
</setcrawl>
</if>
</set>

<if _conf_status EQ 1>
<!--- yay! redirect to login page. --->
<goto url="http://#this_domain#/confirmemail/yay?&email=#urlEncodedFormat(_potential_email)#">
<elseif _conf_status EQ 2>
<!--- hmm. redirect to "email exists" page. --->
<goto url="http://#this_domain#/confirmemail/exists?&email=#urlEncodedFormat(_potential_email)#">
<else>
<!--- hmm. redirect to "no match" page. --->
<goto url="http://#this_domain#/confirmemail/nomatch?&email=#urlEncodedFormat(_potential_email)#">
</if>
<BREAK>
</fake_person>

<update orb="user" email="#_potential_email#" potentialemail_protected="" where="user.id = #client_id#">

<set orb="user" select="user.email,user.potentialemail_protected" where="user.id = #client_id#">
<setcrawl>
<var _real_email = set.email>
<var _potential_email = set.potentialemail_protected>
</setcrawl>
</set>



<else>

<!--- hmm. redirect to "no match" page. --->
<goto url="http://#this_domain#/confirmemail/nomatch?&email=#urlEncodedFormat(_potential_email)#">


</if>
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0