芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/minscoop.com/app/Controllers/BaseAdminController.php
session = \Config\Services::session(); $this->request = \Config\Services::request(); $this->generalSettings = Globals::$generalSettings; //settings $this->settings = Globals::$settings; //active languages $this->activeLanguages = Globals::$languages; //check auth if (!authCheck()) { redirectToUrl(adminUrl('login')); exit(); } //maintenance mode if ($this->generalSettings->maintenance_mode_status == 1) { if (!isAdmin()) { $authModel = new AuthModel(); $authModel->logout(); redirectToUrl(adminUrl('login')); exit(); } } //active theme $this->activeTheme = getActiveTheme(); //set control panel lang if (!empty($this->session->get('vr_control_panel_lang'))) { Globals::setActiveLanguage($this->session->get('vr_control_panel_lang')); } //active lang $this->activeLang = Globals::$activeLang; //categories $this->categories = getCategories(); //per page $this->perPage = 15; if (!empty(cleanNumber(inputGet('show')))) { $this->perPage = cleanNumber(inputGet('show')); } //update last seen updateLastSeen(); //view variables $view = \Config\Services::renderer(); $view->setData(['activeLang' => $this->activeLang, 'activeLanguages' => $this->activeLanguages, 'activeTheme' => $this->activeTheme, 'generalSettings' => $this->generalSettings, 'baseSettings' => $this->settings, 'baseCategories' => $this->categories]); } }