Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2991 → Rev 2992

/web/acc/manager/htdocs/user_by_sms.php
1,5 → 1,4
<?php
# $Id: autoregistration.php 2915 2021-02-07 22:59:23Z rexy $
 
#Define
$gammu_wrong_port = "";
44,7 → 43,7
{
exec("sudo $script --stop");
sleep(8);
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
}
55,7 → 54,7
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_title = "Auto enregistrement (SMS)";
$l_title = "Inscription par SMS";
$l_conf = "Configuration";
$l_conf_actu = "Configuration actuelle";
$l_speed = "Vitesse de connexion au MODEM";
121,7 → 120,7
$l_country_advanced_ena = "Autorisation personnalisée";
$l_advance = "Avancé";
} else if($Language == 'es') {
$l_title = "Auto-registro (SMS)";
$l_title = "Registro por SMS";
$l_conf = "Configuración";
$l_conf_actu = "Configuración actual";
$l_speed = "Velocidad de conexión al MODEM";
187,7 → 186,7
$l_country_advanced_ena = "Autorización avanzada";
$l_advance = "Avanzado";
} else {
$l_title = "Auto registration (SMS)";
$l_title = "SMS registration";
$l_conf = "Configuration";
$l_conf_actu = "Current configuration";
$l_speed = "Connection speed to the MODEM";
378,13 → 377,13
exec("sudo $script --stop");
}
}
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
if(isset($_POST["stop"])){
exec("sudo $script --stop");
sleep(8);
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
403,7 → 402,7
case "115200":
exec("sudo $script --replace_speed 115200");
break;
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
}
413,7 → 412,7
echo "speed = ".$_POST['port'];
$port = $_POST['port'];
exec("sudo $script --replace_port ".escapeshellarg($port));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
 
427,7 → 426,7
if(preg_match('#^\+#',$num))
{
exec("sudo $script --replace_numero_alcasar ".escapeshellarg($num));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
else
450,7 → 449,7
if(is_numeric($pin))
{
exec("sudo $script --replace_pin ".escapeshellarg($pin));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
else
473,7 → 472,7
if(is_numeric($time_account))
{
exec("sudo $script --replace_time_account ".escapeshellarg($time_account));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
else
496,7 → 495,7
if(is_numeric($nb_ban_temp))
{
exec("sudo $script --replace_try_ban ".escapeshellarg($nb_ban_temp));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
else
519,7 → 518,7
if(is_numeric($time_perm))
{
exec("sudo $script --replace_time_perm ".escapeshellarg($time_perm));
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
else
542,7 → 541,7
exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($add_mac));
}
exec("sudo $script --unlock_num $numero");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
 
551,7 → 550,7
$country=utf8_decode($_POST['country_select']);
exec("sudo $script --change_country ".escapeshellarg($country));
exec("sudo $script --change_country_filter advance");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
if(isset($_POST['b_france_enable'])){
558,7 → 557,7
exec("sudo $script --change_country_dis_all");
exec("sudo $script --change_country France");
exec("sudo $script --change_country_filter fr");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
if(isset($_POST['b_ue_enable'])){
569,18 → 568,18
}
exec("sudo $script --change_country_filter ue");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
if(isset($_POST["b_country_enable"])){
exec("sudo $script --change_country_ena_all");
exec("sudo $script --change_country_filter all");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
if(isset($_POST["b_country_disable"])){
exec("sudo $script --change_country_dis_all");
header('Location: autoregistration.php');
header('Location: user_by_sms.php');
exit();
}
 
723,7 → 722,7
$gammu_status_off="";
}
 
echo "<form action=\"autoregistration.php\" method=\"post\">
echo "<form action=\"user_by_sms.php\" method=\"post\">
<table border=1>
<tr>
<td colspan=3><b>$l_conf</b></td>
849,7 → 848,7
<td colspan="3" align="center"><strong><?php echo $l_country_filter; ?></strong><font size="3" color="red"><?php echo $country_filter; ?></font></td>
</tr>
<tr>
<form action="autoregistration.php" method="post">
<form action="user_by_sms.php" method="post">
<td align="center" width=33%><button type="submit" name="b_france_enable"><?php echo "$l_country_france_ena" ?></button></td>
<td align="center" width=34%><button type="submit" name="b_ue_enable"><?php echo "$l_country_ue_ena" ?></button></td>
<td align="center" width=33%><button type="submit" name="b_country_enable"><?php echo "$l_country_all_ena" ?></button></td>
875,7 → 874,7
{
echo "
<tr>
<form action=\"autoregistration.php\" method=\"post\">
<form action=\"user_by_sms.php\" method=\"post\">
<td>
<input type=\"hidden\" name=\"country_select\" value=\"" .$row['name']."\">
".$row['name']."
927,7 → 926,7
{
echo "
<tr>
<form action=\"autoregistration.php\" method=\"post\">
<form action=\"user_by_sms.php\" method=\"post\">
<td>
<input type=\"hidden\" name=\"num_select\" value=\"" .$row['SenderNumber']."\">
".$row['SenderNumber']."