Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Controlla che testo e destinatario siano stati impostati
- if (!isset($_REQUEST['text'])||($_REQUEST['text']=='')){
- reindirizza($paginaKo,'Invio fallito: Il testo del messaggio non può essere vuoto!');
- }
- else if (!isset($_REQUEST['recipient'])||($_REQUEST['recipient']=='')) {
- reindirizza($paginaKo,'Invio fallito: Il destinatario non può essere vuoto!');
- }
- else{
- // Prepara il comando per il gateway SMS
- $parametri= 'username='
- .urlencode($username)
- .'&password='
- .urlencode($password)
- .'&recipient=%2b39'
- .urlencode($_POST['recipient'])
- .'&text='
- .urlencode($_POST['text'])
- .'&nosender='
- .$noSender
- .'&senderNumber='
- .urlencode($senderNumber)
- .'&senderString='
- .urlencode($senderString)
- ;
- $headers = "User-Agent: Generic Client\r\n"."Connection: Close\r\n";
- $response = do_post_request($serverURL, $parametri, $headers);
- fwrite($scrivi_file,"stringa2");
- fclose($scrivi_file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement