+ switch($params['event']) {
+ case "SYSTEM_REGISTER_REQUEST":
+ $subject = sprintf( t('[Friendica System:Notify] registration request'));
+ $preamble = sprintf( t('You\'ve received a registration request from \'%1$s\' at %2$s'), $params['source_name'], $sitename);
+ $epreamble = sprintf( t('You\'ve received a [url=%1$s]registration request[/url] from %2$s.'),
+ $itemlink,
+ '[url=' . $params['source_link'] . ']' . $params['source_name'] . '[/url]');
+ $body = sprintf( t('Full Name: %1$s\nSite Location: %2$s\nLogin Name: %3$s (%4$s)'),
+ $params['source_name'], $siteurl, $params['source_mail'], $params['source_nick']);
+
+ $sitelink = t('Please visit %s to approve or reject the request.');
+ $tsitelink = sprintf( $sitelink, $params['link'] );
+ $hsitelink = sprintf( $sitelink, '<a href="' . $params['link'] . '">' . $sitename . '</a><br><br>');
+ $itemlink = $params['link'];
+ break;
+ case "SYSTEM_DB_UPDATE_FAIL":
+ break;
+ }
+ }
+
+ if ($params['type'] == "SYSTEM_EMAIL"){
+ // not part of the notifications.
+ // it just send a mail to the user.
+ // It will be used by the system to send emails to users (like
+ // password reset, invitations and so) using one look (but without
+ // add a notification to the user, with could be inexistent)