Merhaba ;
İlan sisteminde üye ol linkine gelindiğinde tüm bilgiler doldurulduğunda sms ile doğrulama yapmadan sisteme üye olunmuyor.
Sms ile kod gönderen sayfa curl ile sms gönderiyor kodu gönderen sayfa bilgileri aşağıda function sms_gonder den itibaren sms firması düzenledi fakat hiçbir şekilde çalıştıramadık sms göndermiyor bu kodlarda hata varmı veya nasıl olması gerekiyor lütfen bu konuda yardımcı olurmusunuz.
<?
include 'setting.php';
function uretken($len) {
$karaktersizler = strtoupper("ABCDEFGHIJKLMNOPRSTUVYZXQ123456789");
$xx= "";
$max = strlen($karaktersizler)-1;
for ($i = 0; $i < $len; $i++) {
$xx.= $karaktersizler[rand(0,$max)];
}
return $xx;
}
$code = uretken(6);
$id = guvenlik($_GET['id']);
$_SESSION['AKS'] = $code;
function sms_gonder($Url,$strRequest,$header_type=array('Co ntent-Type: text/xml'))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$Url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$strRequest);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPHEADER,$header_type);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec($ch);
return $result;
}
if (isset($_POST['kullanici']))
$numaralar = array($id);
$mesaj = array('Aktivasyon Kodunuz '.$code);
$baslik = 'DEMO';
$sms = "<SMS><oturum>".
"<kullanici>123456</kullanici>".
"<sifre>123456</sifre></oturum>".
"<mesaj><baslik>".$baslik."</baslik>".
"<metin>".$metin."</metin>".
"<alicilar>".$alicilar."</alicilar>".
"<tarih></tarih>".
"</mesaj>".
"<karaliste>kendi</karaliste>".
"<izin_link>false</izin_link>".
"<izin_telefon>false</izin_telefon>".
"</SMS>";
$ozel_mesaj = sms_gonder("http://www.dakiksms.com/api/tr/xml_api_ileri.php",$sms);
die($ozel_mesaj);
?>
Acil küçük bir sorun yardım edin lütfen
0
●208