]> git.mxchange.org Git - mailer.git/blobdiff - show_bonus.php
Comment removed
[mailer.git] / show_bonus.php
index c41dc5b5cd2bd73602232b0d9d2db76dcb24955b..99d7cc431057c6386a57b3168ec2b07f9998d7ed 100644 (file)
@@ -36,7 +36,7 @@
  * MA  02110-1301  USA                                                  *
  ************************************************************************/
 
  * 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"
 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
 // 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
 
        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
                                $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('__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'))));
 
                                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_TEMPLATE('show_bonus');
 
        // Include footer
-       LOAD_INC('inc/footer.php');
+       loadInclude('inc/footer.php');
 } else {
        // You have to install first!
 } else {
        // You have to install first!
-       LOAD_URL('install.php');
+       redirectToUrl('install.php');
 }
 
 // Really all done here... ;-)
 }
 
 // Really all done here... ;-)