Subversion Repositories ALCASAR

Rev

Rev 2557 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2557 Rev 2574
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: autoregistration.php 2557 2018-06-03 21:06:17Z rexy $
2
# $Id: autoregistration.php 2574 2018-07-20 21:27:51Z rexy $
3
 
3
 
4
#Define
4
#Define
5
$gammu_wrong_port = "";
5
$gammu_wrong_port = "";
6
$gammu_puk = "";
6
$gammu_puk = "";
7
$gammu_simfail = "";
7
$gammu_simfail = "";
Line 343... Line 343...
343
	
343
	
344
	# Set the connexion port to MODEM	
344
	# Set the connexion port to MODEM	
345
	if(isset($_POST['b_port'])){
345
	if(isset($_POST['b_port'])){
346
		echo "speed = ".$_POST['port'];
346
		echo "speed = ".$_POST['port'];
347
		$port = $_POST['port'];
347
		$port = $_POST['port'];
348
		exec("sudo $script --replace_port $port");
348
		exec("sudo $script --replace_port ".escapeshellarg($port));
349
		header('Location: autoregistration.php');
349
		header('Location: autoregistration.php');
350
		exit();
350
		exit();
351
	}
351
	}
352
 
352
 
353
	# Set the SIM phone number
353
	# Set the SIM phone number