X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-surfbar_stats.php;h=daf8f50e9c900e01315e57005017ec398348d3b9;hb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;hp=4877fbc2cb29e9874758de8f08ba1bec95038dd6;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/modules/admin/what-surfbar_stats.php b/inc/modules/admin/what-surfbar_stats.php index 4877fbc2cb..daf8f50e9c 100644 --- a/inc/modules/admin/what-surfbar_stats.php +++ b/inc/modules/admin/what-surfbar_stats.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : URL-Statistiken fuer die Surfbar * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,17 +38,17 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $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); } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Is the 'url_id' set? if (REQUEST_ISSET_GET(('url_id'))) { // Generate general statistics - $result = SQL_QUERY_ESC("SELECT `userid`, `count` AS `total_visits`, UNIX_TIMESTAMP(`last_online`) AS `last_online` + $result = SQL_QUERY_ESC("SELECT `userid`,`count` AS `total_visits`, UNIX_TIMESTAMP(`last_online`) AS `last_online` FROM `{!_MYSQL_PREFIX!}_surfbar_stats` WHERE `url_id`=%s ORDER BY `userid` ASC", @@ -57,7 +57,7 @@ ORDER BY `userid` ASC", // Entries found? if (SQL_NUMROWS($result) > 0) { // Get all rows - $OUT = ""; $SW = 2; $cnt = 0; $visits = 0; + $OUT = ''; $SW = 2; $cnt = 0; $visits = 0; while ($content = SQL_FETCHARRAY($result)) { // Count totals $visits += $content['total_visits']; @@ -85,7 +85,7 @@ ORDER BY `userid` ASC", LOAD_TEMPLATE("admin_surfbar_url_stats", false, $content); } else { // No statistics so far - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_NO_URL_STATS')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_URL_STATS')); } } else { // Generate general statistics @@ -97,7 +97,7 @@ ORDER BY `userid` ASC", __FILE__, __LINE__); // Entries found? if (SQL_NUMROWS($result) > 0) { // Get all rows - $OUT = ""; $SW = 2; $urls = 0; $visits = 0; + $OUT = ''; $SW = 2; $urls = 0; $visits = 0; while ($content = SQL_FETCHARRAY($result)) { // Count totals $urls += $content['visited_urls']; @@ -126,7 +126,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, getMessage('ADMIN_SURFBAR_NO_STATS')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_STATS')); } }