X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-surfbar_stats.php;h=2696de21fae58a7ca0f4ffc0bb2ab0c7fd39ba7a;hb=c47144dd555bbab4acdf9085e4623900dedb0e7c;hp=f9e34b061ad4656faed06d1ebf0585f10e99e710;hpb=7e977ea8d28b05219b02727fcca35150d9c8fcbe;p=mailer.git diff --git a/inc/modules/admin/what-surfbar_stats.php b/inc/modules/admin/what-surfbar_stats.php index f9e34b061a..2696de21fa 100644 --- a/inc/modules/admin/what-surfbar_stats.php +++ b/inc/modules/admin/what-surfbar_stats.php @@ -44,7 +44,7 @@ ADD_DESCR("admin", __FILE__); if (isset($_GET['url_id'])) { // Generate general statistics $result = SQL_QUERY_ESC("SELECT `userid`, `count` AS `total_visits`, UNIX_TIMESTAMP(`last_online`) AS `last_online` -FROM `"._MYSQL_PREFIX."_surfbar_stats` +FROM `{!_MYSQL_PREFIX!}_surfbar_stats` WHERE `url_id`=%s ORDER BY `userid` ASC", array(bigintval($_GET['url_id'])), __FILE__, __LINE__); @@ -80,12 +80,12 @@ ORDER BY `userid` ASC", LOAD_TEMPLATE("admin_surfbar_url_stats", false, $content); } else { // No statistics so far - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_URL_STATS); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_NO_URL_STATS')); } } else { // Generate general statistics $result = SQL_QUERY("SELECT `userid`, COUNT(`url_id`) AS `visited_urls`, SUM(`count`) AS `total_visits` -FROM `"._MYSQL_PREFIX."_surfbar_stats` +FROM `{!_MYSQL_PREFIX!}_surfbar_stats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__); @@ -121,7 +121,7 @@ ORDER BY `userid` ASC", __FILE__, __LINE__); LOAD_TEMPLATE("admin_surfbar_stats", false, $content); } else { // No statistics so far - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_STATS); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_NO_STATS')); } }