// List only rankings when script is installed
if (isInstalled()) {
// Include header
- LOAD_INC('inc/header.php');
+ loadInclude('inc/header.php');
if ((REQUEST_GET('uid') > 0) && (REQUEST_GET('d') > 0) && (REQUEST_ISSET_GET(('t')))) {
// Set row name
$content = SQL_FETCHARRAY($result);
// Prepare constants for the pre-template
- define('__GENDER' , TRANSLATE_GENDER($content['gender']));
+ define('__GENDER' , translateGender($content['gender']));
define('__SNAME' , $content['surname']);
define('__FNAME' , $content['family']);
define('__RANK' , BIGINTVAL($content['level']));
- define('__POINTS' , TRANSLATE_COMMA($content['points']));
+ define('__POINTS' , translateComma($content['points']));
define('__MAILID' , bigintval(REQUEST_GET('d')));
define('__RANK_ROWS', BONUS_MAKE_RANK_ROWS(bigintval(REQUEST_GET('d')), $t, bigintval(REQUEST_GET('uid'))));
LOAD_TEMPLATE('show_bonus');
// 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... ;-)