]> git.mxchange.org Git - mailer.git/blobdiff - show_bonus.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / show_bonus.php
index c41dc5b5cd2bd73602232b0d9d2db76dcb24955b..019e0c9e50934639d8528c64830dce0a37e3c49c 100644 (file)
@@ -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... ;-)