uawdijnntqw1x1x1
IP : 18.118.252.232
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
/
..
/
.trash
/
catalog.1
/
..
/
catalog.1
/
controller
/
common
/
language.php
/
/
<?php namespace Opencart\Catalog\Controller\Common; class Language extends \Opencart\System\Engine\Controller { public function index(): string { $this->load->language('common/language'); $url_data = $this->request->get; if (isset($url_data['route'])) { $route = $url_data['route']; } else { $route = $this->config->get('action_default'); } unset($url_data['route']); unset($url_data['_route_']); unset($url_data['language']); $url = ''; if ($url_data) { $url = '&' . urldecode(http_build_query($url_data)); } $data['languages'] = []; $this->load->model('localisation/language'); $results = $this->model_localisation_language->getLanguages(); foreach ($results as $result) { $data['languages'][] = [ 'name' => $result['name'], 'code' => $result['code'], 'href' => $this->url->link('common/language|save', 'language=' . $this->config->get('config_language') . '&code=' . $result['code'] . '&redirect=' . urlencode(str_replace('&', '&', $this->url->link($route, 'language=' . $result['code'] . $url)))) ]; } $data['code'] = $this->config->get('config_language'); return $this->load->view('common/language', $data); } public function save(): void { if (isset($this->request->get['code'])) { $code = $this->request->get['code']; } else { $code = $this->config->get('config_language'); } if (isset($this->request->get['redirect'])) { $redirect = htmlspecialchars_decode($this->request->get['redirect'], ENT_COMPAT); } else { $redirect = ''; } if ($redirect && substr($redirect, 0, strlen($this->config->get('config_url'))) == $this->config->get('config_url')) { $this->response->redirect($redirect); } else { $this->response->redirect($this->url->link($this->config->get('action_default'), 'language=' . $code)); } } }
/home/sudancam/public_html/../.trash/catalog.1/../catalog.1/controller/common/language.php