`refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`ref_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`hash` VARCHAR(32) NULL DEFAULT NULL,
-`last_pay` FLOAT(7,2) UNSIGNED NOT NULL DEFAULT 0.00,
-`last_curr` VARCHAR(255) NOT NULL DEFAULT '€',
+`last_payment` FLOAT(7,2) UNSIGNED NOT NULL DEFAULT 0.00,
+`last_currency` VARCHAR(255) NOT NULL DEFAULT '€',
INDEX (`refid`),
INDEX (`email`),
UNIQUE KEY (`hash`),
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('refid','N')");
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('ref_count','N')");
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('hash','N')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_pay','N')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_curr','N')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_payment','N')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_admin_data` (`data_row`, `display`) VALUES ('last_currency','N')");
//
// Add default entries
//
'ADMIN_YOOMEDIA_REMOVE_MAIL' => "Mail entfernen",
'ADMIN_YOOMEDIA_UNLIST_MAIL' => "Aus Ausschlussliste nehmen",
'ADMIN_YOOMEDIA_TEXTMAIL_ALREADY_SENT' => "Textmail wurde <span class=\"data\">%s</span> bereits versendet.",
- 'ADMIN_YOOMEDIA_TEXTMAIL_SEND_AGAIN' => "Textmail kann in <span class=\"data\">%s</span> erneut versendet werden.",
+ 'ADMIN_YOOMEDIA_TEXTMAIL_SEND_AGAIN' => "Textmail kann in <span class=\"data\">{%%pipe,createFancyTime=%s%%}</span> erneut versendet werden.",
'ADMIN_YOOMEDIA_TEXTMAIL_MANUALLY_LOCKED' => "Textmail wurde manuell gesperrt.",
'ADMIN_LIST_YOOMEDIA_TITLE' => "Alle Textmails von der Yoo!Media API 2.0 anzeigen",
'ADMIN_LIST_YOOMEDIA_NOTE' => "<strong>Hinweise:</strong> Mails mit 0 Sekunden Mindestaufenthalt sind meistens Framekiller-Mails. Sie können eine Mail nur erneut aussenden, wenn die Reload-Sperre abgelaufen ist.",
// Unsecure data which we don't want
$UNSAFE = array('password', 'id', 'remote_addr', 'sponsor_created', 'last_online', 'status', 'ref_count',
- 'points_amount', 'points_used', 'refid', 'hash', 'last_pay', 'last_curr', 'pass_old',
- 'ok', 'pass1', 'pass2');
+ 'points_amount', 'points_used', 'refid', 'hash', 'last_payment', 'last_currency',
+ 'pass_old', 'ok', 'pass1', 'pass2');
// Set default message ("not saved")
$message = '{--SPONSOR_ACCOUNT_DATA_NOT_SAVED--}';
if (getConfig('beg_ip_timeout') > 0) {
// Create timemark
- $content['ip_locker'] = createFancyTime(getConfig('beg_ip_timeout'));
+ $content['ip_locker'] = '{%config,createFancyTime=beg_ip_timeout%}';
} // END - if
// Check for accounts to be notified
handleSponsorRequest(postRequestArray());
// Convert some data for the email template
- postRequestParameter('gender' , translateGender(postRequestParameter('gender')));
- postRequestParameter('warning_interval', createFancyTime(postRequestParameter('warning_interval')));
+ postRequestParameter('gender' , '{%pipe,translateComma=' . postRequestParameter('gender') . '%}');
+ postRequestParameter('warning_interval', '{%pipe,createFancyTime=' . postRequestParameter('warning_interval') . '%}');
if ($PASS === false) setPostRequestParameter('pass1', '{--SPONSOR_PASS_UNCHANGED--}');
} // END - if
// Add reload lock
- $entry['already'] = getMaskedMessage('ADMIN_YOOMEDIA_TEXTMAIL_SEND_AGAIN', createFancyTime($countdown));
+ $entry['already'] = getMaskedMessage('ADMIN_YOOMEDIA_TEXTMAIL_SEND_AGAIN', $countdown);
} else {
// Never resentable unless manual removal
$entry['already'] = '{--ADMIN_YOOMEDIA_TEXTMAIL_MANUALLY_LOCKED--}';
`id`, `status`, `gender`, `surname`, `family`,
`company`, `position`, `tax_ident`,
`street_nr1`, `street_nr2`, `country`, `zip`, `city`, `email`, `phone`, `fax`, `cell`,
- `points_amount` AS points, `last_pay` AS pay, `last_curr` AS curr
+ `points_amount` AS points, `last_payment`, `last_currency`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
WHERE
// Add points to array
postRequestParameter('points_amount', $points);
postRequestParameter('points_used' , '0.00000');
- postRequestParameter('last_pay' , $pay);
- postRequestParameter('last_curr' , $curr);
+ postRequestParameter('last_payment' , $pay);
+ postRequestParameter('last_currency', $curr);
// Register sponsor but never ever update here!
$message = doProcessSponsorFormRequest($messageArray);
$lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
} // END - if
-// Let's check if there are some points left we can 'pay'...
+// Let's check if there are some points left we can pay...
$result = SQL_QUERY_ESC("SELECT
`userid`, `beg_points` AS points, `last_online`
FROM
// Remember transfer reason and fancy date/time in constants
$content['reason'] = secureString(postRequestParameter('reason'));
- $content['expires'] = createFancyTime(getConfig('transfer_age'));
+ $content['expires'] = '{%config,createFancyTime=transfer_age%}';
// Generate tranafer id
$content['trans_id'] = bigintval(generateRandomCode('10', mt_rand(0, 99999), getMemberId(), postRequestParameter('reason')));
$whereStatement1 = " AND `userid` != {?beg_userid?}";
} // END - if
- // Let's check if there are some points left we can 'pay'...
+ // Let's check if there are some points left we can pay...
if (isExtensionActive('autopurge')) {
// Use last online stamp only when autopurge for inactive members is activated
if ((getApInactiveSince() > 0) && (getConfig('beg_active') == 'Y')) {
'cat_id' => $DATA['cat_id'],
'text' => $DATA['text'],
'url' => $DATA['url'],
- 'expiration' => createFancyTime(getPaymentPoints($DATA['payment_id'], 'time'))
+ 'expiration' => '{%pipe,createFancyTime=' . getPaymentPoints($DATA['payment_id'], 'time') . '%}'
);
// Yes we do, so we notify admin and sender about fully sent mail!
$content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}';
} elseif (isConfigEntrySet('auto_purge')) {
// Create nice date string
- $content['expiration'] = createFancyTime(getAutoPurge());
+ $content['expiration'] = '{%pipe,getAutoPurge,createFancyTime%}';
} else {
// Missing entry
$content['expiration'] = '{--MAIL_NO_CONFIG_AUTO_PURGE--}';
------------------------------
Verwendungszweck: SPONSOR: $content[id], {%pipe,translateComma=$content[points]%}
------------------------------
-Zu überweisender Betrag: {%pipe,translateComma=$content[pay]%} $content[curr]
+Zu überweisender Betrag: {%pipe,translateComma=$content[last_payment]%} $content[last_currency]
------------------------------
Hier sind nochmals alle seine Daten aus der Anmeldung:
------------------------------
Verwendungszweck: SPONSOR: $content[id], {%pipe,translateComma=$content[points]%}
------------------------------
-Zu überweisender Betrag: {%pipe,translateComma=$content[pay]%} $content[curr]
+Zu überweisender Betrag: {%pipe,translateComma=$content[last_payment]%} $content[last_currency]
------------------------------
Hier sind nochmals alle Ihre Daten aus der Anmeldung: