first commit
This commit is contained in:
10
admin/_log.php
Normal file
10
admin/_log.php
Normal 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user