X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-top10.php;h=569721e6d7875938a7dbfadcb3d407fab3bef054;hb=b8aa17b98b99c27eafbdca0fa090bae63527da9a;hp=896a8781ca985d107012954ddf31d87e19fed203;hpb=a090e351c49fe021fb3064325694da03402332e0;p=mailer.git diff --git a/inc/modules/guest/what-top10.php b/inc/modules/guest/what-top10.php index 896a8781ca..569721e6d7 100644 --- a/inc/modules/guest/what-top10.php +++ b/inc/modules/guest/what-top10.php @@ -38,10 +38,10 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif ((!EXT_IS_ACTIVE('top10')) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'top10'); + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('top10')); return; } @@ -60,12 +60,12 @@ WHERE ORDER BY total_logins DESC LIMIT %s", - array(getConfig('top10_max')), __FILE__, __LINE__); +array(getConfig('top10_max')), __FILE__, __LINE__); $OUT = ''; $SW = 2; $cnt = 1; while ($content = SQL_FETCHARRAY($result)) { // Init nickname - $content['nickname'] = "---"; + $content['nickname'] = '---'; // Get nickname if (EXT_IS_ACTIVE('nickname')) $content['nickname'] = NICKNAME_GET_NICK($content['userid']); @@ -78,8 +78,8 @@ while ($content = SQL_FETCHARRAY($result)) { 'uid' => $content['userid'], 'nick' => $content['nickname'], 'logins' => $content['total_logins'], - 'points' => TRANSLATE_COMMA(GET_TOTAL_DATA($content['userid'], "user_points", "points")), - 'last' => MAKE_DATETIME($content['last_online'], "3"), + 'points' => translateComma(GET_TOTAL_DATA($content['userid'], 'user_points', 'points')), + 'last' => generateDateTime($content['last_online'], '3'), ); // Load row template @@ -99,7 +99,7 @@ if ($cnt < getConfig('top10_max')) { ); // Load row template - $OUT .= LOAD_TEMPLATE("guest_top10_empty5", true, $content); + $OUT .= LOAD_TEMPLATE('guest_top10_empty5', true, $content); $SW = 3 - $SW; } // END - for } // END - if @@ -131,12 +131,12 @@ ORDER BY tpoints DESC, d.last_online DESC LIMIT %s", - array(getConfig('top10_max')), __FILE__, __LINE__); +array(getConfig('top10_max')), __FILE__, __LINE__); $OUT = ''; $SW = 2; $cnt = 1; while ($content = SQL_FETCHARRAY($result)) { // Init nickname - $content['nickname'] = "---"; + $content['nickname'] = '---'; // Get nickname if (EXT_IS_ACTIVE('nickname')) $content['nickname'] = NICKNAME_GET_NICK($content['userid']); @@ -148,12 +148,12 @@ while ($content = SQL_FETCHARRAY($result)) { 'cnt' => $cnt, 'uid' => $content['userid'], 'nick' => $content['nickname'], - 'points' => TRANSLATE_COMMA($content['points']), - 'last' => MAKE_DATETIME($content['last_online'], "3") + 'points' => translateComma($content['points']), + 'last' => generateDateTime($content['last_online'], '3') ); // Load row template - $OUT .= LOAD_TEMPLATE("guest_top10_row_earner", true, $content); + $OUT .= LOAD_TEMPLATE('guest_top10_row_earner', true, $content); // Switch colors and count one up $SW = 3 - $SW; $cnt++; @@ -169,7 +169,7 @@ if ($cnt < getConfig('top10_max')) { ); // Load row template - $OUT .= LOAD_TEMPLATE("guest_top10_empty4", true, $content); + $OUT .= LOAD_TEMPLATE('guest_top10_empty4', true, $content); $SW = 3 - $SW; } // END - for } // END - if @@ -201,12 +201,12 @@ ORDER BY refs DESC, d.last_online DESC LIMIT %s", - array(getConfig('top10_max')), __FILE__, __LINE__); +array(getConfig('top10_max')), __FILE__, __LINE__); $OUT = ''; $SW = 2; $cnt = 1; while ($content = SQL_FETCHARRAY($result)) { // Init nickname - $content['nickname'] = "---"; + $content['nickname'] = '---'; // Get nickname if (EXT_IS_ACTIVE('nickname')) $content['nickname'] = NICKNAME_GET_NICK($content['userid']); @@ -219,8 +219,8 @@ while ($content = SQL_FETCHARRAY($result)) { 'uid' => $content['userid'], 'refs' => $content['refs'], 'nick' => $content['nickname'], - 'points' => TRANSLATE_COMMA(GET_TOTAL_DATA($content['userid'], "user_points", "points")), - 'last' => MAKE_DATETIME($content['last_online'], "3") + 'points' => translateComma(GET_TOTAL_DATA($content['userid'], 'user_points', 'points')), + 'last' => generateDateTime($content['last_online'], '3') ); // Load row template