} elseif (!IS_MEMBER()){
LOAD_URL("modules.php?module=index");
} elseif ((!EXT_IS_ACTIVE("support")) && (!IS_ADMIN())) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "support");
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "support");
return;
}
// Select right subject
switch ($_POST['qsummary']) {
- case "ordr" : $subj_a = SUPPORT_SUBJ_ADMIN_ORDER; $subj_m = SUPPORT_SUBJ_MEMBER_ORDER; break;
- case "reflink" : $subj_a = SUPPORT_SUBJ_ADMIN_REFLINK; $subj_m = SUPPORT_SUBJ_MEMBER_REFLINK; break;
- case "unconfirmed": $subj_a = SUPPORT_SUBJ_ADMIN_UNCONFIRMED; $subj_m = SUPPORT_SUBJ_MEMBER_UNCONFIRMED; break;
+ case "ordr":
+ $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_ORDER');
+ $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_ORDER');
+ break;
+
+ case "reflink":
+ $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_REFLINK');
+ $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_REFLINK');
+ break;
+
+ case "unconfirmed":
+ $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_UNCONFIRMED');
+ $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_UNCONFIRMED');
+ break;
} // END - switch
// Send mail to admin
SEND_EMAIL($GLOBALS['userid'], $subj_m, $msg_m);
// Drop a message in the admin's area
- SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_task_system (userid, assigned_admin, status, task_type, subject, text, task_created) VALUES ('%s','0','NEW','SUPPORT_MEMBER','%s','%s', UNIX_TIMESTAMP())",
+ SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_task_system` (userid, assigned_admin, status, task_type, subject, text, task_created) VALUES ('%s','0','NEW','SUPPORT_MEMBER','%s','%s', UNIX_TIMESTAMP())",
array($GLOBALS['userid'], $subj_a, $_POST['qsummary'].":".array('text' => $_POST['qdetails'])), __FILE__, __LINE__);
// Form sent