918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/63ee1760/9e6b534b/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/63ee1760/9e6b534b/App_Web_wvmlwlot.0.cs
?#pragma checksum "D:\wwwroot\ladderin\wwwroot\p_tool_z\subForm.ashx" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "89B32B0D07D280EEE2667F76C646A8471EEBAA43"

#line 1 "D:\wwwroot\ladderin\wwwroot\p_tool_z\subForm.ashx"


using System;
using System.Web;

public class subForm : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        try
        {
            if (context.Request.Form["code"] != null && (string)context.Session["imgcode"] != context.Request.Form["code"].ToString().ToLower().Trim())
            {
                context.Response.Write("{\"result\":-1,\"msg\":\"验证码谬误\"}");
                return;
            }

            PZ.DAL.MainDB DB = new PZ.DAL.MainDB();

            int node = Convert.ToInt32(context.Request.Form["node"].ToString());
            string tablename = PZ.DAL.Tools.CheckStr(context.Request.Form["biao"].ToString());
            int platform = 1;
            if (context.Request.Form["platform"] != null) { platform = Convert.ToInt32(context.Request.Form["platform"]); }
            int show = 1;
            if (context.Request.Form["show"] != null) { show = Convert.ToInt32(context.Request.Form["show"]); }

            PZ.Magic.Form f = new PZ.Magic.Form(DB);
            int id = f.Insert(tablename, node, platform, show, 1);

            string emailContent = Linkage.EmailContent(tablename, id);
            new email().SendEmail(1, "留言", emailContent);

            context.Response.Write("{\"result\":" + id + ",\"msg\":\"提交成功\"}");
        }
        catch (Exception ex)
        {
            context.Response.Write("{\"result\":-1,\"msg\":\"" + ex.ToString() + "\"}");
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}

#line default
#line hidden