Update CodeIgniter system 3.1.0 => 3.1.16
This commit is contained in:
@@ -6,9 +6,9 @@ class Dash extends Users_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
if (!isset($_SESSION['username']) or $_SESSION['username'] == '') {
|
||||
if (!isset($_SESSION['username']) or $_SESSION['username'] == '') {
|
||||
redirect(home);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function index() {
|
||||
@@ -21,8 +21,7 @@ class Dash extends Users_Controller {
|
||||
$data['member_id'] = $_SESSION['member_id']; // = $ret->email;
|
||||
// print_r($_SESSION);
|
||||
//Array ( [__ci_last_regenerate] => 1474689025 [username] => ses66181+1@gmail.com [name] => ses66181+1@gmail.com [firstname] => Olusesan [lastname] => Amey [email] => ses66181+1@gmail.com )
|
||||
//
|
||||
if (!isset($_SESSION['username']) or $_SESSION['username'] == '') {
|
||||
if (!isset($_SESSION['username']) or $_SESSION['username'] == '') {
|
||||
redirect(home);
|
||||
} else {
|
||||
// load the Dash model now
|
||||
|
||||
Reference in New Issue
Block a user