<?
/*-- on efface les temporaires --*/
				$dir = './';
				if (file_exists ($dir)){ 
				   $od = opendir($dir); 
				   while ($fich = readdir($od)){ 
				      	if ($fich != "." AND $fich != ".." AND $fich !='grilletemp.dat'){ 
				       		$l=strlen($fich);
							$dat=substr($fich,$l-4,4);
							if(($dat=='.dat')||($dat=='.DAT')){
								unlink($fich);
							}	
				        } 
				   }     
				   closedir($od); 
				}
				else{ echo' <h4><font color=#ff0000>Le rpertoire spcifi '.$dir.' n\'existe pas!!!</font></h4>';
				} 
			   				 
				
					
?>			