* 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 *
// Warning because low points
$content['receive_warnings'] = addSelectionBox('yn', $content['receive_warnings'], 'receive_warning');
- $content['interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh');
+ $content['warning_interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh');
// Init variables here
$TPL = sprintf("admin_edit_sponsor_%s", getRequestParameter('mode'));
initSqls();
// Sponsor was found
- if ((isFormSent()) || (isPostRequestParameterSet('edit'))) {
+ if ((isFormSent()) || (isFormSent('edit'))) {
// Perform action on mode
switch (getRequestParameter('mode')) {
case 'add_points': // Add points
// Send email
$message = loadEmailTemplate('sponsor_add_points', $content);
- sendEmail($content['email'], getMessage('ADMIN_SPONSOR_ADD_POINTS_SUBJ'), $message);
- $message = getMessage('ADMIN_SPONSOR_POINTS_ADDED');
+ sendEmail($content['email'], '{--ADMIN_SPONSOR_ADD_POINTS_SUBJECT--}', $message);
+ $message = '{--ADMIN_SPONSOR_POINTS_ADDED--}';
} else {
// No points entered to add!
- $message = getMessage('ADMIN_SPONSPOR_NO_POINTS_TO_ADD');
+ $message = '{--ADMIN_SPONSPOR_NO_POINTS_TO_ADD--}';
}
break;
// Send email
$message = loadEmailTemplate('sponsor_sub_points', $content);
- sendEmail($content['email'], getMessage('ADMIN_SPONSOR_SUB_POINTS_SUBJ'), $message);
- $message = getMessage('ADMIN_SPONSOR_POINTS_SUBTRACTED');
+ sendEmail($content['email'], '{--ADMIN_SPONSOR_SUB_POINTS_SUBJECT--}', $message);
+ $message = '{--ADMIN_SPONSOR_POINTS_SUBTRACTED--}';
} else {
// No points entered to add!
- $message = getMessage('ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT');
+ $message = '{--ADMIN_SPONSPOR_NO_POINTS_TO_SUBTRACT--}';
}
break;
postRequestParameter('gender' , translateGender(postRequestParameter('gender')));
postRequestParameter('warning_interval', createFancyTime(postRequestParameter('warning_interval')));
- if ($PASS === false) setPostRequestParameter('pass1', getMessage('SPONSOR_PASS_UNCHANGED'));
+ if ($PASS === false) setPostRequestParameter('pass1', '{--SPONSOR_PASS_UNCHANGED--}');
// Load email template and send the mail away
$message = loadEmailTemplate('admin_sponsor_edit', postRequestArray(), false);
- sendEmail(postRequestParameter('email'), getMessage('ADMIN_SPONSOR_EDIT_SUBJECT'), $message);
+ sendEmail(postRequestParameter('email'), '{--ADMIN_SPONSOR_EDIT_SUBJECT--}', $message);
break;
default: // Unknown mode
// Output message
loadTemplate('admin_settings_saved', false, $message);
} // END - if
- } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getConfig('PATH'), getLanguage(), $TPL))) {
+ } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getPath(), getLanguage(), $TPL))) {
// Create mailto link
$content['contact'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';
SQL_FREERESULT($result_main);
} else {
// Not called by what-list_sponsor.php
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CALL_NOT_DIRECTLY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
}
// [EOF]