<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 02/29/2004 *
- * ================ Last change: 04/23/2004 *
+ * =================== Last change: 04/23/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-support.php *
return;
} // END - if
-if ((!isFormSent()) || (!isPostRequestElementSet(('qsummary')))) {
+if ((!isFormSent()) || (!isPostRequestParameterSet(('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') {
- $a_tpl = 'admin_support-' . postRequestElement('qsummary');
+ $a_tpl = 'admin_support-' . postRequestParameter('qsummary');
} else {
- $message_a = loadEmailTemplate('admin_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
+ $message_a = loadEmailTemplate('admin_support-' . postRequestParameter('qsummary'), array('text' => postRequestParameter('qdetails')), getMemberId());
}
- $message_m = loadEmailTemplate('member_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
+ $message_m = loadEmailTemplate('member_support-' . postRequestParameter('qsummary'), array('text' => postRequestParameter('qdetails')), getMemberId());
// Select right subject
- switch (postRequestElement('qsummary')) {
+ switch (postRequestParameter('qsummary')) {
case 'ordr':
$subj_a = getMessage('SUPPORT_SUBJ_ADMIN_ORDER');
$subj_m = getMessage('SUPPORT_SUBJ_MEMBER_ORDER');
} // END - switch
// Send mail to admin
- sendAdminNotification($subj_a, $a_tpl, array('text' => postRequestElement('qdetails')), getMemberId());
+ sendAdminNotification($subj_a, $a_tpl, array('text' => postRequestParameter('qdetails')), getMemberId());
// 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());
+ createNewTask($subj_a, postRequestParameter('qsummary') . ' : ' . postRequestParameter('qdetails'), 'SUPPORT_MEMBER', getMemberId());
// Form sent
loadTemplate('member_support_contcted');