\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(); } //----------------------------------------------------------------------- $c=""; if (file_exists("C:\datawtx\cico.txt")) { $fp = fopen("C:\datawtx\cico.txt","r"); $c=fgets($fp); } $fp = fopen("C:\datawtx\cico.txt","a"); $varr="Y".$sep."§"; fseek($fp,0); fputs($fp,$varr); fclose($fp); if (file_exists($sep."ver.txt")){ unlink($sep."ver.txt"); } $fp=fopen($sep."ver.txt", "a"); $ver="d"; fputs($fp,"d"); fclose($fp); echo("\r\n"); echo("Poste Deverrouille\r\n"); echo("Poste Deverrouille\r\n"); echo("\r\n"); //*************************************************** //*************************************************** ?>