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:
Martin Ambrus
2017-10-28 18:59:16 +02:00
parent 133a5126f9
commit f5c3e029b5
44 changed files with 292 additions and 11 deletions
+4
View File
@@ -8,7 +8,11 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
use App\Utils\AccessLogger;
include("GameEngine/Village.php");
AccessLogger::logRequest();
if(isset($_GET['newdid'])){
$_SESSION['wid'] = $_GET['newdid'];
header("Location: ".$_SERVER['PHP_SELF']);