\n"; $htaccess.= "require valid-user\n"; $htaccess.=""; $f = fopen(ZONEFILE, "w"); fputs($f, $htaccess); fclose($f); } function verifAccessFile() { $Tab = file(ZONEFILE); $modif=1; for ($i = 0; $i < count($Tab); $i++) { if (!ereg("^AuthUserFile" ,$Tab[$i],$regs)) { $file[$i]=trim($Tab[$i]); }else{ $part = split(" ",$Tab[$i]); if(trim($part[1])==USERFILE) $modif=0; else $file[$i]="AuthUserFile ".USERFILE; } } if($modif==1){ $f=fopen(ZONEFILE,"w"); for ($i=0; $i

>

>
>

>
>

0){?>
value= value= >
onclick='verif("delete","")'> onclick='verif("change","")'>
>

>

Htadmin V Powered by Actinux