]>
jfr.im git - z_archive/KronOS.git/blob - application/controllers/account.php
330df6b471b7f40ac08f84cd997f9e70093fa21b
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(){
14 public function login() {
15 if ($this->user
->logged_in
)
19 if (count($this->input
->post()) == 2) {
20 $user = $this->input
->post('username');
21 $pass = $this->input
->post('password');
23 if ($user == 'test' && $pass == 'test') {
24 $this->user
->logged_in
= True;
28 print json_encode($response);