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

推荐订阅源

罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
博客园 - 三生石上(FineUI控件)
V
V2EX
有赞技术团队
有赞技术团队
V
Visual Studio Blog
小众软件
小众软件
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
量子位
T
Tailwind CSS Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
Cisco Talos Blog
Cisco Talos Blog
I
Intezer
Project Zero
Project Zero
A
Arctic Wolf
P
Privacy International News Feed
V
Vulnerabilities – Threatpost
L
Lohrmann on Cybersecurity
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Tor Project blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Security @ Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
L
LINUX DO - 热门话题
G
GRAHAM CLULEY
Help Net Security
Help Net Security
N
News | PayPal Newsroom
W
WeLiveSecurity
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
C
Check Point 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>"));
   }
  }