Subversion Repositories ALCASAR

Rev

Rev 1349 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1349 Rev 1380
Line 7... Line 7...
7
<link rel="stylesheet" href="/css/style.css">
7
<link rel="stylesheet" href="/css/style.css">
8
</head>
8
</head>
9
<body>
9
<body>
10
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
10
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
11
<?
11
<?
12
#Commandes
12
# Test présence de clé/modem
13
$exec_com=exec("lsusb | grep -i huawei | cut -d ' ' -f6");
13
$exec_com=exec("lsusb | grep -i 067b | cut -d ' ' -f6 | cut -d ' ' -f1");
-
 
14
$exec_com2=exec("lsusb | grep -i 12d1 | cut -d ' ' -f6 | cut -d ' ' -f1");
-
 
15
 
14
$exec_com2=exec("lsusb | grep -i d-link | cut -d ' ' -f7");
16
//$exec_com2=exec("lsusb | grep -i d-link | cut -d ' ' -f7");
-
 
17
 
15
$status_key="false";
18
$status_key="false";
16
$script="/usr/local/bin/alcasar-sms.sh";
19
$script="/usr/local/bin/alcasar-sms.sh";
17
 
20
 
18
#Define
21
#Define
19
$gammu_puk = "";
22
$gammu_puk = "";
Line 28... Line 31...
28
$error_num_alcasar = "";
31
$error_num_alcasar = "";
29
 
32
 
30
# Choice of language
33
# Choice of language
31
$Language = 'en';
34
$Language = 'en';
32
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
35
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
33
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
36
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
34
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
37
	$Language = strtolower(substr(chop($Langue[0]),0,2)); }
