Destoon SMS interface modification method. Destoon is an excellent B2B industry site program. Modular program development is highly compatible, and secondary development is also smooth. Data caching, permission allocation, and SEO functions are all good. However, destoon is an excellent B2B industry site program. Modular program development is highly compatible, and secondary development is also smooth. Data caching, permission allocation, and SEO functions are all good.
However, when using this program, you often need to use the function of sending text messages, and destoon itself only accesses its own short message interface. Some developers who are new to destoon do not know how to modify it.
Therefore, tie Niu hereby writes a document to share how to modify destoon to access the external SMS interface.
Step 1: Find the/include/global. func. php file and search for the send_sms function.
Modify function send_sms to function send_sms_back and create function send_sms.
send_sms(, , = 0, = 0 , , , , (!['sms'] || !['sms_uid'] || !['sms_key']) = 'http://app.com/test/sms.php'; or = word_count( = (convert(, DT_CHARSET, 'UTF-8' = 'username='.['sms_uid' . '&pwd='.['sms_key' . '&mobile='. . '&msg='. = curl_init( curl_setopt(, CURLOPT_POST, 1 curl_setopt(, CURLOPT_POSTFIELDS, curl_setopt(, CURLOPT_FOLLOWLOCATION, 1 curl_setopt(, CURLOPT_HEADER, 0 curl_setopt(, CURLOPT_SSL_VERIFYPEER, 0 curl_setopt(, CURLOPT_RETURNTRANSFER, 1 = curl_exec( curl_close( ='' (!==['sms_ok' = 'Can Not Connect SMS Server' =['sms_ok' ->query("INSERT INTO {->pre}sms (mobile,message,word,editor,sendtime,code) VALUES ('','','','','','')" }
Step 2: Set the SMS return value
My SMS interface address is: Success
Tip: If your curl_init () function is unavailable
Find php. ini, modify extension = php_curl.dll, and remove the semicolon.
If your php library does not have php_curl.dll, copy php_curl.dll php5ts. dlllibeay32.dll ssleay32.dll to windows/system32 and restart IIS or Apache.
Destoon development communication group number: 98537090
Bytes. Modular program development is highly compatible, and secondary development is also smooth. Data caching, permission allocation, and SEO functions are all good. But in...