=$ligne1) //-- { echo ("pas de credit !".$ligne1." consommés !"); fclose($fp0); exit(); } } else{ //echo "fichier config smsn'existe pas!!! "."sms".$sep.".txt"; echo "Configuation de service sms manquante (smsxxx) inexistant!!! ".$ligne1; exit(); } //----------------------------------------------------------------------- //----------------------------------------------------------------------- $cib0=rand(1,99999999); if (is_dir('ciscosms')) { } else { mkdir ("ciscosms","777"); } $t=$gsm."\r"."\n".$sms; $fp = fopen("./ciscosms/sms".$cib0.".txt",'w+'); fputs($fp,$t); fclose($fp); fclose($fp0); $fp0 = fopen("sms".$sep.".txt", "w+"); $ligne2=$ligne2+1; /////////DIMINUER LE CREDIT $ligne1=$ligne1-1; fputs($fp0,$ligne1."\r"."\n".$ligne2); fclose($fp0); //----- echo ("Message SMS envoyé !"."\r\n\r\n"); echo ("Ligne : ".$sep."\r\n"); echo ("Credit : ".$ligne1."\r\n"); echo ("Consommés: ".$ligne2."\r\n"); //------------------------------- //------------------ if (is_dir('ciscosmsjrnl')) { } else { mkdir ("ciscosmsjrnl","777"); } $date = date("d-m-Y"); $heure = date("H:i"); $t=$date." ".$heure." , ".$gsm.",".$sms."\r\n"; $fp = fopen("./ciscosmsjrnl/jsms".$sep.".txt",'a+'); fputs($fp,$t); fclose($fp); ///////////////////////////////////////////////// ?>