Subversion Repositories ALCASAR

Rev

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

Rev 3028 Rev 3076
Line 177... Line 177...
177
		exec("sudo /sbin/ip link show ".escapeshellarg($intif), $output); // retrieve ALCASAR @MAC
177
		exec("sudo /sbin/ip link show ".escapeshellarg($intif), $output); // retrieve ALCASAR @MAC
178
		$detail = explode (" " , $output[1]);
178
		$detail = explode (" " , $output[1]);
179
		$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
179
		$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
180
		unset ($output);unset ($detail);
180
		unset ($output);unset ($detail);
181
		exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); 
181
		exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); 
182
		while (list(,$ligne) = each($output)){
182
		foreach($output as $ligne){
183
			$detail = explode (" ", $ligne);
183
			$detail = explode (" ", $ligne);
184
			$nb_ligne ++;
184
			$nb_ligne ++;
185
			echo "<tr valign=\"middle\">";
185
			echo "<tr valign=\"middle\">";
186
			echo "<td>".$nb_ligne."</td>";
186
			echo "<td>".$nb_ligne."</td>";
187
			echo "<td>".$detail[1]."</td>"; // @IP
187
			echo "<td>".$detail[1]."</td>"; // @IP
Line 282... Line 282...
282
				}
282
				}
283
				echo "</form></td>";
283
				echo "</form></td>";
284
			}
284
			}
285
			if ($conf['MULTIWAN'] !== 'off') {
285
			if ($conf['MULTIWAN'] !== 'off') {
286
				if ($detail[4] == "1"){ // authenticated user
286
				if ($detail[4] == "1"){ // authenticated user
287
					while (list(,$ligne2) = each($list_ip_gw)){
287
					foreach ($list_ip_gw as $ligne2){
288
						$detail2 = explode (" ", $ligne2);
288
						$detail2 = explode (" ", $ligne2);
289
						if ($detail2[0] == $detail[1]){
289
						if ($detail2[0] == $detail[1]){
290
							echo "<td>$detail2[1]</td>";
290
							echo "<td>$detail2[1]</td>";
291
							reset ($list_ip_gw);
291
							reset ($list_ip_gw);
292
							break;
292
							break;