<?php
	$test = shell_exec("/var/www/html/monitor/eltex.sh ".$_GET['ip']);
	$test = preg_replace("/[^,.0-9]/", '', $test);
	$onuarr = str_split($test);
	echo 'Доступные глазки на бошке '.$_GET['ip'].':<br>';
	foreach ($onuarr as $glaz) {
			echo "<a href='/monitor/pon1.php?ip=".$_GET['ip']."&glaz=".$glaz."'>".$glaz.". Подробнее</a>";
			echo '<br>';
	}
?>