mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
feat: access log config setting and a real get-post-cookie logger
This is a very naive and primitive logger of user requests to the game. To be used on systems where access to webserver's log data is not available (especially if the webserver doesn't store POST data as well).
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
if (!function_exists('mysqli_result')) {
|
||||
function mysqli_result($res, $row, $field=0) {
|
||||
$res->data_seek($row);
|
||||
@@ -27,6 +29,8 @@ if (!function_exists('mysqli_result')) {
|
||||
}
|
||||
|
||||
include("GameEngine/Village.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
|
||||
Reference in New Issue
Block a user