- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
// Shall I withdraw now?
if (REQUEST_ISSET_POST(('withdraw'))) {
// Okay, let's prepare...
// Shall I withdraw now?
if (REQUEST_ISSET_POST(('withdraw'))) {
// Okay, let's prepare...
- $curr = date("m", time()) - 1;
- if (strlen($curr) == 1) $curr = "0".$curr;
- UPDATE_CONFIG("last_month", $curr);
+ $curr = date('m', time()) - 1;
+ if (strlen($curr) == 1) $curr = '0'.$curr;
+ updateConfiguration('last_month', $curr);
$lastOnline = "%s"; $ONLINE = '';
if (EXT_IS_ACTIVE('autopurge')) {
// Use last online timestamp to keep inactive members away from here
$lastOnline = "%s"; $ONLINE = '';
if (EXT_IS_ACTIVE('autopurge')) {
// Use last online timestamp to keep inactive members away from here
FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE `status`='CONFIRMED' AND beg_points > 0".$lastOnline."
ORDER BY beg_points DESC, last_online DESC, userid",
FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE `status`='CONFIRMED' AND beg_points > 0".$lastOnline."
ORDER BY beg_points DESC, last_online DESC, userid",
// @TODO to shorten this block. Please also do so with uid->userid
$content = array(
'uid' => $content['userid'],
// @TODO to shorten this block. Please also do so with uid->userid
$content = array(
'uid' => $content['userid'],
- 'email' => CREATE_EMAIL_LINK($content['email'], "user_data"),
- 'gender' => TRANSLATE_GENDER($content['gender']),
+ 'email' => generateMemberEmailLink($content['email'], "user_data"),
+ 'gender' => translateGender($content['gender']),
'sname' => $content['surname'],
'fname' => $content['family'],
'sname' => $content['surname'],
'fname' => $content['family'],
- 'turbo' => TRANSLATE_COMMA($content['beg_points']),
- 'last' => MAKE_DATETIME($content['last_online'], "2"),
+ 'turbo' => translateComma($content['beg_points']),
+ 'last' => generateDateTime($content['last_online'], '2'),
$SW = 3 - $SW; $cnt++; $total += $content['beg_points'];
}
define('__BEG_ROWS', $OUT);
$SW = 3 - $SW; $cnt++; $total += $content['beg_points'];
}
define('__BEG_ROWS', $OUT);