list($adminId) = SQL_FETCHROW($result);
// Rewrite email address to contact link
- $email = "{?URL?}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($adminId);
+ $email = '{%url=modules.php?module=' . $mod . '&what=admins_contct&admin=' . bigintval($adminId) . '%}';
} // END - if
// Free memory
SQL_FREERESULT($result);
} elseif ((is_int($email)) && ($email > 0)) {
// Direct id given
- $email = "{?URL?}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($email);
+ $email = '{%url=modules.php?module=' . $mod . '&what=admins_contct&admin=' . bigintval($email) . '%}';
}
// Return rewritten (?) email address
// Sends out mail to all administrators
// IMPORTANT: Please use SEND_ADMIN_NOTIFCATION() for now!
-function sendAdminsEmails ($subj, $template, $content, $UID) {
+function sendAdminsEmails ($subj, $template, $content, $userid) {
// Trim template name
$template = trim($template);
// Load email template
- $message = loadEmailTemplate($template, $content, $UID);
+ $message = loadEmailTemplate($template, $content, $userid);
// Check which admin shall receive this mail
$result = SQL_QUERY_ESC("SELECT `admin_id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `admin_id` ASC",
if ($adminId == '-1') {
if (isExtensionActive('events')) {
// Add line to user events
- EVENTS_ADD_LINE($subj, $message, $UID);
+ EVENTS_ADD_LINE($subj, $message, $userid);
} else {
// Log error for debug
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Extension 'events' missing: tpl=%s,subj=%s,UID=%s",
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Extension 'events' missing: tpl=%s,subj=%s,userid=%s",
$template,
$subj,
- $UID
+ $userid
));
}
} elseif ($adminId == '0') {