ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

6 years ago
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin extends CI_Controller{
//构造函数
public function __construct(){
parent::__construct();
//加载模型
$this->load->model('query','',TRUE);
//加载辅助函数
$this->load->helper('basic');
$info = $this->query->userinfo()->values;
$info = json_decode($info);
//验证用户是否登录
is_login($info->username,$info->password);
}
//后台首页
public function index(){
$this->load->library('basic');
$data = $this->basic->analyze();
$data['admin_title'] = '后台首页';
//加载视图
$this->load->view('admin/header',$data);
$this->load->view('admin/left');
$this->load->view('admin/index');
$this->load->view('admin/footer');
}
//URL上传
public function urlup(){
$data['admin_title'] = 'URL上传';
//加载视图
$this->load->view('admin/header',$data);
$this->load->view('admin/left');
$this->load->view('admin/urlup');
$this->load->view('admin/footer');
}
}
?>