<!--#include file="ubbcode.asp"-->
<!--#include file="base64.asp"-->
<%
Dim NewCloud
Set NewCloud = New SoftChannel_Cls
Class SoftChannel_Cls
Private ChannelID, CreateHtml, keyword
Private Rs, SQL, ChannelRootDir, HtmlContent, strIndexName
Private softid, SoftIntro, skinid, ClassID, SoftType
Private maxperpage, TotalNumber, TotalPageNum, CurrentPage, i, totalrec
Private strFileDir, ParentID, strParent, strClassName, ChildStr, Child
Private ListContent, TempListContent, HtmlTemplate, HtmlFilePath
Private SpecialID, SpecialName, SpecialDir, PageType, ForbidEssay
Private IsShowFlush, strInstallDir, j
Private FoundErr,strlen,RandomCodes,m_strFileDir
Public MakeHtmlMode,MakePageDone,MakeListNum
Private ThunderPidArray,m_strDownLinks,m_strCurrPageName
Public ThunderUnionID,FlashGetUnionID,strBasicPath,ChannelXMLPath,htmlmark
Public Channel_Setting,xmlFilePath,m_xmlFilePath,m_strXMLPath,TextContent,isxmltext,xmlfilename
Public Property Let Channel(chanid)
ChannelID = chanid
End Property
Public Property Let ShowFlush(para)
IsShowFlush = para
End Property
Private Sub Class_Initialize()
On Error Resume Next
FoundErr = False
ChannelID = 2
strlen = 0
MakeHtmlMode = 0
MakePageDone = 0
'--每页生成数
MakeListNum = 50
ThunderPidArray = Split(Newasp.ThunderPid & "|||", "|")
ThunderUnionID = Trim(ThunderPidArray(0))
If ThunderUnionID = "" Then ThunderUnionID = "0"
FlashGetUnionID = Trim(ThunderPidArray(1))
If FlashGetUnionID = "" Then FlashGetUnionID = "0"
m_strDownLinks = ""
htmlmark = 0
End Sub
Private Sub Class_Terminate()
Set HTML = Nothing
End Sub
Public Sub ChannelMain()
Newasp.ReadChannel (ChannelID)
CreateHtml = CInt(Newasp.IsCreateHtml)
If Newasp.BindDomain = "0" Then
ChannelRootDir = Newasp.InstallDir & Newasp.ChannelDir
strBasicPath = ""
strInstallDir = Newasp.InstallDir
Else
ChannelRootDir = "/"
strInstallDir = Newasp.SiteUrl & "/"
If Len(Newasp.NamedPath) > 2 Then
strBasicPath = Newasp.NamedPath
Else
strBasicPath = Server.MapPath(Newasp.InstallDir & Newasp.ChannelDir)
End If
End If
strIndexName = "<a href=""" & ChannelRootDir & """>" & Newasp.ChannelName & "</a>"
ubb.BasePath = ChannelRootDir
ubb.setUbbcode = Join(Newasp.setUserEditor,"|")
ubb.Keyword = Newasp.ContentKeyword
Channel_Setting = Split(Newasp.Channel_Setting & "|||||||||||||||", "|||")
If htmlmark=1 Then
ChannelXMLPath = Newasp.InstallDir & Newasp.ChannelDir
Else
ChannelXMLPath = ChannelRootDir
End If
m_xmlFilePath = Trim(Channel_Setting(12))
If Len(m_xmlFilePath) > 2 And InStr(m_xmlFilePath, ":") > 0 Then
m_strXMLPath = m_xmlFilePath &"\"
Else
m_strXMLPath = Server.MapPath(ChannelXMLPath & m_xmlFilePath) & "\"
End If
m_strXMLPath = Replace(m_strXMLPath, "\\", "\")
End Sub
'#############################\\执行软件下载首页开始//#############################
'=========================================================================
'过程名:ShowDownIndex
'作 用:显示下载首页
'=========================================================================
Public Sub ShowDownIndex()
LoadDownIndex
'If CreateHtml <> 0 Then
'Response.Write "<meta http-equiv=""refresh"" content=""0;url=index" & Newasp.HtmlExtName & """ />"
'Else
Response.Write HtmlContent
'End If
End Sub
'=========================================================================
'过程名:CreateDownIndex
'作 用:生成下载首页的HTML
'=========================================================================
Public Sub CreateDownIndex()
LoadDownIndex
Dim FilePath
If Newasp.BindDomain = "0" Then
FilePath = ChannelRootDir & "index" & Newasp.HtmlExtName
Else
FilePath = "\index" & Newasp.HtmlExtName
End If
Newasp.CreatedTextFile strBasicPath & FilePath, HtmlContent
If IsShowFlush = 1 Then Response.Write "<li style=""font-size: 12px;"">生成" & Newasp.ModuleName & "首页HTML完成... " & FilePath & "</li>" & vbNewLine
Response.Flush
End Sub
Public Sub LoadDownIndex()
Dim FilePath
Newasp.LoadTemplates ChannelID, 1, Newasp.ChkNumeric(Newasp.ChannelSkin)
HtmlContent = Newasp.HtmlContent
HtmlContent = Replace(HtmlContent, "{$ChannelRootDir}", ChannelRootDir)
HtmlContent = Replace(HtmlContent, "{$InstallDir}", strInstallDir)
HtmlContent = Replace(HtmlContent, "{$ChannelID}", ChannelID)
If Len(Newasp.HtmlSetting(1)) < 2 Then
HtmlContent = Replace(HtmlContent, "{$PageTitle}", Newasp.ChannelName)
Else
HtmlContent = Replace(HtmlContent, "{$PageTitle}", Newasp.ChannelName & Newasp.HtmlSetting(1))
End If
HtmlContent = Replace(HtmlContent, "{$ChannelName}", Newasp.ChannelName)
HtmlContent = Replace(HtmlContent, "{$ModuleName}", Newasp.ModuleName)
HtmlContent = Replace(HtmlContent, "{$SoftIndex}", strIndexName)
HtmlContent = Replace(HtmlContent, "{$IndexTitle}", strIndexName)
HtmlContent = HTML.ReadAnnounceContent(HtmlContent, ChannelID)
HtmlContent = ReadClassMenu(HtmlContent)
HtmlContent = ReadClassMenubar(HtmlContent)
HtmlContent = HTML.ReadArticlePic(HtmlContent)
HtmlContent = HTML.ReadSoftPic(HtmlContent)
HtmlContent = HTML.ReadArticleList(HtmlContent)
HtmlContent = HTML.ReadSoftList(HtmlContent)
HtmlContent = HTML.ReadFlashList(HtmlContent)
HtmlContent = HTML.ReadFlashPic(HtmlContent)
HtmlContent = HTML.ReadFriendLink(HtmlContent)
HtmlContent = HTML.ReadNewsPicAndText(HtmlContent)
HtmlContent = HTML.ReadSoftPicAndText(HtmlContent)
HtmlContent = HTML.ReadGuestList(HtmlContent)
HtmlContent = HTML.ReadAnnounceList(HtmlContent)
HtmlContent = HTML.ReadPopularArticle(HtmlContent)
HtmlContent = HTML.ReadPopularSoft(HtmlContent)
HtmlContent = HTML.ReadPopularFlash(HtmlContent)
HtmlContent = HTML.ReadStatistic(HtmlContent)
HtmlContent = HTML.ReadUserRank(HtmlContent)
HtmlContent = Replace(HtmlContent, "{$SkinPath}", Newasp.SkinPath)
HtmlContent = Replace(HtmlContent, "{$InstallDir}", strInstallDir)
HtmlContent = Replace(HtmlContent, "{$ChannelID}", ChannelID)
HtmlContent = HtmlContent
End Sub
'#############################\\执行软件信息开始//#############################
'=========================================================================
'过程名:ShowArticleInfo
'作 用:显示下载内容页面
'=========================================================================
Public Sub ShowDownIntro()
If CreateHtml <> 0 Then
Response.Redirect (ChannelRootDir & "index" & Newasp.HtmlExtName)
Exit Sub
Else
Newasp.PreventInfuse
softid = Newasp.ChkNumeric(Request("id"))
Response.Write ReadSoftIntro(softid)
End If
End Sub
'=========================================================================
'函数名:ReadSoftIntro
'作 用:读取软件内容
'参 数:SoftID ----软件ID
'=========================================================================
Public Function ReadSoftIntro(softid)
Dim SoftImageUrl, SoftImage, Previewimg, PreviewUrl, re
Dim strImageSize, strPreviewSize, SoftReadme, softname, SoftVer
Dim MemberSoft, HomePage, HomePageUrl, strContact, DownloadAddress
Dim strDecode, strRegsite, strAuthor
Dim strRegsites, strPreviewImg,ThisUrl
Dim subtitle, HeaderTitle,HeaderTitles,HeaderTopic,HeaderTopics
Dim m_intPlugin,m_strPluginInfo
SQL = "SELECT A.*,C.ClassName,C.ParentID,C.ParentStr,C.skinid,C.HtmlFileDir,C.ChildStr,C.UseHtml,C.AdsCode,C.stopad FROM [NC_SoftList] A INNER JOIN [NC_Classify] C On A.ClassID=C.ClassID WHERE A.ChannelID=" & ChannelID & " And A.isAccept > 0 And A.SoftID=" & softid
Set Rs = Newasp.Execute(SQL)
If Rs.BOF And Rs.EOF Then
ReadSoftIntro = ""
If CreateHtml = 0 Then
Response.Write "<meta http-equiv=""refresh"" content=""2;url=/"" />" & vbNewLine
Response.Write "<p align=""center"" style=""font-size: 16px;color: red;"">对不起,该页面发生了
没有合适的资源?快使用搜索试试~ 我知道了~
软件共享资源源码
共731个文件
gif:281个
asp:127个
html:116个
需积分: 9 3 下载量 143 浏览量
2012-09-26
10:29:30
上传
评论
收藏 2.47MB RAR 举报
温馨提示
软件共享资源源码,完美的软件资源站,让你为大家提供资源,方便大家使用
资源推荐
资源详情
资源评论
收起资源包目录
软件共享资源源码 (731个子文件)
mouse.ani 20KB
Logdata.asa 1.2MB
7u9i0kadadad23234325325.asa 232KB
Admin_SoftGather.asp 137KB
cls_public.asp 115KB
Admin_ArticleGather.asp 113KB
SoftChannel.asp 111KB
NewsChannel.asp 105KB
admin_soft.asp 93KB
cls_main.asp 90KB
admin_article.asp 74KB
admin_flash.asp 72KB
admin_channel.asp 68KB
admin_classify.asp 59KB
admin_server.asp 42KB
admin_template.asp 42KB
admin_config.asp 38KB
UploadCls.Asp 36KB
admin_user.asp 34KB
admin_jsfile.asp 34KB
collection.asp 34KB
ubbcode.asp 32KB
classmenu.asp 31KB
Admin_CreateArticle.Asp 30KB
Admin_CreateFlash.Asp 30KB
Admin_CreateSoft.Asp 30KB
cls_AdminFile.asp 29KB
admin_label.asp 28KB
admin_admanage.asp 28KB
admin_database.asp 27KB
admin_master.asp 25KB
admin_online.asp 23KB
admin_account.asp 21KB
admin_loadskin.asp 20KB
admin_link.asp 20KB
admin_vote.asp 19KB
admin_group.asp 18KB
admin_special.asp 18KB
setup.asp 18KB
admin_announce.asp 18KB
upload.asp 17KB
admin_custom.asp 17KB
softdown.asp 17KB
admin_probe.asp 16KB
const.asp 16KB
admin_left.asp 15KB
download.asp 14KB
admin_card.asp 14KB
admin_articleset.asp 13KB
admin_softset.asp 13KB
admin_userorder.asp 12KB
admin_message.asp 11KB
online.asp 11KB
cls_editor.asp 11KB
md5.asp 11KB
cls_md5.asp 11KB
admin_login.asp 10KB
admin_setting.asp 10KB
admin_book.asp 9KB
rssfeed.asp 9KB
admin_replace.asp 9KB
admin_mailist.asp 9KB
admin_main.asp 8KB
admin_paymode.asp 8KB
admin_log.asp 8KB
admin_classad.asp 8KB
check.asp 7KB
base64.asp 7KB
admin_softerr.asp 7KB
admin_comment.asp 7KB
admin_password.asp 6KB
admin_downfile.asp 6KB
admin_confirm.asp 6KB
admin_mailout.asp 6KB
showerr.asp 6KB
fckeditor.asp 5KB
admin_conform.asp 5KB
cls_admanage.asp 5KB
cls_down.asp 5KB
admin_top.asp 5KB
cls_custom.asp 4KB
admin.ASP 4KB
admin_other.asp 4KB
showerr.asp 4KB
previewimg.asp 4KB
remoteupload.asp 3KB
email.asp 3KB
sitemap.asp 3KB
ubbeditor.asp 3KB
GetCode.asp 3KB
GetCode.asp 3KB
config.asp 3KB
Announce.Asp 2KB
error.asp 2KB
conn.asp 2KB
count.asp 2KB
chkinput.asp 1KB
LINK.ASP 1KB
hits.asp 1KB
RemoveCache.Asp 1KB
共 731 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
spend2012
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功