PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/youronlinestore.kerihosting.com/admin/controller/tool/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/youronlinestore.kerihosting.com/admin/controller/tool/error_log.php |
<?php class ControllerToolErrorLog extends Controller { private $error = array(); public function index() { $this->language->load('tool/error_log'); $this->document->setTitle($this->language->get('heading_title')); $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['button_clear'] = $this->language->get('button_clear'); if (isset($this->session->data['success'])) { $this->data['success'] = $this->session->data['success']; unset($this->session->data['success']); } else { $this->data['success'] = ''; } $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL'), 'separator' => ' :: ' ); $this->data['clear'] = $this->url->link('tool/error_log/clear', 'token=' . $this->session->data['token'], 'SSL'); $file = DIR_LOGS . $this->config->get('config_error_filename'); if (file_exists($file)) { $this->data['log'] = file_get_contents($file, FILE_USE_INCLUDE_PATH, null); } else { $this->data['log'] = ''; } $this->template = 'tool/error_log.tpl'; $this->children = array( 'common/header', 'common/footer' ); $this->response->setOutput($this->render()); } public function clear() { $this->language->load('tool/error_log'); $file = DIR_LOGS . $this->config->get('config_error_filename'); $handle = fopen($file, 'w+'); fclose($handle); $this->session->data['success'] = $this->language->get('text_success'); $this->redirect($this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL')); } } ?>