|
|
|
@ -43,7 +43,7 @@ class Index extends CI_Controller
|
|
|
|
|
|
|
|
|
|
public function query($sql,$database)
|
|
|
|
|
{
|
|
|
|
|
if ($this->input->ip_address() !== '116.8.4.34' && $this->input->ip_address() !== '127.0.0.1') { //不是公司的网络则不能访问
|
|
|
|
|
if ($this->input->ip_address() !== '116.8.4.34' && $this->input->ip_address() !== '180.140.114.225' && $this->input->ip_address() !== '127.0.0.1') { //不是公司的网络则不能访问
|
|
|
|
|
//echo $this->input->ip_address();
|
|
|
|
|
Header("HTTP/1.1 403 Forbidden");
|
|
|
|
|
return false;
|
|
|
|
|