Index: openacs-4/packages/acs-subsite/acs-subsite.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/acs-subsite.info,v diff -u -r1.90 -r1.91 --- openacs-4/packages/acs-subsite/acs-subsite.info 14 May 2007 20:30:23 -0000 1.90 +++ openacs-4/packages/acs-subsite/acs-subsite.info 29 May 2007 05:40:54 -0000 1.91 @@ -7,7 +7,7 @@ t f - + OpenACS Subsite 2007-04-22 @@ -16,7 +16,7 @@ GPL 3 - + @@ -59,6 +59,7 @@ + Index: openacs-4/packages/acs-subsite/lib/email-confirm.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/email-confirm.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/email-confirm.adp 29 May 2007 05:40:54 -0000 1.1 @@ -0,0 +1,32 @@ + + + + #acs-subsite.lt_Your_email_is_confirm# + + + + #acs-subsite.lt_Your_email_has_been_c# +

+

+ @export_vars;noquote@ + +
+ +
+ + +

#acs-subsite.lt_Your_email_has_been_c_1#

+ +
+ +
+ + + #acs-subsite.Email_not_Requested# + +

#acs-subsite.lt_We_were_not_awaiting_#

+ +

#acs-subsite.lt_Please_try_to_a_hrefi#

+ +
+ Index: openacs-4/packages/acs-subsite/lib/email-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/email-confirm.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/email-confirm.tcl 29 May 2007 05:40:54 -0000 1.1 @@ -0,0 +1,14 @@ +if {![db_0or1row userp {select 1 from users where user_id = :user_id}] + || $token ne [auth::get_user_secret_token -user_id $user_id] } { + set title "Bad token" + set message "The link given to authenticate your email was invalid." + ad_return_template /packages/acs-subsite/lib/message +} else { + auth::set_email_verified -user_id $user_id + + acs_user::get -user_id $user_id -array user_info + + set export_vars [export_vars -form { { username $user_info(username) } }] + set site_link [ad_site_home_link] + set system_name [ad_system_name] +} Index: openacs-4/packages/acs-subsite/www/register/email-confirm.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/register/email-confirm.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-subsite/www/register/email-confirm.adp 10 Sep 2003 17:01:39 -0000 1.9 +++ openacs-4/packages/acs-subsite/www/register/email-confirm.adp 29 May 2007 05:40:54 -0000 1.10 @@ -1,34 +1,4 @@ {#acs-subsite.Email_Confirmation#} - - - #acs-subsite.lt_Your_email_is_confirm# - - - - #acs-subsite.lt_Your_email_has_been_c# -

-

- @export_vars;noquote@ - -
- -
- - -

#acs-subsite.lt_Your_email_has_been_c_1#

- -
- -
- - - #acs-subsite.Email_not_Requested# - -

#acs-subsite.lt_We_were_not_awaiting_#

- -

#acs-subsite.lt_Please_try_to_a_hrefi#

- -
- + Index: openacs-4/packages/acs-subsite/www/register/email-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/register/email-confirm.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-subsite/www/register/email-confirm.tcl 10 Jan 2007 21:22:09 -0000 1.10 +++ openacs-4/packages/acs-subsite/www/register/email-confirm.tcl 29 May 2007 05:40:54 -0000 1.11 @@ -1,22 +1,17 @@ ad_page_contract { - @cvs-id $Id$ + Page for users to register themselves on the site. + @cvs-id $Id$ } { token:notnull,trim user_id:integer + + {return_url ""} } -if {![db_0or1row userp {select 1 from users where user_id = :user_id}] - || $token ne [auth::get_user_secret_token -user_id $user_id] } { - set title "Bad token" - set message "The link given to authenticate your email was invalid." - ad_return_template /packages/acs-subsite/lib/message -} else { - auth::set_email_verified -user_id $user_id +set subsite_id [ad_conn subsite_id] +set email_confirm_template [parameter::get -parameter "EmailConfirmTemplate" -package_id $subsite_id] - acs_user::get -user_id $user_id -array user_info - - set export_vars [export_vars -form { { username $user_info(username) } }] - set site_link [ad_site_home_link] - set system_name [ad_system_name] +if {$email_confirm_template eq ""} { + set email_confirm_template "/packages/acs-subsite/lib/email-confirm" }