📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
post
/
smstemp
📝
sms_api.php
← Geri Dön
<?php /* * @ https://EasyToYou.eu - IonCube v11 Decoder Online * @ PHP 7.2 * @ Decoder version: 1.0.4 * @ Release: 01/09/2021 */ echo !defined("GUVENLIK") ? exit : NULL; if ($sms["sms_firma"] == "iletimerkezi") { $iletibaslik = $sms["iletimerkezi_baslik"]; $iletiuser = $sms["iletimerkezi_user"]; $iletipass = $sms["iletimerkezi_pass"]; function sendRequest($site_name, $send_xml, $header_type) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $site_name); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $send_xml); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); 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; } $username = $iletiuser; $password = $iletipass; $orgin_name = $iletibaslik; $xml = " \t\t <request>\r\n \t\t\t <authentication>\r\n \t\t\t\t <username>" . $username . "</username>\r\n \t\t\t\t <password>" . $password . "</password>\r\n \t\t\t </authentication>\r\n\r\n \t\t\t <order>\r\n \t \t\t <sender>" . $orgin_name . "</sender>\r\n \t \t\t <sendDateTime>01/05/2013 18:00</sendDateTime>\r\n <message>\r\n <text>" . $siteMesaj . "</text>\r\n <receipents>\r\n <number>" . $telSite . "</number>\r\n </receipents>\r\n </message>\r\n \t \t\t \t <message>\r\n <text>" . $userMesaj . "</text>\r\n <receipents>\r\n <number>" . $telUser . "</number>\r\n </receipents>\r\n \t \t\t </message>\r\n \t\t\t </order>\r\n \t\t\r\n \t\t </request>\r\n"; $result = sendRequest("http://api.iletimerkezi.com/v1/send-sms", $xml, ["Content-Type: text/xml"]); } if ($sms["sms_firma"] == "netgsm") { $netgsmbaslik = $sms["netgsm_baslik"]; $netgsmuser = $sms["netgsm_user"]; $netgsmpass = $sms["netgsm_pass"]; function XMLPOST($PostAddress, $xmlData) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $PostAddress); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: text/xml"]); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlData); $result = curl_exec($ch); return $result; } $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<mainbody>\r\n<header>\r\n<company></company>\r\n<usercode>" . $netgsmuser . "</usercode>\r\n<password>" . $netgsmpass . "</password>\r\n<startdate></startdate>\r\n<stopdate></stopdate>\r\n<type>n:n</type>\r\n<msgheader>" . $netgsmbaslik . "</msgheader>\r\n</header>\r\n<body> \t\r\n<mp><msg><![CDATA[" . $siteMesaj . "]]></msg><no>" . $telSite . "</no></mp> \t\r\n<mp><msg><![CDATA[" . $userMesaj . "]]></msg><no>" . $telUser . "</no></mp> \r\n</body>\r\n</mainbody>"; $gelen = XMLPOST("http://api.netgsm.com.tr/xmlbulkhttppost.asp", $xml); } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula