Some cleanup in counting users.
This commit is contained in:
parent
d8d2509ed2
commit
161cd394b5
|
@ -1,9 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
* Add 'rsactive' to differentiate rslight sessions from
|
||||||
|
* sessions from other applications
|
||||||
|
*/
|
||||||
|
$_SESSION['rsactive'] = true;
|
||||||
$client_device = get_client_user_agent_info();
|
$client_device = get_client_user_agent_info();
|
||||||
if ($client_device != "bot") {
|
|
||||||
$_SESSION['rsactive'] = true;
|
// throttle_hits MUST be called before any data is sent
|
||||||
}
|
|
||||||
throttle_hits($client_device);
|
throttle_hits($client_device);
|
||||||
write_access_log();
|
write_access_log();
|
||||||
|
|
||||||
|
|
|
@ -1754,7 +1754,9 @@ function throttle_hits($client_device)
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
unset($_SESSION['throttled']);
|
if (isset($_SESSION['throttled'])) {
|
||||||
|
unset($_SESSION['throttled']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_client_user_agent_info()
|
function get_client_user_agent_info()
|
||||||
|
|
|
@ -5,7 +5,6 @@ $_SESSION['group'] = $_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
include "config.inc.php";
|
include "config.inc.php";
|
||||||
include ("$file_newsportal");
|
include ("$file_newsportal");
|
||||||
include "auth.inc";
|
|
||||||
|
|
||||||
// register parameters
|
// register parameters
|
||||||
$group = _rawurldecode($_REQUEST["group"]);
|
$group = _rawurldecode($_REQUEST["group"]);
|
||||||
|
|
Loading…
Reference in New Issue