18 lines
392 B
PHP
18 lines
392 B
PHP
<?
|
|
# accès non autorisé
|
|
function kick($message)
|
|
{
|
|
echo '<META HTTP-EQUIV=Refresh CONTENT="5; URL=index.php"> ';
|
|
echo '<body onLoad="alert(\''.$message.'\')">';
|
|
}
|
|
|
|
# récupération de l'adresse MAC
|
|
function getmac($ip)
|
|
{
|
|
//$mac = system('cat /proc/net/arp |grep '.$ip.' | awk \'{ print $4 }\'', $tmp);
|
|
$mac = exec("cat /proc/net/arp |grep $ip | awk '{ print $4 }'");
|
|
|
|
return $mac;
|
|
}
|
|
?>
|