* $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 *
} elseif (isPostRequestParameterSet('sent')) {
// Sent mail
YOOMEDIA_SEND_BONUS_MAIL(postRequestArray(), 'normal');
-} elseif (isPostRequestParameterSet('remove')) {
+} elseif (isFormSent('remove')) {
// Add mail to exclude list
YOOMEDIA_EXCLUDE_MAIL(postRequestArray(), 'normal');
} elseif (isPostRequestParameterSet('unlist')) {
// Enougth queries left?
if (getConfig('yoomedia_requests_remain') == '0') {
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_REQUESTS_DEPLETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_REQUESTS_DEPLETED--}');
// Abort here!
return false;
$result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
// Sanity-check on result array
-if ((!is_array($result)) || (count($result) == '0') || (!isset($result[0]['id']))) {
+if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
// Invalid result
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_INVALID_RESULT'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
return false;
} elseif (count($result[0]) < 7) {
// Error received so prepare error code
}
// Prepare all entries
-$OUT = ''; $SW = 2;
+$OUT = '';
foreach ($result as $entry) {
// Translate some data
$entry['pay'] = translateComma($entry['pay'], true, 5);
- $entry['remain'] = translateComma($entry['remain']);
- $entry['sw'] = $SW;
// Check reload lock
$reload = YOOMEDIA_CHECK_RELOAD($entry['id'], $entry['reload'], 'textmail');
$entry['already'] = getMaskedMessage('ADMIN_YOOMEDIA_TEXTMAIL_SEND_AGAIN', createFancyTime($countdown));
} else {
// Never resentable unless manual removal
- $entry['already'] = getMessage('ADMIN_YOOMEDIA_TEXTMAIL_MANUALLY_LOCKED');
+ $entry['already'] = '{--ADMIN_YOOMEDIA_TEXTMAIL_MANUALLY_LOCKED--}';
}
// Load row template for displaying
// Load row template with buttons
$OUT .= loadTemplate('admin_list_yoomedia_tm_row', true, $entry);
}
-
- // Switch color
- $SW = 3 - $SW;
-} // END - if
+} // END - foreach
// Load main template
loadTemplate('admin_list_yoomedia_tm', false, $OUT);