X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fstats-functions.php;h=0305da77eff0856037b529e04c44cb07142ebb34;hb=987bf5583fce2696a1c6b2b72b123747b4cd4536;hp=db168776c5361ae58b34e8f73d957cf28af7e121;hpb=bb70f91b5535a0e21dba8098ba8f9af83ada9073;p=mailer.git diff --git a/inc/stats-functions.php b/inc/stats-functions.php index db168776c5..0305da77ef 100644 --- a/inc/stats-functions.php +++ b/inc/stats-functions.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Auto-Loeschung von veralteten Mail-Links * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -158,11 +153,11 @@ function writeStatsTable () { if (!isSqlLinkUp()) return FALSE; // Empty the table first - sqlQueryEscaped("TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`", + sqlQueryEscaped('TRUNCATE `{?_MYSQL_PREFIX?}_stats_%s`', array(generateDateTime(time(), '6')), __FUNCTION__, __LINE__); // Begin the SQL command - $sql = sprintf("REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ", + $sql = sprintf('REPLACE INTO `{?_MYSQL_PREFIX?}_stats_%s` (`stats_entry`, `stats_value`) VALUES ', generateDateTime(time(), '6')); // Add all entries to the final query @@ -177,7 +172,7 @@ function writeStatsTable () { // Filter for flushing statistics function FILTER_FLUSH_STATS () { // Now do we have stats? - if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifInternalStatsEnabled())) { + if ((isset($GLOBALS['stats'])) && (!isInstaller()) && (ifInternalStatsEnabled())) { // Write statistics to temporary table writeStatsTable();