mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Progress commit: bootstrap modal event handlers
This commit is contained in:
		
							
								
								
									
										14
									
								
								ajax/openvpn/activate_ovpncfg.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ajax/openvpn/activate_ovpncfg.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
require_once '../../includes/config.php';
 | 
			
		||||
require_once '../../includes/functions.php';
 | 
			
		||||
 | 
			
		||||
if (isset($_POST['cfg_id'])) {
 | 
			
		||||
    $ovpncfg_id = $_POST['cfg_id'];
 | 
			
		||||
    $ovpncfg_files = pathinfo(RASPI_OPENVPN_CLIENT_LOGIN, PATHINFO_DIRNAME).'/'.$ovpncfg_id.'_*.conf';
 | 
			
		||||
    $return = $ovpncfg_files;
 | 
			
		||||
    //exec("sudo rm $ovpncfg_files", $return);
 | 
			
		||||
    $jsonData = ['return'=>$return];
 | 
			
		||||
    echo json_encode($jsonData);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user