18 lines
434 B
PHP
18 lines
434 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Login extends CI_Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$data['re'] = '';
|
|
if (isset($_GET['url'])) {
|
|
$data['re'] = $_GET['url'];
|
|
}
|
|
if (isset($_POST['email'])) {
|
|
authenticateUser($_POST['email'], $_POST['password'], $data['re']);
|
|
}
|
|
$this->load->view("login",$data);
|
|
}
|
|
|
|
} |