⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 specialinit.asp

📁 asp源码 图片ASP整站
💻 ASP
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/NosqlHack.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../Inc/Cls_Info.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<%
Dim DBC,Conn,sRootDir
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
if SysRootDir<>"" then sRootDir="/"+SysRootDir else sRootDir=""
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.1.0930)
'最新更新:2005.10
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net  All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421 
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn  演示站点:test.cooin.com 
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================

%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P020310") then Call ReturnError()
Dim SpecialID,MyFile,AlertInfo,RsClassEditObj,Sql,DelNewsSysRootDir,RsSpecialID
Set MyFile=Server.CreateObject(G_FS_FSO)
SpecialID = Request("SpecialID")
If Request("TrueDel")="TrueDel" then 
	If SysRootDir<>"" then 
		DelNewsSysRootDir="/" & SysRootDir
	Else
		DelNewsSysRootDir=""
	End If
	
	if SpecialID <> "" then
		Set RsClassEditObj= Server.CreateObject(G_FS_RS)
		RsClassEditObj.Open "Select * from FS_Special where SpecialID='" & SpecialID&"'",Conn,3,3
		if RsClassEditObj.Eof then
			AlertInfo="专题已经被删除 "
		else
			Sql="Select SpecialID from  FS_News"
			Set RsSpecialID=Server.CreateObject(G_FS_RS)
			RsSpecialID.Open Sql,Conn,3,3
			Dim TempSpeID
			Do while not RsSpecialID.eof
				If instr(1,RsSpecialID(0),SpecialID)>0 then
					If instr(1,RsSpecialID(0),",")>0 then
						TempSpeID=","&RsSpecialID(0)&","
						TempSpeID=replace(TempSpeID, SpecialID & ",","")
						TempSpeID=mid(TempSpeID,2,len(TempSpeID)-2)
						RsSpecialID("SpecialID")=TempSpeID
					Else
						RsSpecialID("SpecialID")=""
					End If
				End If
				RsSpecialID.update
				RsSpecialID.movenext
			loop
			If RsClassEditObj("SaveFilePath")= "/" Then
				If MyFile.FileExists(Server.Mappath(DelNewsSysRootDir&"/"&RsClassEditObj("EName")&"/index."&RsClassEditObj("FileExtName"))) then
					MyFile.DeleteFile(Server.Mappath(DelNewsSysRootDir&"/"&RsClassEditObj("EName")&"/index."&RsClassEditObj("FileExtName")))
				End If
			Else
				If MyFile.FileExists(Server.Mappath(DelNewsSysRootDir&RsClassEditObj("SaveFilePath")&"/"&RsClassEditObj("EName")&"/index."&RsClassEditObj("FileExtName"))) then
					MyFile.DeleteFile(Server.Mappath(DelNewsSysRootDir&RsClassEditObj("SaveFilePath")&"/"&RsClassEditObj("EName")&"/index."&RsClassEditObj("FileExtName")))
				End If
			End If
			Set RsClassEditObj=Nothing
			Set MyFile=Nothing
		end if
	else
	end if
	%>
	<script>
		alert('初始化完成!');
		window.close();
	</script>
	<%
Else
	ShowTrueInfo
End If

Sub ShowTrueInfo
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<link href="../../../CSS/ModeWindow.css" rel="stylesheet" type="text/css">
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	<title>专题初始化</title>
	</head>
	<body leftmargin="0" topmargin="0">
	  <form action="?SpecialID=<%=SpecialID%>" method="post" name="ClassForm">
	  <table width="100%">
	  <tr height="20" valign="bottom">
		<td width="70%" align="right">
		</td>
		</tr>
		<tr height="30">
		<td width="70%" align="center">初始化后,专题将恢复刚建立时的状态!确认?</td>
	  </tr>
		<tr>
		<td align="center">
		<input name="TrueDel"  type="hidden" value="TrueDel">
		<input name="NumClass"  type="submit" value="确 定">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="CloseOk"  type="button" value="取 消" onClick="window.close();">
		  </td>
	  </tr>
	  </table>
	  </form>
	</body>
	</html>
<%
End Sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -