-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sms.aspx
29 lines (28 loc) · 1.18 KB
/
Sms.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%@ Page Language="C#" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
public void Page_load(object sender, EventArgs e)
{
Public.Log("request just arrived");
if (Request.QueryString["from"] != null &&
Request.QueryString["to"] != null &&
Request.QueryString["text"] != null)
{
Public.Log("request with parameters");
Public.Log(Request.QueryString["from"]);
Public.Log(Request.QueryString["to"]);
Public.Log(Request.QueryString["text"]);
Account.ReceiveSms(Request.QueryString["from"].StartsWith(" 98") ? Request.QueryString["from"].Replace(" 98", "0").Trim() : Request.QueryString["from"].Trim()
, Public.GetDate(DateTime.Now)
, Public.GetTime(DateTime.Now)
, Request.QueryString["text"]);
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
</body>
</html>