$time = getPaymentPoints($pay, 'time');
$payment = getPaymentPoints($pay, 'payment');
$isValid = true;
- }
+ } // END - if
// Free memory
SQL_FREERESULT($result);
case 'BONUS':
$result = SQL_QUERY_ESC("SELECT points, time FROM `{!_MYSQL_PREFIX!}_bonus` WHERE `id`=%s LIMIT 1",
- array($url_bid), __FILE__, __LINE__);
+ array($url_bid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
list($points, $time) = SQL_FETCHROW($result);
$payment = '0.00000';
// Was that mail a valid one?
if ($isValid === true) {
// If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
- if (($time == '0') && ($payment > 0)) { $URL = constant('URL'); $time = '1'; }
+ if (($time == '0') && ($payment > 0)) { $URL = getConfig('URL'); $time = '1'; }
if (($time > 0) && (($payment > 0) || ($points > 0))) {
- // He can confirm this mail!
// Export data into constants for the template
- // @TODO Rewrite these constants
- define('_UID_VALUE' , $url_uid);
- define('_TYPE_VALUE', $type);
- define('_DATA_VALUE', $urlId);
- define('_URL_VALUE' , DEREFERER($URL));
+ $content = array(
+ 'uid' => $url_uid,
+ 'type' => $type,
+ 'data' => $urlId,
+ 'url' => DEREFERER($URL)
+ );
// Load template
LOAD_TEMPLATE('mailid_frames');