<?php
/************************************************************************
- * MXChange v0.2.1 Start: 06/19/2004 *
- * ================ Last change: 06/19/2004 *
+ * Mailer v0.2.1-FINAL Start: 06/19/2004 *
+ * =================== Last change: 06/19/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-admins_contct.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 *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
-if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
+if ((isFormSent()) && (isGetRequestParameterSet('admin'))) {
// Send mail or message
- if ((isExtensionActive('msg')) && (postRequestElement('type') == 'message')) {
+ if ((isExtensionActive('msg')) && (postRequestParameter('type') == 'message')) {
// Add message
- $message = loadEmailTemplate('admins_msg_contct_admin', postRequestElement('text'), '0');
- SEND_ADMIN_MESSAGE(getRequestElement('admin'), ADMINS_MSG_FROM_ADMIN, $message);
+ $message = loadEmailTemplate('admins_msg_contct_admin', postRequestParameter('text'), 0);
+ sendAdminMessage(getRequestParameter('admin'), '{--ADMINS_MSG_FROM_ADMIN--}', $message);
} else {
// Load admin's email address
- $email = getAdminEmail(bigintval(getRequestElement('admin')));
+ $email = getAdminEmail(bigintval(getRequestParameter('admin')));
// Load email template and send the mail to the admin
- $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), '0');
- sendEmail($email, getMessage('ADMINS_MSG_FROM_ADMIN'), $message);
+ $message = loadEmailTemplate('admins_mail_contct_admin', postRequestParameter('text'), 0);
+ sendEmail($email, '{--ADMINS_MSG_FROM_ADMIN--}', $message);
}
// Mail / message dropped
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_ADMIN_CONTACTED'));
-} elseif (isGetRequestElementSet('admin')) {
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_ADMIN_CONTACTED--}');
+} elseif (isGetRequestParameterSet('admin')) {
// Load contact form template
- $content['admin'] = getRequestElement('admin');
+ $content['admin'] = getRequestParameter('admin');
if (isExtensionActive('msg')) {
// Add option to select between mail and message
loadTemplate('admin_admins_contct_form', false, $content);
} else {
// Please select an admin!
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_SELECT_ADMIN'));
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_SELECT_ADMIN--}');
}
// [EOF]