Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: autoregistration.php 2300 2017-06-22 09:00:27Z tom.houdayer $
|
2 |
# $Id: autoregistration.php 2317 2017-06-30 11:42:44Z tom.houdayer $
|
3 |
|
3 |
|
4 |
# Test if 3G/4G key is plugged
|
4 |
# Test if 3G/4G key is plugged
|
5 |
$exec_com=exec("lsusb | grep -i 067b: | cut -d ' ' -f6"); // converter "USB to UART" PL2303 (several USB-serial cables, Wavecom GSM Modem)
|
5 |
$exec_com=exec("lsusb | grep -i 067b: | cut -d ' ' -f6"); // converter "USB to UART" PL2303 (several USB-serial cables, Wavecom GSM Modem)
|
6 |
$exec_com2=exec("lsusb | grep -i 12d1: | cut -d ' ' -f6"); // Huawei Technologies (E220/E230/E270/E870
|
6 |
$exec_com2=exec("lsusb | grep -i 12d1: | cut -d ' ' -f6"); // Huawei Technologies (E220/E230/E270/E870
|
7 |
//$exec_com2=exec("lsusb | grep -i 2001: | cut -d ' ' -f6"); // Dlink (to test)
|
7 |
//$exec_com2=exec("lsusb | grep -i 2001: | cut -d ' ' -f6"); // Dlink (to test)
|
Line 162... |
Line 162... |
162 |
<title>Auto enregistrement</title>
|
162 |
<title>Auto enregistrement</title>
|
163 |
<link rel="stylesheet" href="/css/style.css">
|
163 |
<link rel="stylesheet" href="/css/style.css">
|
164 |
<!-- DataTables CSS -->
|
164 |
<!-- DataTables CSS -->
|
165 |
<link rel="stylesheet" type="text/css" href="/css/jquery.dataTables.css">
|
165 |
<link rel="stylesheet" type="text/css" href="/css/jquery.dataTables.css">
|
166 |
<!-- jQuery -->
|
166 |
<!-- jQuery -->
|
167 |
<script type="text/javascript" charset="utf8" src="/js/jquery.js"></script>
|
167 |
<script type="text/javascript" charset="utf8" src="/js/jquery.min.js"></script>
|
168 |
<!-- DataTables -->
|
168 |
<!-- DataTables -->
|
169 |
<script type="text/javascript" charset="utf8" src="/js/jquery.dataTables.js"></script>
|
169 |
<script type="text/javascript" charset="utf8" src="/js/jquery.dataTables.js"></script>
|
170 |
<script type="text/javascript">
|
170 |
<script type="text/javascript">
|
171 |
function timedRefresh(timeoutPeriod) {
|
171 |
function timedRefresh(timeoutPeriod) {
|
172 |
var interval = setInterval(refreshPage, timeoutPeriod);
|
172 |
var interval = setInterval(refreshPage, timeoutPeriod);
|