31 lines
781 B
JavaScript
31 lines
781 B
JavaScript
/**
|
|
* send a mail to confirm registration
|
|
* @param String email-address used as sender-address
|
|
*/
|
|
|
|
function sendConfirmationMail(sender) {
|
|
var mail = new Mail();
|
|
mail.setFrom(sender);
|
|
mail.addTo(this.email);
|
|
mail.setSubject(getMessage("mailsubject","registration",root.getSysTitle()));
|
|
var mailParam = new Object();
|
|
mailParam.name = this.name;
|
|
mailParam.password = this.password;
|
|
mail.setText(this.renderSkinAsString("mailbody",mailParam));
|
|
mail.send();
|
|
}
|
|
|
|
|
|
/**
|
|
* function for sorting member-objects by the lastupdate-timestamp
|
|
* of the according site
|
|
*/
|
|
|
|
function sortSubscriptions(s1,s2) {
|
|
if (s1.site.lastupdate < s2.site.lastupdate)
|
|
return 1;
|
|
else if (s1.site.lastupdate > s2.site.lastupdate)
|
|
return -1;
|
|
else
|
|
return 0;
|
|
}
|