修复日志页面卡顿我呢提
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* 日志 datatable 接口鉴权
|
||||
*/
|
||||
if (!function_exists('cloak_datatable_require_auth')) {
|
||||
function cloak_datatable_require_auth()
|
||||
{
|
||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
||||
session_start();
|
||||
}
|
||||
if (empty($_SESSION['password']) || $_SESSION['password'] != LOGIN_PASSWORD) {
|
||||
unset($_SESSION['password']);
|
||||
unset($_SESSION['check_result']);
|
||||
http_response_code(404);
|
||||
die('404 Not Found');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user