New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / member / what-beg2.php
index 324aea5cdee45eb89e220ad3996158b66e2103fc..cee62bc19af883a0b1c75703724ccddd91353674 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('beg')) && (!IS_ADMIN())) {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'beg'));
        return;
@@ -54,7 +54,7 @@ ADD_DESCR('member', __FILE__);
 $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');
 }
 
@@ -75,8 +75,8 @@ if (SQL_NUMROWS($result) > 0) {
                        'sw'     => $SW,
                        'cnt'    => $cnt,
                        'uid'    => bigintval($content['userid']),
-                       'points' => TRANSLATE_COMMA($content['beg']),
-                       'last'   => MAKE_DATETIME($content['last_online'], "2"),
+                       'points' => translateComma($content['beg']),
+                       'last'   => generateDateTime($content['last_online'], "2"),
                );
 
                // Load row template