35
if($Language == 'fr'){
38
if($Language == 'fr'){
36
	$l_title = "Auto enregistrement (SMS)";
39
	$l_title = "Auto enregistrement (SMS)";
37
	$l_conf = "Configuration";
40
	$l_conf = "Configuration";
38
	$l_conf_actu = "Configuration actuelle";
41
	$l_conf_actu = "Configuration actuelle";
39
	$l_pin = "Code PIN";
42
	$l_pin = "Code PIN";
40
	$l_num_alcasar = "Le numero de téléphone de la clé 3G";
43
	$l_num_alcasar = "Le numero de téléphone de la clé 3G";
41
	$l_ban_temp = "Nombre d'essais max avant le ban permanant";
44
	$l_ban_temp = "Nombre d'essais avant le blocage";
42
	$l_time_account = "Durée pour une session créée";
45
	$l_time_account = "Durée pour une session créée";
43
	$l_time_perm = "Durée en jours d'un bloquage (ban)";
46
	$l_time_perm = "Durée du blocage (en jours)";
44
	$l_status_gammu = "Etat du service";
47
	$l_status_gammu = "Etat du service";
45
	$l_start = "Démarrer";
48
	$l_start = "Démarrer";
46
	$l_status_device = "Status de votre périphérique";
49
	$l_status_device = "Status de votre périphérique";
47
	$l_key_diseable = "Aucune clé est connectée";
50
	$l_key_diseable = "Aucune clé est connectée";
48
	$l_key_enable = "Votre clé est connectée";
51
	$l_key_enable = "Votre clé est connectée";
Line 54... Line 57...
54
	$l_gammu_off="Gammu est arrêté";
57
	$l_gammu_off="Gammu est arrêté";
55
	$l_edit = "Editer";
58
	$l_edit = "Editer";
56
	$l_error_label_empty = "Le champ est vide";
59
	$l_error_label_empty = "Le champ est vide";
57
	$l_error_label_num = "Ce n'est pas un PIN valide";
60
	$l_error_label_num = "Ce n'est pas un PIN valide";
58
	$l_error_label_num2 = "Ce n'est pas un nombre";
61
	$l_error_label_num2 = "Ce n'est pas un nombre";
-
 
62
	$l_error_label_num3 = "Le format n'est pas correct: +xxxYYYYYYYYY (xxx: code pays / YYYYYYYYY: numéro de téléphone)";
59
	$l_error_writefail = "Gammu semble ne pas parvenir à discuter avec la clé (port ttyUSB0).";
63
	$l_error_writefail = "Gammu semble ne pas parvenir à discuter avec la clé (port ttyUSB0).";
60
	$l_error_timeoutfail = "Impossible de se connecter à la clé 3G. Timeout.";
64
	$l_error_timeoutfail = "Impossible de se connecter à la clé 3G. Timeout.";
61
	$l_error_simfail = "Un problème au niveau de la carte SIM a été détecté. Est elle présente?";
65
	$l_error_simfail = "Un problème au niveau de la carte SIM a été détecté. Est elle présente?";
62
	$l_error_simsecu_l = "Attention, lors du dernier démarrage, votre code PIN était erroné.<br>
66
	$l_error_simsecu_l = "Attention, lors du dernier démarrage, votre code PIN était erroné.<br>
63
	       			La SIM doit être bloqué (code PUK). Consultez la documentation.";
67
					La SIM doit être bloqué (code PUK). Consultez la documentation.";
64
	$l_autorefresh = "Rafraichissement : 30 sec";
68
	$l_autorefresh = "Rafraichissement : 30 sec";
65
	$l_days = "jours ";
69
	$l_days = "jours ";
66
	
70
	
67
	$l_num_block="Liste des numéros bloqués";
71
	$l_num_block="Liste des numéros bloqués";
68
	$l_num_num="Numéro";
72
	$l_num_num="Numéro";
Line 72... Line 76...
72
	$l_num_exist="Un compte a été créé";
76
	$l_num_exist="Un compte a été créé";
73
	$l_num_flood="Le nombre d'essais maximum a été dépacé";
77
	$l_num_flood="Le nombre d'essais maximum a été dépacé";
74
	$l_num_unlock="Effacer";
78
	$l_num_unlock="Effacer";
75
	$l_service_status_img_ok="Démarré";
79
	$l_service_status_img_ok="Démarré";
76
	$l_service_status_img_ko="Arrété";
80
	$l_service_status_img_ko="Arrété";
77
 
81
	
-
 
82
	$l_conf_name="Configuration : ";
-
 
83
	$l_current_connect = "Connexion";
78
 
84
 
79
}
85
}
80
else {
86
else {
81
	$l_title = "Auto registration (SMS)";
87
	$l_title = "Auto registration (SMS)";
82
	$l_conf = "Configuration";
88
	$l_conf = "Configuration";
Line 99... Line 105...
99
	$l_gammu_off="Gammu is down";
105
	$l_gammu_off="Gammu is down";
100
	$l_edit = "Edit";
106
	$l_edit = "Edit";
101
	$l_error_label_empty = "Field empty";
107
	$l_error_label_empty = "Field empty";
102
	$l_error_label_num = "It's not a valid PIN password";
108
	$l_error_label_num = "It's not a valid PIN password";
103
	$l_error_label_num2 = "It's not a number";
109
	$l_error_label_num2 = "It's not a number";
-
 
110
	$l_error_label_num3 = "The phone number is not good: +xxxYYYYYYYYY (xxx: code pays / YYYYYYYYY: numéro de téléphone)";
-
 
111
	$l_error_writefail = "Gammu semble ne pas parvenir à discuter avec la clé (port ttyUSB0).";
104
	$l_error_writefail = "Gammu can't listen the ttyUSB0 port.";
112
	$l_error_writefail = "Gammu can't listen the ttyUSB0 port.";
105
	$l_error_timeoutfail = "Timeout. Can not connect to modem.";
113
	$l_error_timeoutfail = "Timeout. Can not connect to modem.";
106
	$l_error_simfail = "An issue with your Sim card was detected. Is it in the key?";
114
	$l_error_simfail = "An issue with your Sim card was detected. Is it in the key?";
107
	$l_error_simsecu_l = "Warning, during the last startup, the PIN code was wrong. <br>
115
	$l_error_simsecu_l = "Warning, during the last startup, the PIN code was wrong. <br>
108
				The Sim card must be blocked. Please read the documentation.";
116
				The Sim card must be blocked. Please read the documentation.";
Line 117... Line 125...
117
	$l_num_exist="An account has been created";
125
	$l_num_exist="An account has been created";
118
	$l_num_flood="The number of try has been reached";
126
	$l_num_flood="The number of try has been reached";
119
	$l_num_unlock="Erase";
127
	$l_num_unlock="Erase";
120
	$l_service_status_img_ok="Running";
128
	$l_service_status_img_ok="Running";
121
	$l_service_status_img_ko="Stopped";
129
	$l_service_status_img_ko="Stopped";
-
 
130
	
-
 
131
	$l_conf_name="Configuration : ";
-
 
132
	$l_current_connect = "Connection";
122
}
133
}
123
echo "
134
echo "
124
	<tr>
