Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-usr_online.php
index 321d1d3d98e24fa9f08e84bded77a7d479ddc0e1..70e82b39d4d0de7f2f6fd287aca96c2943d0d82c 100644 (file)
@@ -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;