mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-21 19:23:32 +03:00
Initial implementation of log rotation.
This commit is contained in:
parent
a8abca1121
commit
d1b817443c
4 changed files with 77 additions and 1 deletions
13
logs.php
13
logs.php
|
@ -61,7 +61,18 @@ case "export":
|
|||
break;
|
||||
|
||||
case "clear":
|
||||
clearlogs();
|
||||
if($allowclearlogs === TRUE) {
|
||||
clearlogs();
|
||||
} else {
|
||||
jtable_respond(null, 'error', 'Invalid action');
|
||||
}
|
||||
break;
|
||||
case "rotate":
|
||||
if($allowrotatelogs === TRUE) {
|
||||
rotatelogs();
|
||||
} else {
|
||||
jtable_respond(null, 'error', 'Invalid action');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
jtable_respond(null, 'error', 'Invalid action');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue