创意联盟

 找回密码
 注册

用新浪微博连接

一步搞定

QQ登录

只需一步,快速开始

搜索
热搜: mysql server
楼主: 流氓鱼

依悠广告管理系统 V2.1   [复制链接]

Rank: 1

发表于 2008-6-26 21:29:50 |显示全部楼层
写个带缓存的程序吧 减轻数据库负担  流量一大打开贼慢!

使用道具 举报

Rank: 16

发表于 2008-6-29 02:54:24 |显示全部楼层
原帖由 双鱼 于 2008-5-11 13:30 发表
依悠广告管理系统 V2.1 使用帮助

帮助你把网站上的所有广告按照广告大小或位置进行分类管理,然后用本系统分配的固定Scrip代码调用设置广告,获取代码请点广告管理的预览。

安装说明:

1. 需要支持ASP和Access数据库 ...


程序不错,我用了哈。不过我发现可以上传伪图片木马。我已经修复了。在AD_class中加入以下红色代码就搞定了。请管理员修复。其实也没有什么,只要后台地址不暴露,自已是不会上传木马哈!
UploadStream_c.Position=k-1
                UploadStream_c.CopyTo FormStream_h,l
                FormStream_h.SaveToFile SaveFile,2
                fsize = FormStream_h.size
                SaveFileName = Mid(SaveFile,InstrRev(SaveFile,"\")+1)
        whichfile=server.mappath(""& savepath&SaveFileName & "")               
        Set fso = CreateObject("Scripting.FileSystemObject")
        set thisfile=fso.opentextfile(whichfile)
        my_string=thisfile.readall
        if instr(LCase(my_string),"<%")<>0 or instr(LCase(my_string),"<%")<>0  or instr(LCase(my_string),"Request")<>0  or instr(LCase(my_string),"Session")<>0 or instr(LCase(my_string),"script")<>0 then
        dim muma
        muma=1
        Response.Write "<script language='javascript'>alert('同志,你上传木马病毒!');</script>"

       '以下如果上传是木马就自动删除上传的图片
        Set thisfile = FSO.GetFile(whichfile)
        thisfile.Delete True
        set fso=nothing
        end if
        if muma<>1 then '如果不是木马,就保存到数据库中
                Rs.Open "select * from "&sqlqname&"_file where f_name='"&SaveFileName&"'",Conn,1,3
                If Rs.eof Then Rs.AddNew
                Rs("f_name") = SaveFileName
                Rs("f_size") = fsize
                Rs("f_time") = now()
                Rs("f_path") = savepath&SaveFileName
                Rs.Update
                Rs.close
               
                Response.write "文件上传:<span style=""color:red;"">"&SaveFileName&"</span>文件上传成功!<a href=""?Menu=UpLoadF"">继续上传文件</a><br />"
                else'如果是木马就提示上传失败鸟
                Response.write "上传失败!<a href=""?Menu=UpLoadF"">重新上传文件</a<br />"
                End If
                End If


   修改者:四指  AD一下我的网站哦:www.kqiqi.com  和www.kqiqi.cn  ,管理员不介意吧!

使用道具 举报

Rank: 16

发表于 2008-6-29 04:41:50 |显示全部楼层
依悠,还发现一个问题,放妈妈和GG时单独生成JS可以调用,全部生成时调用不了。我先睡了,你有空看下,我明天再看下。

使用道具 举报

Rank: 16

发表于 2008-6-29 04:51:47 |显示全部楼层
1.
// JavaScript Document
now=new Date();
year=now.getYear();  //得到年份
month=now.getMonth()+1;  //得到月份
date=now.getDate();  //得到日期


var date1="";
var date2= year+"-"+month+"-"+date;
if (date1.length == 0)
{
document.writeln("<scr"+"ipt type=\"\"text\/javascr"+"ipt\"\"><!--google_ad_client = \"\"pub-8221324370003839\"\";\/* 468x15, 创建于 08-5-12 *\/google_ad_slot = \"\"3435173802\"\";google_ad_width = 468;google_ad_height = 15;\/\/--><\/scr"+"ipt><scr"+"ipt type=\"\"text\/javascr"+"ipt\"\"src=\"\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"\"><\/scr"+"ipt>");

}
else
{
execScript('s = DateDiff("d",date2,date1)','vbscript');
        if (s<0)
        {
document.writeln("广告位出租");

        }
        else
        {
document.writeln("<scr"+"ipt type=\"\"text\/javascr"+"ipt\"\"><!--google_ad_client = \"\"pub-8221324370003839\"\";\/* 468x15, 创建于 08-5-12 *\/google_ad_slot = \"\"3435173802\"\";google_ad_width = 468;google_ad_height = 15;\/\/--><\/scr"+"ipt><scr"+"ipt type=\"\"text\/javascr"+"ipt\"\"src=\"\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\"\"><\/scr"+"ipt>");

        }
}

2.
// JavaScript Document
now=new Date();
year=now.getYear();  //得到年份
month=now.getMonth()+1;  //得到月份
date=now.getDate();  //得到日期


var date1="";
var date2= year+"-"+month+"-"+date;
if (date1.length == 0)
{
document.writeln("<scr"+"ipt type=\"text\/javascr"+"ipt\"><!--");
document.writeln("google_ad_client = \"pub-8221324370003839\";");
document.writeln("\/* 468x15, 创建于 08-5-12 *\/");
document.writeln("google_ad_slot = \"3435173802\";");
document.writeln("google_ad_width = 468;");
document.writeln("google_ad_height = 15;");
document.writeln("\/\/-->");
document.writeln("<\/scr"+"ipt>");
document.writeln("<scr"+"ipt type=\"text\/javascr"+"ipt\"");
document.writeln("src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">");
document.writeln("<\/scr"+"ipt>");

}
else
{
execScript('s = DateDiff("d",date2,date1)','vbscript');
        if (s<0)
        {
document.writeln("广告位出租");

        }
        else
        {
document.writeln("<scr"+"ipt type=\"text\/javascr"+"ipt\"><!--");
document.writeln("google_ad_client = \"pub-8221324370003839\";");
document.writeln("\/* 468x15, 创建于 08-5-12 *\/");
document.writeln("google_ad_slot = \"3435173802\";");
document.writeln("google_ad_width = 468;");
document.writeln("google_ad_height = 15;");
document.writeln("\/\/-->");
document.writeln("<\/scr"+"ipt>");
document.writeln("<scr"+"ipt type=\"text\/javascr"+"ipt\"");
document.writeln("src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">");
document.writeln("<\/scr"+"ipt>");

        }
}

单独和全部所生成的不同

使用道具 举报

Rank: 16

发表于 2008-6-29 09:27:13 |显示全部楼层
哈哈,管理员还没有起床。

使用道具 举报

Rank: 16

发表于 2008-6-29 09:31:09 |显示全部楼层
原帖由 ad688 于 2008-6-26 21:29 发表
写个带缓存的程序吧 减轻数据库负担  流量一大打开贼慢!

你直接调JS就行了哦。嘻嘻

使用道具 举报

Rank: 80Rank: 80Rank: 80Rank: 80Rank: 80

发表于 2008-6-29 11:48:43 |显示全部楼层
2.2的我打算把上传功能去掉.

使用道具 举报

Rank: 4

发表于 2008-8-5 10:30:02 |显示全部楼层
我也看看。

使用道具 举报

Rank: 4

发表于 2008-8-6 17:11:01 |显示全部楼层

使用道具 举报

Rank: 1

发表于 2008-9-6 07:43:38 |显示全部楼层
加个点击统计吧。

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

Archiver|意盟 ( 闽ICP备06022703号 )

GMT+8, 2012-2-8 03:11 , Processed in 0.127074 second(s), 8 queries , Eaccelerator On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部