Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
        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()));
        }
Esempio n. 3
0
 private void ProcessXml()
 {
     using (var a = new WebHelperClient())
     {
         var dic = new SafeStringToStringDirectionary();
         Response.Write(a.GMAction("xml", dic.ToDictionary()));
     }
 }
Esempio n. 4
0
        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()));
        }
Esempio n. 5
0
        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()));
        }
Esempio n. 6
0
 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()));
     }
 }
Esempio n. 7
0
 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()));
     }
 }
Esempio n. 8
0
 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()));
     }
 }
Esempio n. 9
0
 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()));
     }
 }