CREATE PROCEDURE dnt_checkemailandsecques
@username nchar(20),
@email char(32),
@secques char(8)
AS
SELECT TOP 1 [uid] FROM [dnt_users] WHERE [username]=@username AND [email]=@email AND [secques]=@secques
GO
CREATE PROCEDURE dnt_checkpasswordandsecques
@username nchar(20),
@password char(32),
@secques char(8)
AS
SELECT TOP 1 [uid] FROM [dnt_users] WHERE [username]=@username AND [password]=@password AND [secques]=@secques
GO
CREATE PROCEDURE dnt_checkpasswordbyuid
@uid int,
@password char(32)
AS
SELECT TOP 1 [uid], [groupid], [adminid] FROM [dnt_users] WHERE [uid]=@uid AND [password]=@password
GO
CREATE PROCEDURE dnt_checkpasswordbyusername
@username nchar(20),
@password char(32)
AS
SELECT TOP 1 [uid], [groupid], [adminid] FROM [dnt_users] WHERE [username]=@username AND [password]=@password
GO
CREATE PROCEDURE dnt_createadmingroup
@admingid smallint,
@alloweditpost tinyint,
@alloweditpoll tinyint,
@allowstickthread tinyint,
@allowmodpost tinyint,
@allowdelpost tinyint,
@allowmassprune tinyint,
@allowrefund tinyint,
@allowcensorword tinyint,
@allowviewip tinyint,
@allowbanip tinyint,
@allowedituser tinyint,
@allowmoduser tinyint,
@allowbanuser tinyint,
@allowpostannounce tinyint,
@allowviewlog tinyint,
@disablepostctrl tinyint,
@allowviewrealname tinyint
AS
INSERT INTO dnt_admingroups
([admingid],[alloweditpost],[alloweditpoll],[allowstickthread],[allowmodpost],[allowdelpost],[allowmassprune],[allowrefund],[allowcensorword],[allowviewip],[allowbanip],[allowedituser],[allowmoduser],[allowbanuser],[allowpostannounce],[allowviewlog],[disablepostctrl],[allowviewrealname])
VALUES
(@admingid,@alloweditpost,@alloweditpoll,@allowstickthread,@allowmodpost,@allowdelpost,@allowmassprune,@allowrefund,@allowcensorword,@allowviewip,@allowbanip,@allowedituser,@allowmoduser,@allowbanuser,@allowpostannounce,@allowviewlog,@disablepostctrl,@allowviewrealname)
GO
CREATE PROCEDURE dnt_createattachment
@uid int,
@tid int,
@pid int,
@postdatetime datetime,
@readperm int,
@filename nchar(200),
@description nchar(200),
@filetype nchar(100),
@filesize int,
@attachment nchar(200),
@downloads int,
@extname nvarchar(50)
AS
DECLARE @aid int
INSERT INTO [dnt_attachments]([uid],[tid], [pid], [postdatetime], [readperm], [filename], [description], [filetype], [filesize], [attachment], [downloads]) VALUES(@uid, @tid, @pid, @postdatetime, @readperm, @filename, @description, @filetype, @filesize, @attachment, @downloads)
SELECT SCOPE_IDENTITY() AS 'aid'
set @aid=(SELECT SCOPE_IDENTITY() AS 'aid')
UPDATE [dnt_posts1] SET [attachment]=1 WHERE [pid]=@pid
INSERT INTO [dnt_myattachments]([aid],[uid],[attachment],[description],[postdatetime],[downloads],[filename],[pid],[tid],[extname]) VALUES(@aid,@uid,@attachment,@description,@postdatetime,@downloads,@filename,@pid,@tid,@extname)
GO
CREATE PROCEDURE dnt_createdebatepostexpand
@tid int,
@pid int,
@opinion int,
@diggs int
AS
BEGIN
INSERT INTO [dnt_postdebatefields] VALUES(@tid, @pid, @opinion, @diggs)
IF @opinion = 1
UPDATE [dnt_debates] SET [positivediggs] = [positivediggs] + 1 WHERE [tid] = @tid
ELSE IF @opinion = 2
UPDATE [dnt_debates] SET [negativediggs] = [negativediggs] + 1 WHERE [tid] = @tid
END
GO
CREATE PROCEDURE dnt_createfavorite
@uid int,
@tid int,
@type tinyint
AS
INSERT INTO [dnt_favorites] ([uid],[tid],[typeid]) VALUES(@uid,@tid,@type)
RETURN
GO
CREATE PROCEDURE dnt_createpm
@pmid int,
@msgfrom nvarchar(20),
@msgto nvarchar(20),
@msgfromid int,
@msgtoid int,
@folder smallint=0,
@new int=0,
@subject nvarchar(60),
@postdatetime datetime,
@message ntext,
@savetosentbox smallint=1
AS
IF @folder<>0
BEGIN
SET @msgfrom=@msgto
END
ELSE
BEGIN
UPDATE [dnt_users] SET [newpmcount]=ABS(ISNULL([newpmcount],0)*1)+1,[newpm] = 1 WHERE [uid]=@msgtoid
END
INSERT INTO [dnt_pms]
([msgfrom],[msgfromid],[msgto],[msgtoid],[folder],[new],[subject],[postdatetime],[message])
VALUES
(@msgfrom,@msgfromid,@msgto,@msgtoid,@folder,@new,@subject,@postdatetime,@message)
SELECT SCOPE_IDENTITY() AS 'pmid'
IF @savetosentbox=1 AND @folder=0
BEGIN
INSERT INTO [dnt_pms]
([msgfrom],[msgfromid],[msgto],[msgtoid],[folder],[new],[subject],[postdatetime],[message])
VALUES
(@msgfrom,@msgfromid,@msgto,@msgtoid,1,@new,@subject,@postdatetime,@message)
END
GO
CREATE PROCEDURE dnt_createpost1
@fid int,
@tid int,
@parentid int,
@layer int,
@poster varchar(20),
@posterid int,
@title nvarchar(60),
@topictitle nvarchar(60),
@postdatetime char(20),
@message ntext,
@ip varchar(15),
@lastedit varchar(50),
@invisible int,
@usesig int,
@htmlon int,
@smileyoff int,
@bbcodeoff int,
@parseurloff int,
@attachment int,
@rate int,
@ratetimes int
AS
DEClARE @postid int
DELETE FROM [dnt_postid] WHERE DATEDIFF(n, postdatetime, GETDATE()) >5
INSERT INTO [dnt_postid] ([postdatetime]) VALUES(GETDATE())
SELECT @postid=SCOPE_IDENTITY()
INSERT INTO [dnt_posts1]([pid], [fid], [tid], [parentid], [layer], [poster], [posterid], [title], [postdatetime], [message], [ip], [lastedit], [invisible], [usesig], [htmlon], [smileyoff], [bbcodeoff], [parseurloff], [attachment], [rate], [ratetimes]) VALUES(@postid, @fid, @tid, @parentid, @layer, @poster, @posterid, @title, @postdatetime, @message, @ip, @lastedit, @invisible, @usesig, @htmlon, @smileyoff, @bbcodeoff, @parseurloff, @attachment, @rate, @ratetimes)
IF @parentid=0
BEGIN
UPDATE [dnt_posts1] SET [parentid]=@postid WHERE [pid]=@postid
END
IF @@ERROR=0
BEGIN
IF @invisible = 0
BEGIN
UPDATE [dnt_statistics] SET [totalpost]=[totalpost] + 1
DECLARE @fidlist AS VARCHAR(1000)
DECLARE @strsql AS VARCHAR(4000)
SET @fidlist = '';
SELECT @fidlist = ISNULL([parentidlist],'') FROM [dnt_forums] WHERE [fid] = @fid
IF RTRIM(@fidlist)<>''
BEGIN
SET @fidlist = RTRIM(@fidlist) + ',' + CAST(@fid AS VARCHAR(10))
END
ELSE
BEGIN
SET @fidlist = CAST(@fid AS VARCHAR(10))
END
UPDATE [dnt_forums] SET
[posts]=[posts] + 1,
[todayposts]=CASE
WHEN DATEDIFF(day, [lastpost], GETDATE())=0 THEN [todayposts]*1 + 1
ELSE 1
END,
[lasttid]=@tid,
[lasttitle]=@topictitle,
[lastpost]=@postdatetime,
[lastposter]=@poster,
[lastposterid]=@posterid
WHERE (CHARINDEX(',' + RTRIM([fid]) + ',', ',' + (SELECT @fidlist AS [fid]) + ',') > 0)
UPDATE [dnt_users] SET
[lastpost] = @postdatetime,
[lastpostid] = @postid,
[lastposttitle] = @title,
[posts] = [posts] + 1,
[lastactivity] = GETDATE()
WHERE [uid] = @posterid
IF @layer<=0
BEGIN
UPDATE [dnt_topics] SET [replies]=0,[lastposter]=@poster,[lastpost]=@postdatetime,[lastposterid]=@posterid WHERE [tid]=@tid
END
ELSE
BEGIN
UPDATE [dnt_topics] SET [replies]=[replies] + 1,[lastposter]=@poster,[lastpost]=@postdatetime,[lastposterid]=@posterid WHERE [tid]=@tid
END
END
UPDATE [dnt_topics] SET [lastpostid]=@postid WHERE [tid]=@tid
IF @posterid <> -1
BEGIN
INSERT [dnt_myposts]([uid], [tid], [pid], [dateline]) VALUES(@posterid, @tid, @postid, @postdatetime)
END
END
SELECT @postid AS postid
GO
CREATE PROCEDURE dnt_createsearchcache
@keywords varchar(255),
@searchstring varchar(255),
@ip varchar(15),
@uid int,
@groupid int,
@postdatetime varchar(19),
@expiration varchar(19),
@topics int,
@tids text
AS
INSERT INTO dnt_searchcaches
([keywords],[searchstring],[ip],[uid],[groupid],[postdatetime],[expiration],[topics],[tids])
VALUES
(@keywords,@searchstring,@ip,@uid,@groupid,@postdatetime,@expiration,@topics,@ti
没有合适的资源?快使用搜索试试~ 我知道了~
程序源码 Discuz!NT v2.5 Build 081029 SQL For .Net2.0(ASP.NET源码).rar
共3678个文件
gif:1665个
cs:962个
aspx:303个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 45 浏览量
2023-03-13
07:50:20
上传
评论
收藏 11.05MB RAR 举报
温馨提示
免责声明:资料部分来源于合法的互联网渠道收集和整理,部分自己学习积累成果,供大家学习参考与交流。收取的费用仅用于收集和整理资料耗费时间的酬劳。 本人尊重原创作者或出版方,资料版权归原作者或出版方所有,本人不对所涉及的版权问题或内容负法律责任。如有侵权,请举报或通知本人删除。
资源推荐
资源详情
资源评论
收起资源包目录
程序源码 Discuz!NT v2.5 Build 081029 SQL For .Net2.0(ASP.NET源码).rar (3678个子文件)
usergrouppowersetting.ascx 7KB
ajaxviewuserpost.ascx 6KB
ajaxuserbloglist.ascx 5KB
ajaxuserspacecommentlist.ascx 4KB
ajaxtopicinfo.ascx 4KB
ajaxspaceinfo.ascx 3KB
ajaxsubmitcomment.ascx 3KB
ajaxspacepostinfo.ascx 3KB
ajaxalbumlist.ascx 3KB
ajaxphotoinfo.ascx 2KB
uploadfile.ascx 2KB
ajaxuseralbums.ascx 2KB
forumstree.ascx 2KB
fronttop.ascx 2KB
ajaxuserbloglistbydate.ascx 2KB
shortcutmenu.ascx 2KB
textarearesize.ascx 2KB
onlineeditor.ascx 1KB
ajaxtopnewcomment.ascx 1KB
ajaxtopnewpost.ascx 1KB
ajaxspacelink.ascx 1011B
ajaxspaceconfigstatic.ascx 992B
frontleftnavmenu.ascx 841B
ajaxpostinfo.ascx 801B
spacecalendar.ascx 686B
pageinfo.ascx 684B
dropdownpost.ascx 287B
frontbottom.ascx 222B
AddTopictype.ascx 187B
searchfunction.ascx 174B
searchuser.ascx 166B
favoritefunction.ascx 157B
MetaBlog.ashx 74B
MixObjects.asmx 75B
editgoods.aspx 127KB
editpost.aspx 114KB
posttopic.aspx 114KB
postgoods.aspx 113KB
postreply.aspx 100KB
showtopic.aspx 96KB
showforum.aspx 96KB
showtree.aspx 87KB
showbonus.aspx 84KB
website.aspx 63KB
topicadmin.aspx 62KB
register.aspx 59KB
showgoods.aspx 58KB
search.aspx 57KB
showdebate.aspx 57KB
usercpmygoods.aspx 56KB
showgoodslist.aspx 50KB
offlinetrade.aspx 48KB
forumindex.aspx 47KB
stats.aspx 46KB
global_edituser.aspx 45KB
usercpspacephotoadd.aspx 44KB
usercpshopgoodsmanage.aspx 38KB
tags.aspx 38KB
showtopiclist.aspx 37KB
global_editadvs.aspx 36KB
userinfo.aspx 36KB
onlinetrade.aspx 35KB
spaceindex.aspx 35KB
usercpspaceset.aspx 35KB
usercpspacemanagealbum.aspx 34KB
mallindex.aspx 34KB
usercppreference.aspx 34KB
mallgoodslist.aspx 33KB
global_addadvs.aspx 33KB
goodsadmin.aspx 33KB
showphoto.aspx 33KB
usercpspacemanagephoto.aspx 33KB
usercpspaceeditblog.aspx 32KB
usercpspacepostblog.aspx 32KB
forum_editforums.aspx 31KB
buytopic.aspx 31KB
usercpshopcategory.aspx 31KB
forum_editmall.aspx 31KB
usercpprofile.aspx 31KB
usercpspacemanageblog.aspx 30KB
usercpspacemanageattachment.aspx 30KB
usercpshowpm.aspx 30KB
usercpinbox.aspx 30KB
usercpdraftbox.aspx 30KB
usercpsentbox.aspx 30KB
usercpspacemanagecategory.aspx 30KB
usercpshoplink.aspx 30KB
global_editadminusergroup.aspx 30KB
albumindex.aspx 30KB
usercpspacelinklist.aspx 30KB
usercpnewpassword.aspx 29KB
usercpcreditspay.aspx 29KB
usercpsubscribe.aspx 29KB
usercpspacecomment.aspx 29KB
usercppostpm.aspx 29KB
usercpforumsetting.aspx 29KB
usercppmset.aspx 29KB
usercpcreditstransfer.aspx 29KB
global_editusergroup.aspx 28KB
usercpcreditspayoutlog.aspx 28KB
共 3678 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37
资源评论
金枝玉叶9
- 粉丝: 124
- 资源: 7640
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
- 时代的sdddsddsddsd
- 基于哈希链表的简单人员信息管理系统
- 其他类别JdonFramework开源框架 v5.1 Build20071025-jdonframework-5.1.rar
- 2001~2022年上市公司数字赋能指数.dta
- 2001~2022年上市公司数字赋能指数.xlsx
- 信息办公石大在线财务管理系统(含源码)-shidacaiwu.rar
- 信息办公电信计费系统完整代码-netctossconformity.rar
- matlab实现TD-SCDMA中初始同步捕捉DwPTS下行同步导频时隙的仿真.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功