X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-active.php;h=1ce76057be6581a207f1300a45fb97290172a299;hp=10d5537eb303e539c8ed9f23a4ca9efe93aad500;hb=aa63aed07428a99ea09002c8d072990677700080;hpb=a090e351c49fe021fb3064325694da03402332e0 diff --git a/inc/modules/guest/what-active.php b/inc/modules/guest/what-active.php index 10d5537eb3..1ce76057be 100644 --- a/inc/modules/guest/what-active.php +++ b/inc/modules/guest/what-active.php @@ -38,7 +38,7 @@ // 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('active')) && (!IS_ADMIN())) { addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'active'); @@ -66,7 +66,7 @@ if (SQL_NUMROWS($result) > 0) { // At least one member was online so let's load them all $OUT = ''; $SW = 2; while (list($uid, $nick, $last) = SQL_FETCHROW($result)) { - $nick2 = "---"; + $nick2 = '---'; if (($nick != $uid) && (!empty($nick))) $nick2 = $nick; // Transfer data to array @@ -74,26 +74,26 @@ if (SQL_NUMROWS($result) > 0) { 'sw' => $SW, 'uid' => $uid, 'nick' => $nick2, - 'points' => TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points") - GET_TOTAL_DATA($uid, "user_data", "used_points")), - 'last' => MAKE_DATETIME($last, "2"), + 'points' => TRANSLATE_COMMA(GET_TOTAL_DATA($uid, 'user_points', 'points') - GET_TOTAL_DATA($uid, 'user_data', 'used_points')), + 'last' => MAKE_DATETIME($last, '2'), ); // Load template - $OUT .= LOAD_TEMPLATE("guest_active_row", true, $content); + $OUT .= LOAD_TEMPLATE('guest_active_row', true, $content); // Switch colors $SW = 3 - $SW; } } else { // No member was online today! :-( - $OUT = LOAD_TEMPLATE("guest_active_none_row", true); + $OUT = LOAD_TEMPLATE('guest_active_none_row', true); } // Remember output in constant define('__ACTIVE_ROWS', $OUT); // Load template -LOAD_TEMPLATE("guest_active_table"); +LOAD_TEMPLATE('guest_active_table'); // ?>