X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-surfbar_stats.php;h=2b5c8baabb0cdbcd1cbf598b30e391d22f779690;hp=c13139ea3c13338a41bfa0ed8cc5455bb01c786f;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86 diff --git a/inc/modules/admin/what-surfbar_stats.php b/inc/modules/admin/what-surfbar_stats.php index c13139ea3c..2b5c8baabb 100644 --- a/inc/modules/admin/what-surfbar_stats.php +++ b/inc/modules/admin/what-surfbar_stats.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__); // Is the 'url_id' set? if (isGetRequestElementSet('url_id')) { // Generate general statistics - $result = SQL_QUERY_ESC("SELECT + $result = sqlQueryEscaped("SELECT `stats_userid`, `stats_count` AS `total_visits`, UNIX_TIMESTAMP(`stats_last_surfed`) AS `last_surfed` @@ -59,10 +59,10 @@ ORDER BY array(bigintval(getRequestElement('url_id'))), __FILE__, __LINE__); // Entries found? - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNumRows($result)) { // Get all rows $OUT = ''; $count = '0'; $visits = '0'; - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Count totals $visits += $content['total_visits']; @@ -71,7 +71,7 @@ ORDER BY // Load row template $OUT .= loadTemplate('admin_surfbar_url_stats_row', TRUE, $content); - $count++;; + $count++; } // END - while // Prepare content @@ -90,7 +90,7 @@ ORDER BY } } else { // Generate general statistics - $result = SQL_QUERY("SELECT + $result = sqlQuery("SELECT `stats_userid`, COUNT(`stats_url_id`) AS `visited_urls`, SUM(`stats_count`) AS `total_visits` @@ -102,10 +102,10 @@ ORDER BY `stats_userid` ASC", __FILE__, __LINE__); // Entries found? - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNumRows($result)) { // Get all rows $OUT = ''; $urlArray = '0'; $visits = '0'; - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Count totals $urlArray += $content['visited_urls']; $visits += $content['total_visits']; @@ -131,7 +131,7 @@ ORDER BY } // Free result -SQL_FREERESULT($result); +sqlFreeResult($result); // [EOF] ?>