<?php
#	echo 'Ваш IP адрес = '.$_GET['ip'];
	$ipp = $_GET['ip'];
	$cmd = '/var/www/html/ipmac.sh '.$ipp;
#	echo $cmd;
	$res = shell_exec($cmd);
#	echo "</br>";
#	if ( $res == '' ) {
#		$res = 'Неизвестный IP';
#	}
#	$res=mb_strtoupper($res);
	echo strtoupper($res);
?>
