$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;
$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');
}
'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