* MA 02110-1301 USA *
************************************************************************/
-// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
+// Load security stuff here
require('inc/libs/security_functions.php');
// Init "action" and "what"
ON b.userid=d.userid
WHERE b.userid=%s AND b.chk_value='%s' LIMIT 1",
array($uid, $chk), __FILE__, __LINE__);
- //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk)."/".strlen(REQUEST_GET('check'))."/".SQL_NUMROWS($result).")<br />\n";
+ //* DEBUG: */ echo "uid=".$uid.",chk=".$chk." (".strlen($chk).'/'.strlen(REQUEST_GET('check')).'/'.SQL_NUMROWS($result).")<br />\n";
// Is an entry there?
if (SQL_NUMROWS($result) == 1) {
array($uid, $chk), __FILE__, __LINE__);
// Transfer data to constants for the template
- define('__GENDER', TRANSLATE_GENDER($data['gender']));
+ define('__GENDER', translateGender($data['gender']));
define('__SNAME' , $data['surname']);
define('__FNAME' , $data['family']);
- define('__GIFT' , TRANSLATE_COMMA($data['points']));
+ define('__GIFT' , translateComma($data['points']));
// Load message from template
define('__MSG', LOAD_TEMPLATE('birthday_msg', true));
} else {
// Unconfirmed / locked accounts cannot get points
- define('__MSG', sprintf(getMessage('BIRTHDAY_CANNOT_STATUS'), TRANSLATE_STATUS($data['status'])));
+ define('__MSG', sprintf(getMessage('BIRTHDAY_CANNOT_STATUS'), translateUserStatus($data['status'])));
}
} else {
// Cannot load data!
$GLOBALS['module'] = 'birthday_confirm';
// Include header
- LOAD_INC('inc/header.php');
+ loadInclude('inc/header.php');
// Load birthday header template (for your banners, e.g.?)
define('__BIRTHDAY_HEADER', LOAD_TEMPLATE('birthday_header', true));
LOAD_TEMPLATE('birthday_confirm');
// Include footer
- LOAD_INC('inc/footer.php');
+ loadInclude('inc/footer.php');
} else {
// You have to install first!
- LOAD_URL('install.php');
+ redirectToUrl('install.php');
}
// Really all done here... ;-)