芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/application/controllers/Plugins.php
load->model('plugins_model', 'plugins'); $this->load->library("Aauth"); if (!$this->aauth->is_loggedin()) { redirect('/user/', 'refresh'); } if ($this->aauth->get_user()->roleid < 5) { exit('
Sorry! You have insufficient permissions to access this section
'); } } public function recaptcha() { if ($this->input->post()) { $public_key = $this->input->post('publickey'); $private_key = $this->input->post('privatekey'); $captcha = $this->input->post('captcha'); $this->plugins->recaptcha($captcha, $public_key, $private_key); } else { $head['usernm'] = $this->aauth->get_user()->username; $head['title'] = 'reCaptcha Security'; $data['captcha'] = $this->plugins->config_general(); $this->load->view('fixed/header', $head); $this->load->view('plugins/security', $data); $this->load->view('fixed/footer'); } } public function shortner() { if ($this->input->post()) { $key1 = $this->input->post('key1'); $enable = $this->input->post('enable'); $this->plugins->update_api(1, $key1, '', $enable); } else { $head['usernm'] = $this->aauth->get_user()->username; $head['title'] = 'URL Shortner'; $data['universal'] = $this->plugins->universal_api(1); $this->load->view('fixed/header', $head); $this->load->view('plugins/shortner', $data); $this->load->view('fixed/footer'); } } public function twilio() { if ($this->input->post()) { $key1 = $this->input->post('key1'); $key2 = $this->input->post('key2'); $sender = $this->input->post('sender'); $enable = $this->input->post('enable'); $this->plugins->update_api(2, $key1, $key2, $enable, $sender); } else { $head['usernm'] = $this->aauth->get_user()->username; $head['title'] = 'Twilio SMS'; $data['universal'] = $this->plugins->universal_api(2); $this->load->view('fixed/header', $head); $this->load->view('plugins/twilio', $data); $this->load->view('fixed/footer'); } } }