惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
L
Lohrmann on Cybersecurity
Simon Willison's Weblog
Simon Willison's Weblog
P
Proofpoint News Feed
P
Privacy International News Feed
The Hacker News
The Hacker News
AWS News Blog
AWS News Blog
S
Securelist
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
GbyAI
GbyAI
B
Blog RSS Feed
A
About on SuperTechFans
C
CXSECURITY Database RSS Feed - CXSecurity.com
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyberwarzone
Cyberwarzone
I
Intezer
T
Tor Project blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
W
WeLiveSecurity
D
DataBreaches.Net
U
Unit 42
Project Zero
Project Zero
Martin Fowler
Martin Fowler
V
V2EX
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V2EX - 技术
V2EX - 技术
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Threat Research - Cisco Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tenable Blog
F
Full Disclosure
T
The Exploit Database - CXSecurity.com
H
Heimdal Security Blog
Latest news
Latest news
Webroot Blog
Webroot Blog

博客园 - Chep

招聘 dotNet c# asp.net 、Windows Mobile 、iPhone 开发人员,工作地上海 iblogs博客程序1.0版 求一问题的解决方法 .TEXT 修改 二 - Chep [转载]防止盗链下载问题 微软.net精简框架常见问题及回答(中文版) 对.text的修改(1) 博客RSS 使用完全手册 主流 Blog 程序 Gif 文件格式译解 Visual Studio.Net鲜为人知的技巧 DotNet 网上资源 gif 文档 .net学习:显示/播放Gif动画 在.NET中实现彩色光标和自定义光标 创建基于 Microsoft .NET Framework 精简版的动画控件 Windows Mobile-一个新时代的开始 关于跨站验证 关于更新blog
添加 免责声明
Chep · 2005-04-24 · via 博客园 - Chep

在ui\controls\days.cs中如下
protected void PostCreated(object sender,  RepeaterItemEventArgs e)
  {
   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
   {
    Entry entry = (Entry)e.Item.DataItem;
    if(entry != null)
    {
     HyperLink hl = (HyperLink)e.Item.FindControl("TitleUrl");
     if(hl != null)
     {
      hl.NavigateUrl = entry.TitleUrl;
      hl.Text = entry.Title;
     }

     Literal PostText = (Literal)e.Item.FindControl("PostText");
     if(PostText != null&&!CurrentBlog.IsOnlyListTitle)
     {
      PostText.Text = Framework.Util.Globals.FilterScript(entry.Body);
      //陈鹏添加免责声明
      PostText.Text = PostText.Text + "<br><br><b>&nbsp;&nbsp;&nbsp;&nbsp;" + Dottext.Framework.Util.Globals.GetWebConfig("CopyRightDescript","版权归作者所有,如有版权问题请与作者联系") + "</b>";
    
     }

     Literal desc = (Literal)e.Item.FindControl("PostDescription");
     if(desc != null)
     {
      string link = entry.Link;
     }

     Literal PostDesc = (Literal)e.Item.FindControl("PostDesc");
     
     if(entry.PostType==PostType.BlogPost)
     {
      strEditLink=string.Format(UIData.EditPostsLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID);
     }
     if(entry.PostType==PostType.Article)
     {
      strEditLink=string.Format(UIData.EditArticleLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID);
     }

     strFavoriteLink=String.Format(UIData.FavoriteLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID,entry.TitleUrl);

     if(PostDesc != null)
     {
      if(CurrentBlog.EnableComments && entry.AllowComments)
      {
       PostDesc.Text = string.Format(postdescWithComments,entry.Link,BlogTime.ConvertToBloggerTime(entry.DateCreated,CurrentBlog.TimeZone).ToString("yyyy-MM-dd HH:mm"),entry.Author,entry.Link,entry.FeedBackCount,strEditLink,strFavoriteLink,entry.ViewCount);
      }
      else
      {
       PostDesc.Text = string.Format(postdescWithNoComments,entry.Link,BlogTime.ConvertToBloggerTime(entry.DateCreated,CurrentBlog.TimeZone).ToString("yyyy-MM-dd HH:mm"),entry.Author,strEditLink,strFavoriteLink,entry.ViewCount);
      }
     }
     
    }
   }
  }
ui\controls\viewpost.cs 中如下
protected override void OnLoad(EventArgs e)
  {
   base.OnLoad (e);
   
   //Get the entry
   Entry entry = Cacher.GetEntryFromRequest(Context,CacheTime.Medium); 
    
   
   //if found
   if(entry != null)
   {
    //Track this entry
    EntryTracker.Track(Context,entry.EntryID,CurrentBlog.BlogID);
    
    //Set the page title
    Globals.SetTitle(entry.Title,Context);

    //Sent entry properties
    TitleUrl.Text =entry.Title; //Server.HtmlEncode(entry.Title);
    TitleUrl.NavigateUrl = entry.TitleUrl;
    Body.Text = Framework.Util.Globals.FilterScript(entry.Body);
    
    //陈鹏添加免责声明
    Body.Text = Body.Text + "<br><br><b>&nbsp;&nbsp;&nbsp;&nbsp;" + Dottext.Framework.Util.Globals.GetWebConfig("CopyRightDescript","版权归作者所有,如有版权问题请与作者联系") + "</b>";
    
    strFavoriteLink=String.Format(UIData.FavoriteLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID);
    if(entry.PostType==PostType.BlogPost)
    {
     strEditLink=string.Format(UIData.EditPostsLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID);
    }
    if(entry.PostType==PostType.Article)
    {
     strEditLink=string.Format(UIData.EditArticleLink,CurrentBlog.FullyQualifiedUrl,entry.EntryID);
    }
    
    PostDescription.Text = string.Format("{0} {1} 阅读({5}) <a href='#Post'>评论({2})</a> {3}{4}",BlogTime.ConvertToBloggerTime(entry.DateCreated,CurrentBlog.TimeZone).ToString("yyyy-MM-dd HH:mm"),entry.Author,entry.FeedBackCount.ToString(),strEditLink,strFavoriteLink,entry.ViewCount);//string.Format("{0} {1}",entry.DateCreated.ToLongDateString(),entry.DateCreated.ToShortTimeString());
    
    //Set Pingback/Trackback
    PingBack.Text = TrackHelpers.PingPackTag;
    TrackBack.Text = TrackHelpers.TrackBackTag(entry);

   }
   else
   {
    //No post? Deleted? Help :)
    this.Controls.Clear();
    this.Controls.Add(new LiteralControl("<p><strong>The entry could not be found or has been removed</strong></p>"));
   }
  }