first release
This commit is contained in:
		
							
								
								
									
										9
									
								
								html/action.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								html/action.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<?php
 | 
			
		||||
$container=$_REQUEST['container'];
 | 
			
		||||
$action=$_REQUEST['action'];
 | 
			
		||||
if (!preg_match(',^[a-f0-9]+$,', $container)) exit(1);
 | 
			
		||||
if (!preg_match(',start|stop|pause|unpause|rm,', $action)) exit(1);
 | 
			
		||||
exec('docker '.$action.' '.$container, $res, $ret);
 | 
			
		||||
if ($ret!=0) exit(1);
 | 
			
		||||
echo "executed $action";
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user