mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
- Modified FHC_Model contructor to get UID from vilesci authentication
- Copied functionalities from old libraries to controllers - Ported old libraries to CI - Modified codeception
This commit is contained in:
@@ -11,11 +11,19 @@ class FHC_Model extends CI_Model
|
||||
$this->lang->load('fhc_model');
|
||||
$this->lang->load('fhcomplete');
|
||||
|
||||
$uid = NULL;
|
||||
if (is_null($uid) && isset($this->session->uid))
|
||||
$uid = null;
|
||||
|
||||
// Get UID from CI session
|
||||
if(isset($this->session->uid))
|
||||
{
|
||||
$uid = $this->session->uid;
|
||||
}
|
||||
// Get UID from the environment (HTTP authentication via authentication.class.php)
|
||||
else if(isset($_SERVER['PHP_AUTH_USER']))
|
||||
{
|
||||
$uid = $_SERVER['PHP_AUTH_USER'];
|
||||
}
|
||||
|
||||
$this->load->library('FHC_DB_ACL', array('uid' => $uid));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user