mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci
Conflicts: application/core/FHC_Model.php
This commit is contained in:
@@ -19,6 +19,12 @@ class FHC_Model extends CI_Model
|
||||
// Get UID from the environment (HTTP authentication via authentication.class.php)
|
||||
elseif(isset($_SERVER['PHP_AUTH_USER']))
|
||||
$uid = $_SERVER['PHP_AUTH_USER'];
|
||||
|
||||
// After getting UID for the first time, it saves it in CI session
|
||||
if (isset($uid) && !isset($this->session->uid))
|
||||
{
|
||||
$this->session->uid = $uid;
|
||||
}
|
||||
|
||||
$this->load->library('FHC_DB_ACL', array('uid' => $uid));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user