芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/status.pulsehost.co.uk/app/controllers/StatusPageQr.php
status_pages->status_pages_is_enabled) { redirect('not-found'); } \Altum\Authentication::guard(); if(!$this->user->plan_settings->qr_is_enabled) { Alerts::add_info(l('global.info_message.plan_feature_no_access')); redirect('status-pages'); } $status_page_id = isset($this->params[0]) ? (int) $this->params[0] : null; if(!$status_page = db()->where('status_page_id', $status_page_id)->where('user_id', $this->user->user_id)->getOne('status_pages')) { redirect('status-pages'); } /* Genereate the status_page full URL base */ $status_page->full_url = (new \Altum\Models\StatusPage())->get_status_page_full_url($status_page, $this->user); /* Set a custom title */ Title::set(sprintf(l('status_page_qr.title'), $status_page->name)); /* Prepare the view */ $data = [ 'status_page' => $status_page ]; $view = new \Altum\View('status-page-qr/index', (array) $this); $this->add_view_content('content', $view->run($data)); } }