* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2013 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 *
// Prepare mail for delivery
YOOMEDIA_PREPARE_MAIL_DELIVERY(postRequestArray());
return;
-} elseif (isPostRequestParameterSet('sent')) {
+} elseif (isPostRequestElementSet('send')) {
// Sent mail
YOOMEDIA_SEND_BONUS_MAIL(postRequestArray(), 'normal');
} elseif (isFormSent('do_delete')) {
// Add mail to exclude list
YOOMEDIA_EXCLUDE_MAIL(postRequestArray(), 'normal');
-} elseif (isPostRequestParameterSet('unlist')) {
+} elseif (isPostRequestElementSet('unlist')) {
// Remove mail from exclude list
YOOMEDIA_UNLIST_MAIL(postRequestArray(), 'normal');
}
displayMessage('{--ADMIN_YOOMEDIA_REQUESTS_DEPLETED--}');
// Abort here!
- return false;
+ return FALSE;
} // END - if
// Get parsed array back
$result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
// Sanity-check on result array
-if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
+if ((!isFilledArray($result)) || (!isset($result[0]['id']))) {
// Invalid result
displayMessage('{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
- return false;
+ return FALSE;
} elseif (count($result[0]) < 7) {
// Error received so prepare error code
$code = YOOMEDIA_GET_ERRORCODE_FROM_RESULT($result);
// Output message
- loadTemplate('admin_yoomedia_error', false, sprintf("{--ADMIN_YOOMEDIA_ERROR_%s--}", strtoupper(translateYooMediaError($code))));
- return false;
+ loadTemplate('admin_yoomedia_error', FALSE, sprintf('{--ADMIN_YOOMEDIA_ERROR_%s--}', strtoupper(translateYooMediaError($code))));
+ return FALSE;
}
// Prepare all entries
$OUT = '';
foreach ($result as $entry) {
// Translate some data
- $entry['pay'] = translateComma($entry['pay'], true, 5);
+ $entry['pay'] = translateComma($entry['pay'], TRUE, 5);
// Check reload lock
$reload = YOOMEDIA_CHECK_RELOAD($entry['id'], $entry['reload'], 'textmail');
// Is this mail already sent?
- if ($reload !== false) {
+ if ($reload !== FALSE) {
// Init countdown
$countdown = '0';
}
// Load row template for displaying
- $OUT .= loadTemplate('admin_list_yoomedia_tm_already', true, $entry);
+ $OUT .= loadTemplate('admin_list_yoomedia_tm_already', TRUE, $entry);
} else {
// Load row template with buttons
- $OUT .= loadTemplate('admin_list_yoomedia_tm_row', true, $entry);
+ $OUT .= loadTemplate('admin_list_yoomedia_tm_row', TRUE, $entry);
}
} // END - foreach
// Load main template
-loadTemplate('admin_list_yoomedia_tm', false, $OUT);
+loadTemplate('admin_list_yoomedia_tm', FALSE, $OUT);
// [EOF]
?>