135
	<tr>
125
		<th>$l_title</th>
136
		<th>$l_title</th>
126
	</tr>
137
	</tr>
Line 134... Line 145...
134
 
145
 
135
?>
146
?>
136
<center>
147
<center>
137
<br /><br />
148
<br /><br />
138
<table border=1 width=100%>
149
<table border=1 width=100%>
139
	<tr>
150
<tr>
140
	<td colspan=2><h3><?php echo $l_status_device ?></h3></td>
151
<td colspan=3><h3><?php echo $l_status_device ?></h3></td>
141
	</tr>
152
</tr>
142
	
153
 
143
<tr>
154
<tr>
144
<?php
155
<?php
145
if(!empty($exec_com) || !empty($exec_com2))
156
if(!empty($exec_com) || !empty($exec_com2))
146
{
157
{
-
 
158
 
-
 
159
	if(isset($_GET['config_submit'])){
-
 
160
		switch ($_GET['config']) {
-
 
161
		case "at":
-
 
162
			exec("sudo $script --replace_connect  ");
-
 
163
			break;
-
 
164
		case "9600":
-
 
165
			exec("sudo $script --replace_connect 9600");
-
 
166
			break;
-
 
167
		case "19200":
-
 
168
			exec("sudo $script --replace_connect 19200");
-
 
169
			break;
-
 
170
		case "115200":
-
 
171
			exec("sudo $script --replace_connect 115200");
-
 
172
			break;
-
 
173
 
-
 
174
		}	
-
 
175
	}
-
 
176
 
-
 
177
	$current_connect = exec("sudo $script --connect");
-
 
178
	
-
 
179
 
147
	echo "<td>$l_key_enable</td>";
180
	echo '<td width="50%">'.$l_key_enable.'</td>';
-
 
181
	echo '<td width="20%">'.$l_current_connect.' : '.$current_connect.'</td>';
-
 
182
	echo '	<form form="GET" action="./autoregistration.php">
-
 
183
			<td align="right">	'.$l_conf_name.'
-
 
184
				<select name="config">
-
 
185
					<option value="at">at</option>
-
 
186
					<option value="9600">at9600</option>
-
 
187
					<option value="19200">at19200</option>
-
 
188
					<option value="115200">at115200</option>
-
 
189
				</select>
-
 
190
				<input type="submit" name="config_submit"></submit> 
-
 
191
			</td>
-
 
192
		</form>
-
 
193
		';
-
 
194
 
148
	$status_key="true";
195
	$status_key="true";
149
}
196
}
150
else
197
else
151
{
198
{
152
	echo "<td>$l_key_diseable</td>";
199
	echo "<td>$l_key_diseable</td>";
153
	$status_key="false";
200
	$status_key="false";
154
}
201
}
155
?>
202
?>
156
	</tr>
203
</tr>
157
</table>
204
</table>
158
</center>
205
</center>
159
<br /><br />
206
<br /><br />
160
 
207
 
161
<?php
208
<?php
162
 
209
 
163
	#Test si gammu est lancé
210
#Test si gammu est lancé
164
	$gammu_pid=exec("sudo /sbin/pidof gammu-smsd");
211
$gammu_pid=exec("sudo /sbin/pidof gammu-smsd");
165
 
212
 
166
 
213
 
