]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
Parser error fixed + some empty lines added between table rows (tr)
[mailer.git] / inc / modules / member / what-bonus.php
index ee31c8b790e0037ba8d25a17b866198ea346b846..2cbffdac94529cca80c8f59df0d2fc44f6916338 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * 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 *
@@ -68,7 +68,7 @@ if ((isExtensionActive('autopurge')) && ((getApInactiveSince() > 0))) {
 } // END - if
 
 // Let's check if there are some points left we can 'pay'...
-$result = SQL_QUERY_ESC("SELECT
+$result = sqlQueryEscaped("SELECT
        `userid`,
        ".$pointsColumns." AS `points`,
        `last_online`
@@ -90,33 +90,33 @@ LIMIT {?bonus_ranks?}",
 
 // Reset temporary variable and check for users
 $OUT = '';
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
        // Load our winners...
        $count = 1;
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Prepare data for the template
                $content['count']       = $count;
                $content['last_online'] = generateDateTime($content['last_online'], '2');
 
                // Load row template
-               $OUT .= loadTemplate('member_bonus_row', true, $content);
+               $OUT .= loadTemplate('member_bonus_row', TRUE, $content);
 
                // Count one up
                $count++;
        } // END - while
 } else {
        // No one is interested in our "active rallye" ! :-(
-       $OUT = loadTemplate('member_bonus_404', true);
+       $OUT = loadTemplate('member_bonus_404', TRUE);
 }
 
 // Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // Prepare content array
 $content['rows'] = $OUT;
 
 // Load final template
-loadTemplate('member_bonus', false, $content);
+loadTemplate('member_bonus', FALSE, $content);
 
 // [EOF]
 ?>