Subversion Repositories ALCASAR

Rev

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

Rev 2975 Rev 2979
Line 29... Line 29...
29
fclose($file_conf);
29
fclose($file_conf);
30
 
30
 
31
$tmp = explode("/",$conf["PRIVATE_IP"]);
31
$tmp = explode("/",$conf["PRIVATE_IP"]);
32
$private_ip=$tmp[0];
32
$private_ip=$tmp[0];
33
$intif = $conf["INTIF"];
33
$intif = $conf["INTIF"];
34
if ($conf['MULTIWAN'] !== 'Off') {
34
if ($conf['MULTIWAN'] !== 'off') {
35
	exec ('sudo /usr/local/bin/alcasar-list-ip_gw.sh', $list_ip_gw); 
35
	exec ('sudo /usr/local/bin/alcasar-list-ip_gw.sh', $list_ip_gw); 
36
}
36
}
37
require('/etc/freeradius-web/config.php');
37
require('/etc/freeradius-web/config.php');
38
# Choice of language
38
# Choice of language
39
$Language = 'en';
39
$Language = 'en';
Line 163... Line 163...
163
			<th><?= $l_ip_adr ?></th>
163
			<th><?= $l_ip_adr ?></th>
164
			<th><?= $l_mac_adr ?></th>
164
			<th><?= $l_mac_adr ?></th>
165
			<th><?= $l_user ?></th>
165
			<th><?= $l_user ?></th>
166
			<th><?= $l_action ?></th>
166
			<th><?= $l_action ?></th>
167
			<?php
167
			<?php
168
			if ($conf['MULTIWAN'] !== 'Off') {
168
			if ($conf['MULTIWAN'] !== 'off') {
169
				echo "<th>$l_gw</th>";
169
				echo "<th>$l_gw</th>";
170
			}
170
			}
171
		echo "</tr>";
171
		echo "</tr>";
172
		$IoT_capture = $conf["IOT_CAPTURE"];
172
		$IoT_capture = $conf["IOT_CAPTURE"];
173
		$output = array(); $detail = array(); $nb_ligne = 0;
173
		$output = array(); $detail = array(); $nb_ligne = 0;
Line 277... Line 277...
277
						}
277
						}
278
					}
278
					}
279
				}
279
				}
280
				echo "</form></td>";
280
				echo "</form></td>";
281
			}
281
			}
282
			if ($conf['MULTIWAN'] !== 'Off') {
282
			if ($conf['MULTIWAN'] !== 'off') {
283
				if ($detail[4] == "1"){ // authenticated user
283
				if ($detail[4] == "1"){ // authenticated user
284
					while (list(,$ligne2) = each($list_ip_gw)){
284
					while (list(,$ligne2) = each($list_ip_gw)){
285
						$detail2 = explode (" ", $ligne2);
285
						$detail2 = explode (" ", $ligne2);
286
						if ($detail2[0] == $detail[1]){
286
						if ($detail2[0] == $detail[1]){
287
							echo "<td>$detail2[1]</td>";
287
							echo "<td>$detail2[1]</td>";