From 7aa1a4862bb840079214467d6b1b6e8b75c8dab1 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 5 Jun 2012 19:46:30 +0200 Subject: [PATCH] Added controller logging --- .../install/files/lib/system/session/SessionHandler.class.php | 4 +++- wcfsetup/setup/db/install.sql | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 3bdeecca8f..1b06611b7f 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -4,6 +4,7 @@ use wcf\data\user\group\UserGroup; use wcf\data\user\User; use wcf\system\cache\CacheHandler; use wcf\system\exception\PermissionDeniedException; +use wcf\system\request\RequestHandler; use wcf\system\user\authentication\UserAuthenticationFactory; use wcf\system\user\storage\UserStorageHandler; use wcf\system\SingletonFactory; @@ -512,7 +513,8 @@ class SessionHandler extends SingletonFactory { 'requestURI' => $this->requestURI, 'requestMethod' => $this->requestMethod, 'lastActivityTime' => TIME_NOW, - 'packageID' => PACKAGE_ID + 'packageID' => PACKAGE_ID, + 'controller' => RequestHandler::getInstance()->getActiveRequest()->getClassName() ); if ($this->variablesChanged) { $data['sessionVariables'] = serialize($this->variables); diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 771ff418c3..30c71b2f5b 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -22,6 +22,7 @@ CREATE TABLE wcf1_acp_session ( lastActivityTime INT(10) NOT NULL DEFAULT 0, requestURI VARCHAR(255) NOT NULL DEFAULT '', requestMethod VARCHAR(4) NOT NULL DEFAULT '', + controller VARCHAR(255) NOT NULL DEFAULT '', username VARCHAR(255) NOT NULL DEFAULT '', sessionVariables MEDIUMTEXT, KEY sessionID (sessionID, packageID) @@ -512,6 +513,7 @@ CREATE TABLE wcf1_session ( lastActivityTime INT(10) NOT NULL DEFAULT 0, requestURI VARCHAR(255) NOT NULL DEFAULT '', requestMethod VARCHAR(4) NOT NULL DEFAULT '', + controller VARCHAR(255) NOT NULL DEFAULT '', username VARCHAR(255) NOT NULL DEFAULT '', sessionVariables MEDIUMTEXT, spiderID INT(10) NOT NULL DEFAULT 0, -- 2.20.1