📄 rssfilter_samplescript.php
字号:
<?php//// rssFilter.php Filter RSS feeds//// Copyright 2007 NotePage, Inc.// http://www.feedforall.com//// NotePage, Inc. grants registerd users of our FeedForAll and/or// FeedForAll Mac product(s) the right to install and use the// rssFilter.php script free of charge.// Please refer to the EULA included in the download for full license// terms and conditions.//// $Id: rssFilter_SampleScript.php,v 3.0 2007/04/16 14:23:04 housley Exp $//// The URL of the feed.$XMLfilename = "http://www.FeedForAll.com/blog-feed.xml";$useOutputCaching = 1;$debugLevel = 1;//// Since we are calling rssFilter.php from here, we don't want// to include a separate script file.$FilterScriptFilename = "DO_NOT_INCLUDE_SCRIPT";if (!isset($_REQUEST["buildScript"])) { @include("rssFilter.php");}$matchType = "AND";$filterElements = Array(Array("Field" => "~~~ItemTitle~~~", "Filter" => "contains", "Value" => "FeedForAll", "MatchCase" => 1 ),Array("Field" => "~~~ItemDescription~~~", "Filter" => "notContains", "Value" => "RecordForAll", "MatchCase" => 1 ));//// The function that decides if the current item will be used.// return TRUE to use the itme, FALSE to notif (!isset($_REQUEST["buildScript"])) { Function rssFilter_useItem($currentItem) { // the default fall through is to use the item if ($currentItem->contains("~~~ItemTitle~~~", "FeedForAll", 1) && $currentItem->notContains("~~~ItemDescription~~~", "RecordForAll", 1)) { return TRUE; } return FALSE; }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -