X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=show_bonus.php;h=99d7cc431057c6386a57b3168ec2b07f9998d7ed;hp=c41dc5b5cd2bd73602232b0d9d2db76dcb24955b;hb=05e9ddd952a47d42b9970a9d2afef20d77d3aecf;hpb=a090e351c49fe021fb3064325694da03402332e0 diff --git a/show_bonus.php b/show_bonus.php index c41dc5b5cd..99d7cc4310 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -36,7 +36,7 @@ * 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" @@ -57,7 +57,7 @@ REDIRECT_ON_UNINSTALLED_EXTENSION('bonus'); // 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 @@ -93,11 +93,11 @@ LIMIT 1", $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')))); @@ -135,10 +135,10 @@ LIMIT 1", 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... ;-)