Initial implementation of log rotation.

This commit is contained in:
Richard Underwood 2016-08-24 11:32:43 +01:00
parent a8abca1121
commit d1b817443c
4 changed files with 77 additions and 1 deletions

View file

@ -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');