private static void ProcessStart(IHttpRequest Request, IHttpResponse Response) { var dic = new SafeStringToStringDirectionary(); dic.Add("type", Request.Uri.QueryString["type"].ToSafeString()); Response.Write(Action("start", dic.ToDictionary())); }
private static void ProcessKitoff(IHttpRequest Request, IHttpResponse Response) { var dic = new SafeStringToStringDirectionary(); dic.Add("UserID", Request.Uri.QueryString["UserID"].ToSafeString()); Response.Write(Action("kitoff", dic.ToDictionary())); }
private void ProcessXml() { using (var a = new WebHelperClient()) { var dic = new SafeStringToStringDirectionary(); Response.Write(a.GMAction("xml", dic.ToDictionary())); } }
private static void ProcessNotice(IHttpRequest Request, IHttpResponse Response) { var postdata = Request.Content.ReadAll().ConvertFromBytes(Encoding.UTF8); var Form = FormParser.Parse(postdata); var dic = new SafeStringToStringDirectionary(); dic.Add("str", Form["Tx_url"].ToSafeString()); Response.Write(Action("notice", dic.ToDictionary())); }
private static void ProcessForbid(IHttpRequest Request, IHttpResponse Response) { var dic = new SafeStringToStringDirectionary(); dic.Add("UserID", Request.Uri.QueryString["UserID"].ToSafeString()); dic.Add("reason", Request.Uri.QueryString["reason"].ToSafeString()); dic.Add("day", Request.Uri.QueryString["day"].ToSafeString()); Response.Write(Action("forbid", dic.ToDictionary())); }
private void ProcessKitoff() { using (var a = new WebHelperClient()) { var dic = new SafeStringToStringDirectionary(); dic.Add("UserID", Request.QueryString["UserID"].ToSafeString()); Response.Write(a.GMAction("kitoff", dic.ToDictionary())); } }
private void ProcessNotice() { using (var a = new WebHelperClient()) { var dic = new SafeStringToStringDirectionary(); dic.Add("str", Request.Form["Tx_url"].ToSafeString()); Response.Write(a.GMAction("notice", dic.ToDictionary())); } }
private void ProcessForbid() { using (var a = new WebHelperClient()) { var dic = new SafeStringToStringDirectionary(); dic.Add("UserID", Request.QueryString["UserID"].ToSafeString()); dic.Add("reason", Request.QueryString["reason"].ToSafeString()); dic.Add("day", Request.QueryString["day"].ToSafeString()); Response.Write(a.GMAction("forbid", dic.ToDictionary())); } }
private void ProcessStart() { if (this.usertype <= 2) { Response.Write("对不起,你的权限不足"); return; } using (var a = new WebHelperClient()) { var dic = new SafeStringToStringDirectionary(); dic.Add("type", Request.QueryString["type"].ToSafeString()); Response.Write(a.GMAction("start", dic.ToDictionary())); } }