* $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 *
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Don't run on daily reset
if (isResetModeEnabled()) {
'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!
array(bigintval($DATA['id'])), __FILE__, __LINE__);
} else {
// Is the userid set?
- if ($userid > 0) {
+ if (isValidUserId($userid)) {
// User does not exists, pay points back
$points = getPaymentPoints($DATA['payment_id']);
addPointsDirectly('pool_payback', $DATA['sender'], $points);
// Walk through all points
foreach ($pointsBack as $userid => $PB) {
// Add points only when we have points left to add and a valid user id
- if (($PB > 0) && ($userid > 0)) {
+ if (($PB > 0) && (isValidUserId($userid))) {
// Prepare content
$content = array(
'points' => $PB