expnaded sample env
This commit is contained in:
@@ -5,14 +5,11 @@ use CodeIgniter\Model;
|
||||
|
||||
class userAccess extends baseModel
|
||||
{
|
||||
protected $db;
|
||||
// public $con_name = 'mermsemr';
|
||||
// protected $db;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
//$db = \Config\Database::connect('mermsemr');
|
||||
// $this->db = \Config\Database::connect($this->con_name);
|
||||
}
|
||||
|
||||
public function startLogin($in)
|
||||
@@ -105,7 +102,7 @@ class userAccess extends baseModel
|
||||
return $tk;
|
||||
}
|
||||
|
||||
private function getIPAddress()
|
||||
private function getIPAddress_old()
|
||||
{
|
||||
//whether ip is from the share internet
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
|
||||
Reference in New Issue
Block a user