uawdijnntqw1x1x1
IP : 18.222.20.3
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,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
wp-pagenavi
/
..
/
litespeed
/
..
/
.
/
catalog.1
/
controller
/
common
/
cookie.php
/
/
<?php namespace Opencart\Catalog\Controller\Common; class Cookie extends \Opencart\System\Engine\Controller { public function index(): string { if ($this->config->get('config_cookie_id') && !isset($this->request->cookie['policy'])) { $this->load->model('catalog/information'); $information_info = $this->model_catalog_information->getInformation($this->config->get('config_cookie_id')); if ($information_info) { $this->load->language('common/cookie'); $data['text_cookie'] = sprintf($this->language->get('text_cookie'), $this->url->link('information/information|info', 'language=' . $this->config->get('config_language') . '&information_id=' . $information_info['information_id'])); $data['agree'] = $this->url->link('common/cookie|confirm', 'language=' . $this->config->get('config_language') . '&agree=1'); $data['disagree'] = $this->url->link('common/cookie|confirm', 'language=' . $this->config->get('config_language') . '&agree=0'); return $this->load->view('common/cookie', $data); } } return ''; } public function confirm(): void { $json = []; if ($this->config->get('config_cookie_id') && !isset($this->request->cookie['policy'])) { $this->load->language('common/cookie'); if (isset($this->request->get['agree'])) { $agree = (int)$this->request->get['agree']; } else { $agree = 0; } $option = [ 'expires' => time() + 60 * 60 * 24 * 365, 'path' => !empty($_SERVER['PHP_SELF']) ? dirname($_SERVER['PHP_SELF']) . '/' : '', 'SameSite' => $this->config->get('session_samesite') ]; setcookie('policy', $agree, $option); $json['success'] = $this->language->get('text_success'); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } }
/home/sudancam/.trash/wp-pagenavi/../litespeed/.././catalog.1/controller/common/cookie.php