expnaded sample env

This commit is contained in:
2023-02-25 18:34:20 -05:00
parent b5736e8121
commit b6abcb1586
12 changed files with 536 additions and 47 deletions
+2 -5
View File
@@ -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'])) {