uawdijnntqw1x1x1
IP : 3.144.43.1
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
0d544
/
..
/
..
/
.trash
/
catalog.1
/
controller
/
.
/
.
/
startup
/
session.php
/
/
<?php namespace Opencart\Catalog\Controller\Startup; class Session extends \Opencart\System\Engine\Controller { public function index(): void { $session = new \Opencart\System\Library\Session($this->config->get('session_engine'), $this->registry); $this->registry->set('session', $session); if (isset($this->request->get['route']) && substr((string)$this->request->get['route'], 0, 4) == 'api/' && isset($this->request->get['api_token'])) { $this->load->model('setting/api'); $this->model_setting_api->cleanSessions(); // Make sure the IP is allowed $api_info = $this->model_setting_api->getApiByToken($this->request->get['api_token']); if ($api_info) { $this->session->start($this->request->get['api_token']); $this->model_setting_api->updateSession($api_info['api_session_id']); } return; } /* We are adding the session cookie outside of the session class as I believe PHP messed up in a big way handling sessions. Why in the hell is it so hard to have more than one concurrent session using cookies! Is it not better to have multiple cookies when accessing parts of the system that requires different cookie sessions for security reasons. */ // Update the session lifetime if ($this->config->get('config_session_expire')) { $this->config->set('session_expire', $this->config->get('config_session_expire')); } if (isset($this->request->cookie[$this->config->get('session_name')])) { $session_id = $this->request->cookie[$this->config->get('session_name')]; } else { $session_id = ''; } $session->start($session_id); $option = [ 'expires' => time() + (int)$this->config->get('config_session_expire'), 'path' => !empty($_SERVER['PHP_SELF']) ? dirname($_SERVER['PHP_SELF']) . '/' : '', 'secure' => $this->request->server['HTTPS'], 'httponly' => false, 'SameSite' => $this->config->get('session_samesite') ]; $this->response->addHeader('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); setcookie($this->config->get('session_name'), $session->getId(), $option); } }
/home/sudancam/public_html/0d544/../../.trash/catalog.1/controller/././startup/session.php