2001-06-18 08:57:33 +00:00
|
|
|
/**
|
|
|
|
* send a mail to confirm registration
|
2001-12-13 18:23:29 +00:00
|
|
|
* @param String email-address used as sender-address
|
2001-06-18 08:57:33 +00:00
|
|
|
*/
|
|
|
|
|
2001-12-13 18:23:29 +00:00
|
|
|
function sendConfirmationMail(sender) {
|
2001-08-25 17:16:40 +00:00
|
|
|
var mail = new Mail();
|
2001-12-13 18:23:29 +00:00
|
|
|
mail.setFrom(sender);
|
2001-08-25 17:16:40 +00:00
|
|
|
mail.addTo(this.email);
|
2002-06-26 17:05:44 +00:00
|
|
|
mail.setSubject(getMsg("mailsubject","registration",root.getSysTitle()));
|
2001-09-05 21:30:16 +00:00
|
|
|
var mailParam = new Object();
|
2001-08-25 17:16:40 +00:00
|
|
|
mailParam.name = this.name;
|
|
|
|
mailParam.password = this.password;
|
|
|
|
mail.setText(this.renderSkinAsString("mailbody",mailParam));
|
2001-06-18 08:57:33 +00:00
|
|
|
mail.send();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* check if user is blocked
|
|
|
|
*/
|
|
|
|
|
|
|
|
function isBlocked() {
|
2001-12-10 23:38:21 +00:00
|
|
|
if (parseInt(this.blocked,10))
|
2001-06-18 08:57:33 +00:00
|
|
|
return true;
|
2001-12-10 23:38:21 +00:00
|
|
|
return false;
|
2001-06-18 08:57:33 +00:00
|
|
|
}
|
2002-01-22 20:00:30 +00:00
|
|
|
|
2002-03-27 11:20:45 +00:00
|
|
|
/**
|
|
|
|
* check if user is trusted
|
|
|
|
*/
|
|
|
|
|
|
|
|
function isTrusted() {
|
|
|
|
if (parseInt(this.trusted,10))
|
|
|
|
return true;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* check if user is sysAdmin
|
|
|
|
*/
|
|
|
|
|
|
|
|
function isSysAdmin() {
|
|
|
|
if (parseInt(this.sysadmin,10))
|
|
|
|
return true;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2002-01-22 20:00:30 +00:00
|
|
|
/**
|
|
|
|
* function for sorting member-objects by the lastupdate-timestamp
|
2002-06-26 17:05:44 +00:00
|
|
|
* of the according site
|
2002-01-22 20:00:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
function sortSubscriptions(s1,s2) {
|
2002-06-26 17:05:44 +00:00
|
|
|
if (s1.site.lastupdate < s2.site.lastupdate)
|
2002-01-22 20:00:30 +00:00
|
|
|
return 1;
|
2002-06-26 17:05:44 +00:00
|
|
|
else if (s1.site.lastupdate > s2.site.lastupdate)
|
2002-05-08 18:32:25 +00:00
|
|
|
return -1;
|
2002-01-22 20:00:30 +00:00
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|