uawdijnntqw1x1x1
IP : 3.15.195.87
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
/
api
/
localisation
/
currency.php
/
/
<?php namespace Opencart\Catalog\Controller\Api\Localisation; class Currency extends \Opencart\System\Engine\Controller { public function index(): void { $this->load->language('api/localisation/currency'); $json = []; if (isset($this->request->post['currency'])) { $currency = (string)$this->request->post['currency']; } else { $currency = ''; } $this->load->model('localisation/currency'); $currency_info = $this->model_localisation_currency->getCurrencyByCode($currency); if (!$currency_info) { $json['error'] = $this->language->get('error_currency'); } if (!$json) { $this->session->data['currency'] = $currency; $json['success'] = $this->language->get('text_success'); unset($this->session->data['shipping_methods']); unset($this->session->data['payment_methods']); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } }
/home/sudancam/public_html/0d544/../../.trash/./catalog/../catalog.1/controller/api/localisation/currency.php