\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("g".$sep.".png")){ unlink("g".$sep.".png"); } $fp = fopen("Interface_Wintax\#09".$sep.".txt", "a"); fseek($fp,0); $varr="#09".$sep.",".$depart; fputs($fp,$varr); fclose($fp); $gpng=false; $time=0; while($gpng==false and $time<=5){ sleep(2); $time=$time+2; if(file_exists("g".$sep.".png")){ $gpng=true; $time=0; } } if($gpng==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(); } //----------------------------------------------------------------------- echo("\r\n"); echo(" tottttre\r\n"); echo("Pointage\r\n"); echo("0\r\n"); echo("0\r\n"); echo(" http://".$ip."/Services_Cisco/g".$sep.".png\r\n"); echo("\r\n"); //*************************************************** //*************************************************** ?>