mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
							
								
								
									
										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); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user