Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            url = "http://" + Request.Url.Authority;

            if (FileExists(HttpContext.Current.Server.MapPath(KSCMS.GetInstallDir() + "install/install.lock")))
            {
                JS.AlertDoFun("安装程序已运行过了,如果要重新安装,请先删除install/install.lock文件!", "location.href='/';");
            }
            else
            {
                if (KSCMS.S("action") == "install")
                {
                    Response.Cache.SetCacheability(HttpCacheability.NoCache);  //禁止缓存
                    beginInstall();
                    KSCMS.Die();
                }
                else if (KSCMS.S("action") == "finish")
                {
                    BtnStep3Next_Click(null, null);
                }
            }
        }
Exemple #2
0
 private void tips(string str)
 {
     // JS.Alert(str.Replace("'","\'"));
     KSCMS.Die(str);
     KSCMS.Die();
 }