setContentType('text/html');
// Is the 'beg' extension active?
-REDIRCT_ON_UNINSTALLED_EXTENSION('beg');
+redirectOnUninstalledExtension('beg');
// Check for userid
if (isGetRequestElementSet('userid')) {
// Check if account was found
if (SQL_NUMROWS($result) == 1) {
- // Found an ID so we simply set it
+ // Found an id so we simply set it
list($userid, $clicks, $ref_payout, $status, $last) = SQL_FETCHROW($result);
// Account confirmed?
} elseif (($status != 'CONFIRMED') && ($status != 'failed')) {
// Maybe locked/unconfirmed account?
$errorCode = generateErrorCodeFromUserStatus($status);
- } elseif (($userid == '0') || ($status == 'failed')) {
+ } elseif (($userid == 0) || ($status == 'failed')) {
// Inalid or locked account, so let's find out
$result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE nickname='%s' LIMIT 1",
array(getRequestElement('userid')), __FILE__, __LINE__);
// Free memory
SQL_FREERESULT($result);
} elseif ($userid == getConfig('beg_userid')) {
- // Webmaster's ID cannot beg for points!
+ // Webmaster's id cannot beg for points!
$errorCode = getCode('BEG_SAME_AS_OWN');
}