Commit 8bfaf0e1 authored by tufengqi's avatar tufengqi

cookie edit mod

parent 728ecdcf
......@@ -103,6 +103,8 @@ class Application extends Component
return;
}
$user_ip = Yii::$app->request->userIP;
$host_name = $_SERVER['SERVER_NAME'];
$is_online_host = $this->isOnlineHost($host_name);
if ($this->isAllowIp($user_ip)) {
\Yii::$app->response->headers->add('Content-type', 'text/html');
\Yii::$app->response->send();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment