+ $templateName = sprintf("admin_surfbar_%s", $messageType);
+
+ // Prepare subject
+ $eval = sprintf("\$subject = ADMIN_SURFBAR_NOTIFY_%s_SUBJECT;",
+ strtoupper($messageType)
+ );
+ eval($eval);
+
+ // Send the notification out
+ SEND_ADMIN_NOTIFICATION($subject, $templateName, $content, $content['uid']);
+}
+// Notify the user about the performed action
+function SURFBAR_NOTIFY_USER ($messageType, $content) {
+ // Prepare template name
+ $templateName = sprintf("admin_surfbar_%s", $messageType);
+
+ // Prepare subject
+ $eval = sprintf("\$subject = MEMBER_SURFBAR_NOTIFY_%s_SUBJECT;",
+ strtoupper($messageType)
+ );
+ eval($eval);
+
+ // Load template
+ $mailText = LOAD_EMAIL_TEMPLATE($templateName, $content);
+
+ // Send the email
+ SEND_EMAIL($content['uid'], $subject, $mailText);