\r\n"); echo("Erreur\r\n"); echo("La recherche est effectuée soit par nom soit par numéro!\r\n"); echo("\r\n"); exit(); } //echo "ceci est : "."++++++++++".$sep." -----------".$pwd; //$ip = getenv("REMOTE_ADDR"); //echo $ip; if (file_exists("codage.tcs")) $fp = fopen("codage.tcs", "r"); else{ //echo "fichier n'existe pas!!!"; echo("\r\n"); echo("FICHIER INEXISTANT !\r\n"); echo("FICHIER INEXISTANT !\r\n"); echo("\r\n"); exit(); } //----------------------------------------------------------------------- if (file_exists("pwd".$sep.".txt")) { $fp = fopen("pwd".$sep.".txt", "r"); $ligne1=fgets($fp,255); $ligne1=trim($ligne1); if ($ligne1==$sep.",".$pwd ) //-- { } else{ //echo "password incorrect "; echo("\r\n"); echo("Password incorrect !\r\n"); echo("Password incorrect !\r\n"); echo("\r\n"); //echo "password incorrect ".$sep." - ".$pwd; //fclose($fp); exit(); } } else{ //echo "fichier passwrd n'existe pas!!! "."pwd".$sep.".txt"; echo "Configuation de service manquante (pwdxxx) inexistant!!! "; exit(); } //----------------------------------------------------------------------- if (file_exists("resultat\An".$sep.".txt")){ unlink("resultat\An".$sep.".txt"); } $fp = fopen("Interface_Wintax\#07".$sep.".txt", "a"); fseek($fp,0); $type=""; if($nom!="" and $num==""){$type=$nom;} if($nom=="" and $num!=""){$type=$num;} $varr="#07".$sep.",".$type; fputs($fp,$varr); fclose($fp); $txt=false; $time=0; while($txt==false and $time<=5){ sleep(4); $time=$time+2; if(file_exists("resultat\An".$sep.".txt")){ $txt=true; $time=0; } } if($txt==false){ echo("\r\n"); echo("Délai !\r\n"); echo("Délai d'attente dépassé !\r\n\r\nVérifier le service CISCOM\r\n"); echo("\r\n"); exit(); } $fp2 = fopen("resultat\An".$sep.".txt",'r'); $het=""; while(!feof($fp2)) { $het=$het.fgets($fp2); } //---------------------------------------------------------------------- echo ("\r\n"); echo ("".$het."\r\n"); echo ("\r\n"); echo ("EXIT\r\n"); echo ("SoftKey:Exit\r\n"); echo ("3\r\n"); echo ("\r\n"); echo ("\r\n"); fclose($fp2); exit(); //*************************************************** //*************************************************** ?>