Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change label on incoming sms status, fix dlr-url misformed error on k…

…annel gateway

git-svn-id: http://svn.sourceforge.telkomspeedy.com/svn/playsms/trunk@10 a2ba5a7b-9259-4a92-b3f4-97befcce6881
  • Loading branch information...
commit 8970fb8404cfa8c6243701c9f465459f5d546f6f 1 parent 8ae83ae
antonraharja authored
View
2  web/docs/CHANGELOG
@@ -1,4 +1,6 @@
Version 0.9.5-svn - unknown
+- change label success to handled and fail to unhandled, status on incoming SMS
+- fix dlr-url misformed, plugin/gateway/kannel/fn.php
- fix kannel gateway, missing bearerbox host and sendsms port, plugin/gateway/kannel/fn.php
- fix RFI LFI bug, http://www.securityfocus.com/bid/33138
View
5 web/docs/FAQ
@@ -91,6 +91,11 @@ C. RECEIVE SMS
Answer:
No, your SMS will be ignored
+5. What happened to the received/incoming SMS without keyword PV ?
+ Answer:
+ They will only be shown (logged) on All Incoming SMS menu as an unhandled SMS.
+ Only admin have access to it.
+
D. SMS BOARD
------------
View
2  web/inc/admin/all_incoming.php
@@ -63,7 +63,7 @@
$in_message = $db_row[in_message];
$in_datetime = $db_row[in_datetime];
$in_feature = $db_row[in_feature];
- $in_status = ( $db_row[in_status] == 1 ? '<font color=green>success</font>' : ' <font color=red>fail</font>' );
+ $in_status = ( $db_row[in_status] == 1 ? '<font color=green>handled</font>' : ' <font color=red>unhandled</font>' );
$i--;
$td_class = ($i % 2) ? "box_text_odd" : "box_text_even";
$content .= "
View
2  web/inc/user/user_incoming.php
@@ -61,7 +61,7 @@
$in_message = $db_row[in_message];
$in_datetime = $db_row[in_datetime];
$in_feature = $db_row[in_feature];
- $in_status = ( $db_row[in_status] == 1 ? '<font color=green>success</font>' : ' <font color=red>fail</font>' );
+ $in_status = ( $db_row[in_status] == 1 ? '<font color=green>handled</font>' : ' <font color=red>unhandled</font>' );
$i--;
$td_class = ($i % 2) ? "box_text_odd" : "box_text_even";
$content .= "
View
4 web/lib/function.php
@@ -63,10 +63,10 @@
}
}
-// init global variables
+// init global variables after plugins
include "$apps_path[libs]/lib_init2.php";
-// custom functions before plugins loading
+// custom functions after plugins loaded
include "$apps_path[libs]/fn_custom2.php";
?>
View
22 web/plugin/gateway/kannel/fn.php
@@ -33,7 +33,6 @@ function kannel_hook_sendsms($mobile_sender,$sms_sender,$sms_to,$sms_msg,$uid=''
}
$dlr_url = $http_path['base'] . "/plugin/gateway/kannel/dlr.php?type=%d&slid=$smslog_id&uid=$uid";
- $dlr_url = str_replace('//', '/', $dlr_url);
$URL = "http://".$kannel_param['bearerbox_host'].":".$kannel_param['sendsms_port'];
$URL .= "/cgi-bin/sendsms?username=".urlencode($kannel_param['username'])."&password=".urlencode($kannel_param['password']);
@@ -52,27 +51,6 @@ function kannel_hook_sendsms($mobile_sender,$sms_sender,$sms_to,$sms_msg,$uid=''
}
}
- /*
- $connection = fsockopen($kannel_param['bearerbox_host'],$kannel_param['sendsms_port'],&$error_number,&$error_description,60);
- if($connection)
- {
- socket_set_blocking($connection, false);
- fputs($connection, "GET $URL HTTP/1.0\r\n\r\n");
- while (!feof($connection))
- {
- $rv = fgets($connection, 128);
- if (($rv == "Sent.") || ($rv == "0: Accepted for delivery") || ($rv == "3: Queued for later delivery"))
- {
- $ok = true;
- // set pending
- $p_status = 0;
- setsmsdeliverystatus($smslog_id,$uid,$p_status);
- }
- }
- fclose ($connection);
- }
- */
-
return $ok;
}
Please sign in to comment.
Something went wrong with that request. Please try again.