X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-top10.php;h=569721e6d7875938a7dbfadcb3d407fab3bef054;hb=36c3c8b749a88ce05ad0fda81e00047f9cb5433f;hp=9c7464c94e60269f95dc8951a84005581b6bd8bd;hpb=2f0357c7ac9da6c17d361b8e7cb0b1ad09eb85f6;p=mailer.git diff --git a/inc/modules/guest/what-top10.php b/inc/modules/guest/what-top10.php index 9c7464c94e..569721e6d7 100644 --- a/inc/modules/guest/what-top10.php +++ b/inc/modules/guest/what-top10.php @@ -41,7 +41,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif ((!EXT_IS_ACTIVE('top10')) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'top10')); + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('top10')); return; } @@ -60,7 +60,7 @@ 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)) { @@ -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,7 +131,7 @@ 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)) { @@ -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,7 +201,7 @@ 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)) { @@ -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