select-group.php
<?
#ancienne fonction en panne (??)
#$group="gawk -F\":\" '{print $1}' /etc/group";
$group="cut -d: -f1 /etc/group";
$txt=exec($group, $tableau, $return);
#echo $txt;
sort($tableau);
for ($index=0; $index<count($tableau); $index++)
{
if (eregi("^w3.*", $tableau[$index])) {
echo "<OPTION";
if ($index==0) {
echo " selected";
}
echo ">$tableau[$index]\n";
}
}
?>