修复日志页面卡顿我呢提

This commit is contained in:
root
2026-06-15 22:42:59 +08:00
parent 1a52201ec7
commit bcb9f293a6
151 changed files with 2461 additions and 471 deletions
+18
View File
@@ -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');
}
}
}