zrobilem sobie usluge na fortumo..ok wszystko super extra itp..
daje skrypt od nich na moja strone ok nie ma problemu
lecz jak wysle smsa zamist odpowiedzi dostaje"
Error:invalid signature"
poniezej zamiszczam skrypt:
<?php //set true if you want to use script for billing reports //first you need to enable them in your account $billing_reports_enabled = false; // check that the request comes from Fortumo server } // check the signature $secret = ''; // insert your secret between '' } $sender = $_GET['sender']; $message = $_GET['message']; // do something with $sender and $message $reply = "Thank you $sender for sending $message"; // print out the reply //customize this according to your needs if($billing_reports_enabled // find message by $_GET['message_id'] and suspend it } function check_signature($params_array, $secret) { $str = ''; foreach ($params_array as $k=>$v) { if($k != 'sig') { $str .= "$k=$v"; } } $str .= $secret; return ($params_array['sig'] == $signature); } ?>
Prosze mi "wskazac" gdzie mam dodac swoje kody..chodzi o to ze np
dodalem do bazy czy gdzies tam kody np:
123X/1KSD/2K3D
nastepnie system wysyla 1 KOD! do osoby ktora wyslala wiadomosc lecz nie wszystkie tylko1..!
jak to zrobic gdzie to dodac..?