1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-11 07:59:44 +01:00

Corrected log-file path

This commit is contained in:
CaMer0n 2012-06-17 22:07:22 +00:00
parent 6c4035337c
commit 0c8af9d8be
3 changed files with 12 additions and 7 deletions

View File

@ -732,7 +732,8 @@ function rempage()
{
global $sql, $ns;
$logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
$logfile = e_LOG."logp_".date("z.Y", time()).".php";
// $logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
if(is_readable($logfile))
{
require($logfile);
@ -796,8 +797,9 @@ function rempagego()
$sql -> db_Select("logstats", "*", "log_id='pageTotal' ");
$row = $sql -> db_Fetch();
$pageTotal = unserialize($row['log_data']);
$logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
$logfile = e_LOG."logp_".date("z.Y", time()).".php";
// $logfile = e_PLUGIN."log/logs/logp_".date("z.Y", time()).".php";
if(is_readable($logfile))
{
require($logfile);

View File

@ -16,7 +16,8 @@
/* first thing to do is check if the log file is out of date ... */
$pathtologs = e_PLUGIN."log/logs/";
// $pathtologs = e_PLUGIN."log/logs/";
$pathtologs = e_LOG;
$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
@ -294,7 +295,7 @@ function createLog($pathtologs)
global $statTotal, $statUnique, $pfile, $ifile;
if(!is_writable($pathtologs))
{
echo "Log directory is not writable - please CHMOD ".e_PLUGIN."log/logs to 777";
echo "Log directory is not writable - please CHMOD ".e_LOG." to 777";
echo '<br />Path to logs: '.$pathtologs;
return FALSE;
}

View File

@ -925,12 +925,14 @@ class siteStats
$sql = e107::getDB();
/* get today's logfile ... */
$logfile = e_PLUGIN.'log/logs/logp_'.date('z.Y', time()).'.php';
$logfile = e_LOG.'logp_'.date('z.Y', time()).'.php';
// $logfile = e_PLUGIN.'log/logs/logp_'.date('z.Y', time()).'.php';
if(is_readable($logfile))
{
require($logfile);
}
$logfile = e_PLUGIN.'log/logs/logi_'.date('z.Y', time()).'.php';
// $logfile = e_PLUGIN.'log/logs/logi_'.date('z.Y', time()).'.php';
$logfile = e_LOG.'logi_'.date('z.Y', time()).'.php';
if(is_readable($logfile))
{
require($logfile);