- );
- $OUT .= LOAD_TEMPLATE("admin_wernis_overview_form", true, $content);
- } else {
- // Problem obtaining wernis ID
- $OUT .= "<FONT class=\"admin_failed medium\">".WERNIS_OBTAIN_ID_FAILED."</FONT>\n";
- }
- } else {
- // Extension is not installed
- $OUT .= "<FONT class=\"admin_failed medium\">".ADMIN_WERNIS_NOT_INSTALLED."</FONT>\n";
- }
- break;
-
- case "HOLIDAY_REQUEST": // Holiday requests
- $OUT .= LOAD_TEMPLATE("admin_task_holiday", true, $uid);
- break;
-
- case "NL_UNSUBSCRIBE": // Newsletter unsubscriptions
- $result = SQL_QUERY_ESC("SELECT nl_timespan FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1",
- array(bigintval($uid)), __FILE__, __LINE__);
- list($span) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
-
- if ($span > 0) {
- // Undone unscubscribe request
- $content = array(
- 'uid' => $uid,
- 'id' => $tid
- );
- $OUT .= LOAD_TEMPLATE("admin_newsletter_tsk", true, $content);
- } else {
- // Already unsubscribed
- $OUT .= "<FONT class=\"admin_failed medium\">".ADMIN_NL_UNSUBSCRIBE_ALREADY."</FONT>\n";
- }
- break;
-
- default: // Unknown task type
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", $type));
- $OUT .= "<FONT class=\"admin_failed medium\">".ADMIN_UNKNOWN_TASK_TYPE_1.$type.ADMIN_UNKNOWN_TASK_TYPE_2.$id.ADMIN_UNKNOWN_TASK_TYPE_3."</FONT>\n";
- break;
+ );
+ $OUT .= LOAD_TEMPLATE('admin_wernis_overview_form', true, $content);
+ } else {
+ // Problem obtaining wernis ID
+ $OUT .= "<div class=\"admin_failed medium\">{--WERNIS_OBTAIN_ID_FAILED--}</div>\n";
+ }
+ } else {
+ // Extension is not installed
+ $OUT .= "<div class=\"admin_failed medium\">{--ADMIN_WERNIS_NOT_INSTALLED--}</div>\n";
+ }
+ break;
+
+ case 'HOLIDAY_REQUEST': // Holiday requests
+ $OUT .= LOAD_TEMPLATE('admin_task_holiday', true, $uid);
+ break;
+
+ case 'NL_UNSUBSCRIBE': // Newsletter unsubscriptions
+ $result = SQL_QUERY_ESC("SELECT nl_timespan FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
+ array(bigintval($uid)), __FILE__, __LINE__);
+ list($span) = SQL_FETCHROW($result);
+ SQL_FREERESULT($result);
+
+ if ($span > 0) {
+ // Undone unscubscribe request
+ $content = array(
+ 'uid' => $uid,
+ 'id' => $tid
+ );
+ $OUT .= LOAD_TEMPLATE('admin_newsletter_tsk', true, $content);
+ } else {
+ // Already unsubscribed
+ $OUT .= "<div class=\"admin_failed medium\">".ADMIN_NL_UNSUBSCRIBE_ALREADY."</div>\n";
+ }
+ break;
+
+ default: // Unknown task type
+ DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", $type));
+ $OUT .= "<div class=\"admin_failed medium\">".sprintf(getMessage('ADMIN_UNKNOWN_TASK_TYPE'), $type, $id)."</div>\n";
+ break;