167
if ($status_key=="false")
214
if ($status_key=="false")
168
{
215
{
169
	if ($gammu_pid!="")
216
	if ($gammu_pid!="")
Line 212... Line 259...
212
	#Recuperation de la dernière ligne de DEVICEWRITEERROR
259
	#Recuperation de la dernière ligne de DEVICEWRITEERROR
213
	$current_last_write = exec("sudo $script --last_writeerror");
260
	$current_last_write = exec("sudo $script --last_writeerror");
214
 
261
 
215
	#Recuperation de la dernière ligne de TIMEOUT
262
	#Recuperation de la dernière ligne de TIMEOUT
216
	$current_last_timeout = exec("sudo $script --last_timeout");
263
	$current_last_timeout = exec("sudo $script --last_timeout");
217
 
264
	
-
 
265
	# Test si le service est lancé
218
	if ($gammu_pid=="")
266
	if ($gammu_pid=="")
219
	{
267
	{
220
		$force_signal = "-";
268
		$force_signal = "-";
221
		$imei_device = "-";
269
		$imei_device = "-";
222
		$sms_received = "-";
270
		$sms_received = "-";
Line 259... Line 307...
259
 
307
 
260
 
308
 
261
 
309
 
262
		$gammu="<td><img src=\"/images/state_ok.gif\" width=\"15\" height=\"15\" alt=\"".$l_service_status_img_ok."\"></td><td>$l_gammu_on</td>";	
310
		$gammu="<td><img src=\"/images/state_ok.gif\" width=\"15\" height=\"15\" alt=\"".$l_service_status_img_ok."\"></td><td>$l_gammu_on</td>";	
263
		$gammu_log="<tr><td colspan=7>$current_log</td></tr>";
311
		$gammu_log="<tr><td colspan=7>$current_log</td></tr>";
264
		  
312
		
265
		
313
		
266
		if($current_last_timeout!=""){
314
		if($current_last_timeout!=""){
267
			if(($current_last_timeout > $current_last_start) && ($current_last_timeout > $current_last_stop))
315
			if(($current_last_timeout > $current_last_start) && ($current_last_timeout > $current_last_stop))
268
			{
316
			{
269
				$gammu_timeout="<tr><td colspan=7><font color=red>$l_error_timeoutfail</font></td></tr>";	
317
				$gammu_timeout="<tr><td colspan=7><font color=red>$l_error_timeoutfail</font></td></tr>";	
Line 287... Line 335...
287
		
335
		
288
		if($current_simfail!="")
336
		if($current_simfail!="")
289
		{
337
		{
290
			if(($current_simfail > $current_last_start) && ($current_simfail > $current_last_stop))
338
			if(($current_simfail > $current_last_start) && ($current_simfail > $current_last_stop))
291
			{
339
			{
292
			$gammu_simfail="<tr><td colspan=7><font color=red>$l_error_simfail</font></td></tr>";
340
				$gammu_simfail="<tr><td colspan=7><font color=red>$l_error_simfail</font></td></tr>";
293
			}
341
			}
294
		}
342
		}
295
		$gammu_status_on="disabled";
343
		$gammu_status_on="disabled";
296
		$gammu_status_off="";
344
		$gammu_status_off="";
297
	}
345
	}
298
 
346
 
299
 
347
 
300
	#Lancement et arret de gammu-smsd
348
	#Lancement et arret de gammu-smsd 3*7sec
301
	if(isset($_GET["start"])){
349
	if(isset($_GET["start"])){
302
		$gammu_1=exec("sudo $script --start");
350
		$gammu_1=exec("sudo $script --start");
303
		sleep(7);
351
		sleep(7);
304
		
352
		
305
		if($current_last_secu!="")
353
		if($current_last_secu!="")
Line 344... Line 392...
344
	if(isset($_GET["b_num_alcasar"])){
392
	if(isset($_GET["b_num_alcasar"])){
345
		$num = $_GET["num_alcasar"];
393
		$num = $_GET["num_alcasar"];
346
		$error_num_alcasar = "";
394
		$error_num_alcasar = "";
347
		if($num !="")
395
		if($num !="")
348
		{
396
		{
349
			if(is_numeric($num))
397
			if(preg_match('#^\+#',$num))
350
			{
398
			{
351
				exec("sudo $script --replace_numero_alcasar  $num");
399
				exec("sudo $script --replace_numero_alcasar  $num");
352
				header('Location: autoregistration.php');
400
				header('Location: autoregistration.php');
353
			}
401
			}
354
			else
402
			else
355
			{
403
			{
356
				$error_num_alcasar=$l_error_label_num2;			
404
				$error_num_alcasar=$l_error_label_num3;
357
			}
405
			}
358
		}
406
		}
359
		else
407
		else
360
		{
408
		{
361
			$error_num_alcasar=$l_error_label_empty;
409
			$error_num_alcasar=$l_error_label_empty;
Line 381... Line 429...
381
		else
429
		else
382
		{
430
		{
383
			$error_pin=$l_error_label_empty;
431
			$error_pin=$l_error_label_empty;
384
		}
432
		}
385
	}
433
	}
-
 
434
	
386
 
435
	
387
	#Edition du nombre d'essais avant le ban perm
436
	#Edition du nombre d'essais avant le ban perm
388
	if(isset($_GET["b_ban_temp"])){
437
	if(isset($_GET["b_ban_temp"])){
389
		$nb_ban_temp = $_GET["nb_essais"];
438
		$nb_ban_temp = $_GET["nb_essais"];
390
		$error_nb_essais = "";
439
		$error_nb_essais = "";
391
		if($nb_ban_temp !="")
440
		if($nb_ban_temp !="")
Line 403... Line 452...
403
		else
452
		else
404
		{
453
		{
405
			$error_nb_essais=$l_error_label_empty;
454
			$error_nb_essais=$l_error_label_empty;
406
		}
455
		}
407
	}
456
	}
408
 
457
 
409
 
458
 
410
	#Edition de la durée pour un compte créé
459
	#Edition de la durée pour un compte créé
411
	if(isset($_GET["b_time_account"])){
460
	if(isset($_GET["b_time_account"])){
412
		$time_account = $_GET["time_account"];
461
		$time_account = $_GET["time_account"];
413
		$error_time_account = "";
462
		$error_time_account = "";
Line 418... Line 467...
418
				exec("sudo $script --replace_time_account  $time_account");
467
				exec("sudo $script --replace_time_account  $time_account");
419
				header('Location: autoregistration.php');
468
				header('Location: autoregistration.php');
420
			}
469
			}
421
			else
470
			else
422
			{
471
			{
423
				$error_time_account=$l_error_label_num2;			
472
				$error_time_account=$l_error_label_num2;
424
			}
473
			}
425
		}
474
		}
426
		else
475
		else
427
		{
476
		{
428
			$error_time_account=$l_error_label_empty;
477
			$error_time_account=$l_error_label_empty;
Line 440... Line 489...
440
				exec("sudo $script --replace_time_perm  $time_perm");
489
				exec("sudo $script --replace_time_perm  $time_perm");
441
				header('Location: autoregistration.php');
490
				header('Location: autoregistration.php');
442
			}
491
			}
443
			else
492
			else
444
			{
493
			{
445
				$error_time_perm=$l_error_label_num2;			
494
				$error_time_perm=$l_error_label_num2;
446
			}
495
			}
447
		}
496
		}
448
		else
497
		else
449
		{
498
		{
450
			$error_time_perm=$l_error_label_empty;
499
			$error_time_perm=$l_error_label_empty;
Line 496... Line 545...
496
		<td colspan=3><b>$l_conf</b></td>
545
		<td colspan=3><b>$l_conf</b></td>
497
		<td><b>$l_conf_actu</b></td>
546
		<td><b>$l_conf_actu</b></td>
498
		</tr>
547
		</tr>
499
		
548
		
500
		<tr>
549
		<tr>
501
		<td> $l_num_alcasar </td><td><input type=text name='num_alcasar' maxlength=\"10\"><font color=red><b>$error_num_alcasar</b></font></td>
550
		<td> $l_num_alcasar </td><td><input type=text name='num_alcasar' maxlength=\"20\"></td>
502
		<td><button type=\"submit\" name=\"b_num_alcasar\" $gammu_status_on>$l_edit</button></td>
551
		<td><button type=\"submit\" name=\"b_num_alcasar\" $gammu_status_on>$l_edit</button></td>
503
		<td><center><font color=\"green\">$current_num_alcasar</font></center></td>
552
		<td><center><font color=\"green\">$current_num_alcasar</font></center></td>
504
		</tr>
553
		</tr>
-
 
554
		<tr><td colspan=\"4\"><font color=red><b>$error_num_alcasar</b></font></td></tr>
505
		
555
		
506
		<tr>
556
		<tr>		
507
		<td> $l_pin </td><td><input type=text name='pin' maxlength=\"8\"><font color=red><b>$error_pin</b></font></td>
557
		<td> $l_pin </td><td><input type=text name='pin' maxlength=\"8\"></td>
508
		<td><button type=\"submit\" name=\"b_pin\" $gammu_status_on>$l_edit</button></td>
558
		<td><button type=\"submit\" name=\"b_pin\" $gammu_status_on>$l_edit</button></td>
509
		<td><center><font color=\"green\">$current_pin</font></center></td>
559
		<td><center><font color=\"green\">$current_pin</font></center></td>
510
		</tr>
560
		</tr>
-
 
561
		<tr><td colspan=\"4\"><font color=red><b>$error_pin</b></font></td></tr>
511
		
562
 
512
		<tr>
-
 
513
		<td> $l_time_account </td><td><input type=text name='time_account'> $l_days <font color=red><b>$error_time_account</b></font>
563
		<td> $l_time_account </td><td><input type=text name='time_account'> $l_days </td>
514
		<td><button type=\"submit\" name=\"b_time_account\" $gammu_status_on>$l_edit</button></td>	
564
		<td><button type=\"submit\" name=\"b_time_account\" $gammu_status_on>$l_edit</button></td>	
515
		<td><center><font color=\"blue\">$current_time_account</font></center></td>
565
		<td><center><font color=\"blue\">$current_time_account</font></center></td>
516
		</tr>
566
		</tr>
-
 
567
		<tr><td colspan=\"4\"><font color=red><b>$error_time_account</b></font></td></tr>
517
		
568
		
518
		<tr>
569
		<tr>
519
		<td> $l_ban_temp </td><td><input type=text name='nb_essais'><font color=red><b>$error_nb_essais</b></font></td>	
570
		<td> $l_ban_temp </td><td><input type=text name='nb_essais'></td>	
520
		<td><button type=\"submit\" name=\"b_ban_temp\" $gammu_status_on>$l_edit</button></td>	
571
		<td><button type=\"submit\" name=\"b_ban_temp\" $gammu_status_on>$l_edit</button></td>	
521
		<td><center><font color=\"orange\">$current_try_ban</font></center></td>
572
		<td><center><font color=\"orange\">$current_try_ban</font></center></td>
522
		</tr>
573
		</tr>
-
 
574
		<tr><td colspan=\"4\"><font color=red><b>$error_nb_essais</b></font></td></tr>
523
		
575
		
524
		<tr>
576
		<tr>
525
		<td>$l_time_perm</td><td><input type=text name='time_perm'> $l_days <font color=red><b>$error_time_perm</b></font>
577
		<td>$l_time_perm</td><td><input type=text name='time_perm'> $l_days</td>
526
		<td><button type=\"submit\" name=\"b_time_perm\" $gammu_status_on>$l_edit</button></td>	
578
		<td><button type=\"submit\" name=\"b_time_perm\" $gammu_status_on>$l_edit</button></td>	
527
		<td><center><font color=\"orange\">$current_time_perm</font></center></td>
579
		<td><center><font color=\"orange\">$current_time_perm</font></center></td>
528
		</tr>
580
		</tr>
-
 
581
		<tr><td colspan=\"4\"><font color=red><b>$error_time_perm</b></font></td></tr>
-
 
582
		
-
 
583
		
529
		</tr>
584
		</tr>
530
		</table>
585
		</table>
531
		</form>";		
586
		</form>";		
532
	
587
	
533
	
588
	
Line 567... Line 622...
567
	{
622
	{
568
		echo "	
623
		echo "	
569
			<form action=\"autoregistration.php\" methode=\"POST\">
624
			<form action=\"autoregistration.php\" methode=\"POST\">
570
			<tr>
625
			<tr>
571
			<td>
626
			<td>
572
	       		<input type=\"hidden\" name=\"num_select\" value=\"" .$row['SenderNumber']."\">	
627
				<input type=\"hidden\" name=\"num_select\" value=\"" .$row['SenderNumber']."\">	
573
			" . $row['SenderNumber'] . "</td>";
628
			" . $row['SenderNumber'] . "</td>";
574
		
629
		
575
		if($row['Perm']=='0')
630
		if($row['Perm']=='0')
576
		{
631
		{
577
			echo "<td>$l_num_exist</td>";
632
			echo "<td>$l_num_exist</td>";
Line 589... Line 644...
589
			</tr>";
644
			</tr>";
590
	}
645
	}
591
	echo "</table>";
646
	echo "</table>";
592
 
647
 
593
	mysqli_close($con);
648
	mysqli_close($con);
594
 
649
	
595
}
650
	}
-
 
651
	
596
?>
652
?>
597
 
653
 
598
</html>
654
</html>