]>
Commit | Line | Data |
---|---|---|
9da25e7e CS |
1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
2 | ||
aa7d56f6 CS |
3 | class Backend extends CI_Controller { |
4 | ||
5 | public function __construct() { | |
6 | parent::__construct(); | |
9d2ed0ce | 7 | $this->load->model('user'); |
aa7d56f6 CS |
8 | } |
9 | ||
10 | public function index() { | |
aa7d56f6 CS |
11 | } |
12 | ||
9d2ed0ce | 13 | public function logged_in() { |
4d35980c | 14 | $this->json->reply($this->user->is_logged_in()); |
9d2ed0ce CS |
15 | } |
16 | ||
17 | public function login_modal() { | |
18 | print $this->core->get_login(); | |
19 | } | |
20 | ||
aa7d56f6 | 21 | public function get_menu() { |
4d35980c | 22 | $this->json->reply($this->core->get_menu()); |
aa7d56f6 CS |
23 | } |
24 | } | |
25 | ?> |