1
0

first commit

This commit is contained in:
2025-04-14 16:50:30 +08:00
commit c827a784dd
19 changed files with 746 additions and 0 deletions

10
admin/_log.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
// 在每次数据库修改操作后记录
$log = sprintf(
"[%s] %s 操作:%s \n",
date('Y-m-d H:i:s'),
$_SESSION['username'],
json_encode($_POST)
);
file_put_contents(__DIR__.'/../logs/admin.log', $log, FILE_APPEND);
?>