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";
}
}
?>
 
info/select-group.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki