mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Initial commit
This commit is contained in:
parent
ee3de983ab
commit
cbdc5a11e5
12
ajax/logging/clearlog.php
Normal file
12
ajax/logging/clearlog.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once '../../includes/config.php';
|
||||||
|
require_once '../../includes/functions.php';
|
||||||
|
|
||||||
|
if (isset($_POST['svc'])) {
|
||||||
|
$tmplog = '/tmp/' .$_POST['svc']. '.log';
|
||||||
|
|
||||||
|
// clear log for requested service
|
||||||
|
exec("sudo truncate -s 0 $tmplog", $return);
|
||||||
|
echo json_encode($return);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user