]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / member / what-bonus.php
index 8b13ded196e1674a96c90653740c5857c954093e..d44f96177622a75828fc8877debba5a6d326cb10 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif (!IS_MEMBER()) {
-       LOAD_URL('modules.php?module=index');
+       redirectToUrl('modules.php?module=index');
 } elseif ((!EXT_IS_ACTIVE('bonus')) && (!IS_ADMIN())) {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'bonus'));
        return;
@@ -69,7 +69,7 @@ if (GET_EXT_VERSION('bonus') >= '0.6.9') {
 $lastOnline = "%s"; $ONLINE = '';
 if (EXT_IS_ACTIVE('autopurge')) {
        // Use last online timestamp to keep inactive members away from here
-       $lastOnline   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
+       $lastOnline   = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)";
        $ONLINE = getConfig('ap_inactive_since');
 }
 
@@ -91,8 +91,8 @@ if (SQL_NUMROWS($result) > 0) {
                $content['sw']     = $SW;
                $content['cnt']    = $cnt;
                $content['uid']    = bigintval($content['uid']);
-               $content['points'] = TRANSLATE_COMMA($content['points']);
-               $content['last']   = MAKE_DATETIME($content['last'], "2");
+               $content['points'] = translateComma($content['points']);
+               $content['last']   = generateDateTime($content['last'], "2");
 
                // Load row template
                $OUT .= LOAD_TEMPLATE("member_bonus_row", true, $content);