<?php
/************************************************************************
- * MXChange v0.2.1 Start: 02/29/2004 *
- * ================ Last change: 04/23/2004 *
+ * Mailer v0.2.1-FINAL Start: 02/29/2004 *
+ * =================== Last change: 04/23/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-support.php *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
}
// Add description as navigation point
-addMenuDescription('member', __FILE__);
+addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('support')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('support'));
+ displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=support%}');
return;
} // END - if
-if ((!isFormSent()) || (!isPostRequestElementSet(('qsummary')))) {
+if ((!isFormSent()) || (!isPostRequestElementSet('qsummary'))) {
// Output form
loadTemplate('member_support_form', false, getUserDataArray());
} else {
// Load mail template based on your member's decision
- if (getExtensionVersion('admins') >= '0.4.1') {
+ if (isExtensionInstalledAndNewer('admins', '0.4.1')) {
$a_tpl = 'admin_support-' . postRequestElement('qsummary');
} else {
$message_a = loadEmailTemplate('admin_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
// Select right subject
switch (postRequestElement('qsummary')) {
case 'ordr':
- $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_ORDER');
- $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_ORDER');
+ $subj_a = '{--ADMIN_SUPPORT_ORDER_SUBJECT--}';
+ $subj_m = '{--MEMBER_SUPPORT_ORDER_SUBJECT--}';
break;
case 'reflink':
- $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_REFLINK');
- $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_REFLINK');
+ $subj_a = '{--ADMIN_SUPPORT_REFERAL_LINK_SUBJECT--}';
+ $subj_m = '{--MEMBER_SUPPORT_REFERAL_LINK_SUBJECT--}';
break;
case 'unconfirmed':
- $subj_a = getMessage('SUPPORT_SUBJ_ADMIN_UNCONFIRMED');
- $subj_m = getMessage('SUPPORT_SUBJ_MEMBER_UNCONFIRMED');
+ $subj_a = '{--ADMIN_SUPPORT_UNCONFIRMED_SUBJECT--}';
+ $subj_m = '{--MEMBER_SUPPORT_UNCONFIRMED_SUBJECT--}';
break;
} // END - switch
// Send mail to user
sendEmail(getMemberId(), $subj_m, $message_m);
- // Drop a message in the admin's area
- createNewTask($subj_a, postRequestElement('qsummary') . ' : ' . postRequestElement('qdetails'), 'SUPPORT_MEMBER', getMemberId());
+ // Drop a message in the admin's area (we ignore the task id here)
+ createNewTask($subj_a, postRequestElement('qsummary') . ' : ' . postRequestElement('qdetails'), 'MEMBER_SUPPORT', getMemberId());
// Form sent
loadTemplate('member_support_contcted');