mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixes #1736 - Renamed constant which was already in use by PHP.
This commit is contained in:
@@ -29,18 +29,18 @@ require_once("../../class2.php"); // More secure to include it.
|
|||||||
header('Cache-Control: no-cache, must-revalidate'); // See if this discourages browser caching
|
header('Cache-Control: no-cache, must-revalidate'); // See if this discourages browser caching
|
||||||
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
|
||||||
|
|
||||||
define('LOG_DEBUG', false);
|
define('LOGSTATS_DEBUG', false);
|
||||||
|
|
||||||
// @example url: e107_plugins/log/log.php?lv=cmVmZXJlcj1odHRwJTNBLy9sb2NhbGhvc3QlM0E4MDgwL2UxMDdfMi4wL3N0YXRzJmNvbG91cj0yNCZlc2VsZj1odHRwJTNBLy9sb2NhbGhvc3QlM0E4MDgwL2UxMDdfMi4wL2UxMDdfcGx1Z2lucy9sb2cvc3RhdHMucGhwJTNGMiZyZXM9MTkyMHgxMjAw
|
// @example url: e107_plugins/log/log.php?lv=cmVmZXJlcj1odHRwJTNBLy9sb2NhbGhvc3QlM0E4MDgwL2UxMDdfMi4wL3N0YXRzJmNvbG91cj0yNCZlc2VsZj1odHRwJTNBLy9sb2NhbGhvc3QlM0E4MDgwL2UxMDdfMi4wL2UxMDdfcGx1Z2lucy9sb2cvc3RhdHMucGhwJTNGMiZyZXM9MTkyMHgxMjAw
|
||||||
|
|
||||||
if(LOG_DEBUG == true)
|
if(LOGSTATS_DEBUG === true)
|
||||||
{
|
{
|
||||||
echo "Debug is Active";
|
echo "Debug is Active";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vartrue($pref['statActivate']))
|
if (!vartrue($pref['statActivate']))
|
||||||
{
|
{
|
||||||
if(LOG_DEBUG == true)
|
if(LOGSTATS_DEBUG === true)
|
||||||
{
|
{
|
||||||
echo "Stats log is inactive";
|
echo "Stats log is inactive";
|
||||||
}
|
}
|
||||||
@@ -49,8 +49,9 @@ if (!vartrue($pref['statActivate']))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//print_r(base64_decode($_GET['lv']));
|
//print_r(base64_decode($_GET['lv']));
|
||||||
define('log_INIT', TRUE);
|
define('LOGSTATS_INIT', true);
|
||||||
|
|
||||||
// Array of page names which should have individual query values recorded.
|
// Array of page names which should have individual query values recorded.
|
||||||
// The top level array index is the page name.
|
// The top level array index is the page name.
|
||||||
@@ -211,14 +212,14 @@ $lgc = new logConsolidate;
|
|||||||
|
|
||||||
if(!$pageName = $lgc->getPageKey($self,false,$err_code,e_LAN))
|
if(!$pageName = $lgc->getPageKey($self,false,$err_code,e_LAN))
|
||||||
{
|
{
|
||||||
if(LOG_DEBUG == true)
|
if(LOGSTATS_DEBUG == true)
|
||||||
{
|
{
|
||||||
echo 'pageName was empty';
|
echo 'pageName was empty';
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(LOG_DEBUG == true)
|
if(LOGSTATS_DEBUG == true)
|
||||||
{
|
{
|
||||||
echo "<br />File: ".$logPfile;
|
echo "<br />File: ".$logPfile;
|
||||||
}
|
}
|
||||||
@@ -301,7 +302,7 @@ if ($p_handle)
|
|||||||
fclose($p_handle);
|
fclose($p_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(LOG_DEBUG == true)
|
if(LOGSTATS_DEBUG == true)
|
||||||
{
|
{
|
||||||
echo '<br />Script Completed';
|
echo '<br />Script Completed';
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('log_INIT')) { exit; }
|
if (!defined('LOGSTATS_INIT')) { exit; }
|
||||||
|
|
||||||
$logIfile = e_LOG."logi_{$date}.php";
|
$logIfile = e_LOG."logi_{$date}.php";
|
||||||
$i_handle = fopen($logIfile, 'r+');
|
$i_handle = fopen($logIfile, 'r+');
|
||||||
|
Reference in New Issue
Block a user