uawdijnntqw1x1x1
IP : 3.145.169.176
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
/
admin.2
/
..
/
quran
/
..
/
catalog.1
/
controller
/
api
/
sale
/
coupon.php
/
/
<?php namespace Opencart\Catalog\Controller\Api\Sale; class Coupon extends \Opencart\System\Engine\Controller { public function index(): void { $this->load->language('api/sale/coupon'); $json = []; if (isset($this->request->post['coupon'])) { $coupon = (string)$this->request->post['coupon']; } else { $coupon = ''; } if ($coupon) { $this->load->model('marketing/coupon'); $coupon_info = $this->model_marketing_coupon->getCoupon($coupon); if (!$coupon_info) { $json['error'] = $this->language->get('error_coupon'); } } if (!$json) { if ($coupon) { $this->session->data['coupon'] = $coupon; $json['success'] = $this->language->get('text_success'); } else { unset($this->session->data['coupon']); $json['success'] = $this->language->get('text_remove'); } } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } }
/home/sudancam/public_html/0d544/../../.trash/admin.2/../quran/../catalog.1/controller/api/sale/coupon.php