Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 18.117.104.4
54 Domain
7.3.33
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
analytics /
core /
Session /
[ HOME SHELL ]
Name
Size
Permission
Action
SaveHandler
[ DIR ]
drwxr-xr-x
SessionAuth.php
7.28
KB
-rw-r--r--
SessionFingerprint.php
5.48
KB
-rw-r--r--
SessionInitializer.php
2.78
KB
-rw-r--r--
SessionNamespace.php
746
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SessionInitializer.php
<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Session; use Exception; use Piwik\Auth as AuthInterface; use Piwik\AuthResult; use Piwik\Piwik; use Piwik\Session; /** * Initializes authenticated sessions using an Auth implementation. */ class SessionInitializer { /** * Authenticates the user and, if successful, initializes an authenticated session. * * @param \Piwik\Auth $auth The Auth implementation to use. * @throws Exception If authentication fails or the user is not allowed to login for some reason. */ public function initSession(AuthInterface $auth) { $this->regenerateSessionId(); $authResult = $this->doAuthenticateSession($auth); if (!$authResult->wasAuthenticationSuccessful()) { Piwik::postEvent('Login.authenticate.failed', array($auth->getLogin())); $this->processFailedSession(); } else { Piwik::postEvent('Login.authenticate.successful', array($auth->getLogin())); $this->processSuccessfulSession($authResult); } } /** * Authenticates the user. * * Derived classes can override this method to customize authentication logic or impose * extra requirements on the user trying to login. * * @param AuthInterface $auth The Auth implementation to use when authenticating. * @return AuthResult */ protected function doAuthenticateSession(AuthInterface $auth) { Piwik::postEvent( 'Login.authenticate', array( $auth->getLogin(), ) ); return $auth->authenticate(); } /** * Executed when the session could not authenticate. * * @throws Exception always. */ protected function processFailedSession() { throw new Exception(Piwik::translate('Login_LoginPasswordNotCorrect')); } /** * Executed when the session was successfully authenticated. * * @param AuthResult $authResult The successful authentication result. */ protected function processSuccessfulSession(AuthResult $authResult) { $sessionIdentifier = new SessionFingerprint(); $sessionIdentifier->initialize($authResult->getIdentity(), $authResult->getTokenAuth(), $this->isRemembered()); /** * @ignore */ Piwik::postEvent('Login.authenticate.processSuccessfulSession.end', array($authResult->getIdentity())); } protected function regenerateSessionId() { Session::regenerateId(); } private function isRemembered() { $cookieParams = session_get_cookie_params(); return $cookieParams['lifetime'] > 0; } }
Close