]>
jfr.im git - z_archive/KronOS.git/blob - video/application/controllers/account.php
211c9b8be09c3065ee4efe763631b4d8122046dc
1 <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
3 class Account
extends CI_Controller
{
5 public function __construct() {
8 $this->load
->model('user');
11 public function index(){
15 public function login() {
16 if ($this->user
->logged_in
)
20 if (count($this->input
->post()) == 2) {
21 $user = $this->input
->post('username');
22 $pass = $this->input
->post('password');
24 if ($user == 'test' && $pass == 'test') {
25 $this->user
->logged_in
= True;
29 print json_encode($response);