uawdijnntqw1x1x1
IP : 18.222.117.112
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
/
public_html
/
0d544
/
..
/
..
/
.trash
/
.
/
catalog
/
..
/
catalog.1
/
controller
/
startup
/
.
/
currency.php
/
/
<?php namespace Opencart\Catalog\Controller\Startup; class Currency extends \Opencart\System\Engine\Controller { public function index(): void { $code = ''; $this->load->model('localisation/currency'); $currencies = $this->model_localisation_currency->getCurrencies(); if (isset($this->session->data['currency'])) { $code = $this->session->data['currency']; } if (isset($this->request->cookie['currency']) && !array_key_exists($code, $currencies)) { $code = $this->request->cookie['currency']; } if (!array_key_exists($code, $currencies)) { $code = $this->config->get('config_currency'); } if (!isset($this->session->data['currency']) || $this->session->data['currency'] != $code) { $this->session->data['currency'] = $code; } // Set a new currency cookie if the code does not match the current one if (!isset($this->request->cookie['currency']) || $this->request->cookie['currency'] != $code) { $option = [ 'expires' => time() + 60 * 60 * 24 * 30, 'path' => '/', 'SameSite' => 'Lax' ]; setcookie('currency', $code, $option); } $this->registry->set('currency', new \Opencart\System\Library\Cart\Currency($this->registry)); } }
/home/sudancam/public_html/0d544/../../.trash/./catalog/../catalog.1/controller/startup/./currency.php