]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-usr_online.php
More double-quotes to single-quotes
[mailer.git] / inc / modules / admin / what-usr_online.php
index 159a43e123a82bfec0ba1a63983853862317731f..70e82b39d4d0de7f2f6fd287aca96c2943d0d82c 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -55,12 +55,12 @@ if (isExtensionActive('online')) {
        loadTemplate('admin_mini_online', FALSE, $content);
 
        // Check for online users
-       $result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
+       $result = sqlQuery("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
                __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // List all online users
                $OUT = '';
-               while ($row = SQL_FETCHARRAY($result)) {
+               while ($row = sqlFetchArray($result)) {
                        if ($row['is_admin'] == 'Y') {
                                // Is an administrator
                                $row['userid'] = '{--_IS_ADMIN--}';
@@ -80,7 +80,7 @@ if (isExtensionActive('online')) {
                } // END - while
 
                // Free memory
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
 
                // Remember rows and fancy time in array
                $content['rows']           = $OUT;