uawdijnntqw1x1x1
IP : 3.143.204.127
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
/
etc
/
..
/
var
/
..
/
.trash
/
post-ratings.2
/
..
/
catalog.2
/
controller
/
account
/
forgotten.php
/
/
<?php class ControllerAccountForgotten extends Controller { private $error = array(); public function index() { if ($this->customer->isLogged()) { $this->response->redirect($this->url->link('account/account', '', true)); } $this->load->language('account/forgotten'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('account/customer'); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { $this->model_account_customer->editCode($this->request->post['email'], token(40)); $this->session->data['success'] = $this->language->get('text_success'); $this->response->redirect($this->url->link('account/login', '', true)); } $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_account'), 'href' => $this->url->link('account/account', '', true) ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_forgotten'), 'href' => $this->url->link('account/forgotten', '', true) ); if (isset($this->error['warning'])) { $data['error_warning'] = $this->error['warning']; } else { $data['error_warning'] = ''; } $data['action'] = $this->url->link('account/forgotten', '', true); $data['back'] = $this->url->link('account/login', '', true); if (isset($this->request->post['email'])) { $data['email'] = $this->request->post['email']; } else { $data['email'] = ''; } $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('account/forgotten', $data)); } protected function validate() { if (!isset($this->request->post['email'])) { $this->error['warning'] = $this->language->get('error_email'); } elseif (!$this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) { $this->error['warning'] = $this->language->get('error_email'); } // Check if customer has been approved. $customer_info = $this->model_account_customer->getCustomerByEmail($this->request->post['email']); if ($customer_info && !$customer_info['status']) { $this->error['warning'] = $this->language->get('error_approved'); } return !$this->error; } }
/home/sudancam/etc/../var/../.trash/post-ratings.2/../catalog.2/controller/account/forgotten.php