From af1f8afb686281fa208b6f9a407edade3413545c Mon Sep 17 00:00:00 2001 From: Jesse Young Date: Sun, 9 Oct 2011 16:31:06 -0700 Subject: [PATCH] add html page for simulating EnvayaSMS requests --- server/php/EnvayaSMS.php | 2 +- server/php/example/www/test.html | 445 +++++++++++++++++++++++++++++++ 2 files changed, 446 insertions(+), 1 deletion(-) create mode 100755 server/php/example/www/test.html diff --git a/server/php/EnvayaSMS.php b/server/php/EnvayaSMS.php index 619fac0..d2ff8e9 100755 --- a/server/php/EnvayaSMS.php +++ b/server/php/EnvayaSMS.php @@ -22,7 +22,7 @@ class EnvayaSMS static function escape($val) { - return htmlspecialchars($val, ENT_COMPAT | ENT_XML1, 'UTF-8'); + return htmlspecialchars($val, ENT_COMPAT, 'UTF-8'); } private static $request; diff --git a/server/php/example/www/test.html b/server/php/example/www/test.html new file mode 100755 index 0000000..b8e5bd0 --- /dev/null +++ b/server/php/example/www/test.html @@ -0,0 +1,445 @@ + + + + + + +

EnvayaSMS Request Simulator

+
+ + + + + +
Server URL
Phone Number
Password
Action
+ +
+

Parameters for action=incoming:

+ + + + + +
From Phone Number
Message Type
Message
Timestamp
+
+ + + + + + + + + +
+ +
+
+

+

+
+ + \ No newline at end of file