1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

A few comments, correct last change

This commit is contained in:
e107steved 2007-01-30 21:43:41 +00:00
parent 6e1117d907
commit 3975dc475a

View File

@ -11,19 +11,18 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/log/consolidate.php,v $
| $Revision: 1.7 $
| $Date: 2007-01-30 21:05:46 $
| $Revision: 1.8 $
| $Date: 2007-01-30 21:43:27 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
/* first thing to do is check if the log file is out of date ... */
$pathtologs = e_PLUGIN."log/logs/";
$date = date("z.Y", time());
$yesterday = date("z.Y",(time() - 86400)); // This makes sure year wraps round OK
$date2 = date("Y-m-j", (time() -86400)); // Yesterday's date for the database summary
$date3 = date("Y-m");
$date3 = date("Y-m"); // Current month's date for monthly summary
$pfileprev = "logp_".$yesterday.".php"; // Yesterday's log file
$pfile = "logp_".$date.".php"; // Today's log file
@ -31,8 +30,7 @@ $ifileprev = "logi_".$yesterday.".php";
$ifile = "logi_".$date.".php";
if(file_exists($pathtologs.$pfile))
{
/* log file is up to date, no consolidation required */
{ /* log file is up to date, no consolidation required */
return;
}
else if(!file_exists($pathtologs.$pfileprev))
@ -55,7 +53,7 @@ if($sql -> db_Select("logstats", "*", "log_id='statBrowser' OR log_id='statOs' O
$infoArray = array();
while($row = $sql -> db_Fetch())
{
$row[1] = unserialize($row[2]);
$$row[1] = unserialize($row[2]); // $row[1] is the stats type - save in a variable
if($row[1] == "statUnique") $statUnique = $row[2];
if($row[1] == "statTotal") $statTotal = $row[2];
}