1,4 → 1,12 |
<?php |
# CHECK IF the SMS service is enable |
$service_SMS_status=false; |
|
if(!$service_SMS_status){ |
header('Location: ./'); |
} |
?> |
<?php |
define ("CONF_FILE", "/usr/local/etc/alcasar.conf"); |
|
$ouvre=fopen(CONF_FILE,"r"); |
50,6 → 58,7 |
$l_tab_pmenu = "Affiche la page _PAGE_ sur _PAGES_"; |
$l_tab_info = "Montrer _MENU_ résultats par page"; |
$l_tab_infoempty = "Aucun résultat"; |
$l_autorefresh = "Rafraichissement : 10 sec"; |
|
} elseif($Language == 'en'){ |
$l_title = "Autoregistration"; |
75,6 → 84,8 |
$l_tab_info = "Show _MENU_ entries"; |
$l_tab_infoempty = "No matching records found"; |
|
$l_autorefresh = "Rafraichissement : 10 sec"; |
|
} else { |
|
$l_title = "Autoregistration"; |
99,6 → 110,8 |
$l_tab_pmenu = "Showing _PAGE_ to _PAGE_ of _PAGE_ entries :"; |
$l_tab_info = "Show _MENU_ entries"; |
$l_tab_infoempty = "No matching records found"; |
|
$l_autorefresh = "Refresh : 10 sec"; |
} |
?> |
<!DOCTYPE HTML> |
115,11 → 128,21 |
<!-- DataTables --> |
<script type="text/javascript" charset="utf8" src="../js/jquery.dataTables.js"></script> |
<script type="text/javascript"> |
function timedRefresh(timeoutPeriod) { |
var interval = setInterval(refreshPage, timeoutPeriod); |
} |
|
function refreshPage() { |
if ($("input[name=autoRefreshCheckboxes]").is(":checked")) { |
location.reload(true); |
} |
} |
|
$(document).ready( function () { |
$('#table_id').DataTable({ |
"language": { |
"paginate": { |
"sFirst": "<?php echo $l_tab_dirst; ?>", |
"sFirst": "<?php echo $l_tab_first; ?>", |
"sLast": "<?php echo $l_tab_last; ?>", |
"sPrevious": "<?php echo $l_tab_prev; ?>", |
"sNext": "<?php echo $l_tab_next; ?>" |
134,7 → 157,7 |
} ); |
</script> |
</head> |
<body> |
<body onload="JavaScript:timedRefresh(10000);"> |
|
<center> |
|
158,8 → 181,8 |
<td align="center"> |
<h3> |
<?php |
$current_num = exec("sudo /usr/local/bin/alcasar-sms.sh --numero_alcasar"); |
echo "$current_num"; |
$current_num='XXXXXXXXXX'; |
echo "$current_num"; |
?> |
</h3> |
</td> |
199,7 → 222,7 |
FROM `SMS_ban_perm` |
ORDER BY date_add DESC;"); |
?> |
|
<input type='checkbox' checked='checked' name='autoRefreshCheckboxes' ><?php echo $l_autorefresh; ?></input> |
<table id="table_id" class="display"> |
<thead> |
<tr> |