return $result;
}
-// Prepares a bonus mail for delivery. Works only if extension "bonus" is active
+// Prepares a bonus mail for delivery. Works only if extension 'bonus' is active
function YOOMEDIA_PREPARE_MAIL_DELIVERY ($data) {
// Is this an admin?
if (!IS_ADMIN()) {
// Abort here
return false;
- } elseif (!EXT_IS_ACTIVE("bonus")) {
+ } elseif (!EXT_IS_ACTIVE('bonus')) {
// Abort here
return false;
}
$data['all'] = TRANSLATE_COMMA(GET_TOTAL_RECEIVERS());
// Add categories
- $data['categories'] = ADD_CATEGORY_OPTIONS("normal");
+ $data['categories'] = ADD_CATEGORY_OPTIONS('normal');
// Load template
LOAD_TEMPLATE("admin_send_yoomedia", false, $data);
if (!IS_ADMIN()) {
// Abort here
return false;
- } elseif (!EXT_IS_ACTIVE("bonus")) {
+ } elseif (!EXT_IS_ACTIVE('bonus')) {
// Abort here
return false;
}
$data['receiver'] = 0;
// HTML or normal? (normal is default...)
- $type = "t";
- if (($mode == "html") && (EXT_IS_ACTIVE("html"))) $type = "h";
+ $type = 't';
+ if (($mode == 'html') && (EXT_IS_ACTIVE('html_mail'))) $type = 'h';
// Auto-generate URL
$data['url'] = sprintf("http://www.yoomedia.de/code/%s-mail.php?id=%s&sid=%s",
function YOOMEDIA_CONVERT_MODE ($mode) {
// Convert mode for normal/html
switch ($mode) {
- case "normal":
+ case 'normal':
$mode = "textmail";
break;
- case "html":
+ case 'html':
$mode = "htmlmail";
break;
} // END - switch