📄 feedforall_parse_extensions.inc.php
字号:
<?PHP//// rss2html.php RSS feed to HTML webpage script//// Copyright 2006-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// rssMesh.php script free of charge. // Please refer to the EULA included in the download for full license// terms and conditions.//// $Id: FeedForAll_parse_Extensions.inc.php,v 3.0 2007/04/16 14:23:03 housley Exp $////// ==========================================================================// Configuration options// ==========================================================================//// ==========================================================================// Below this point of the file there are no user editable options. Your// are welcome to make any modifications that you wish to any of the code// below, but that is not necessary for normal use.// ==========================================================================// $Log: FeedForAll_parse_Extensions.inc.php,v $// Revision 3.0 2007/04/16 14:23:03 housley// Release version 3.0 of the scripts//// Revision 2.5 2007/04/06 11:08:58 housley// Add support for the Dublin Core (dc) namespace//// Revision 2.4 2007/03/07 02:11:59 housley// Add parsing the TrackBack extension//// Revision 2.3 2007/03/05 17:29:45 housley// Add a simple way to block parsing extensions//// Revision 2.2 2007/03/04 02:10:08 housley// Move the parser used by the paid scripts into its own file.//// Revision 2.1 2007/03/03 21:10:09 housley// * Make the item a full class object// * Support parsing the iTunes(R) extension//////if (!(isset($Dont_Parse_iTunes) && ($Dont_Parse_iTunes === TRUE))) { @include_once("FeedForAll_parse_iTunes.inc.php");}if (!(isset($Dont_Parse_TrackBack) && ($Dont_Parse_TrackBack === TRUE))) { @include_once("FeedForAll_parse_TrackBack.inc.php");}if (!(isset($Dont_Parse_DublinCore) && ($Dont_Parse_DublinCore === TRUE))) { @include_once("FeedForAll_parse_DublinCore.inc.php");}if (function_exists("FeedForAll_parseExtensions") === FALSE) { Function FeedForAll_parseExtensions() { return TRUE; } Function FeedForAll_parseExtensions_extendClass($className) { if (function_exists("FeedForAll_parse_iTunes_extendClass") === TRUE) { $className = FeedForAll_parse_iTunes_extendClass($className); } if (function_exists("FeedForAll_parse_TrackBack_extendClass") === TRUE) { $className = FeedForAll_parse_TrackBack_extendClass($className); } if (function_exists("FeedForAll_parse_DublinCore_extendClass") === TRUE) { $className = FeedForAll_parse_DublinCore_extendClass($className); } return $className; } Function FeedForAll_parseExtensions_extendParserClass($className) { if (function_exists("FeedForAll_parse_iTunes_extendParserClass") === TRUE) { $className = FeedForAll_parse_iTunes_extendParserClass($className); } if (function_exists("FeedForAll_parse_TrackBack_extendParserClass") === TRUE) { $className = FeedForAll_parse_TrackBack_extendParserClass($className); } if (function_exists("FeedForAll_parse_DublinCore_extendParserClass") === TRUE) { $className = FeedForAll_parse_DublinCore_extendParserClass($className); } return $className; } Function FeedForAll_parseExtensions_startElemend($parser, &$_this, $tagName, $attrs) { if (function_exists("FeedForAll_parse_iTunes_startElemend") === TRUE) { FeedForAll_parse_iTunes_startElemend($parser, $_this, $tagName, $attrs); } if (function_exists("FeedForAll_parse_TrackBack_startElemend") === TRUE) { FeedForAll_parse_TrackBack_startElemend($parser, $_this, $tagName, $attrs); } if (function_exists("FeedForAll_parse_DublinCore_startElemend") === TRUE) { FeedForAll_parse_DublinCore_startElemend($parser, $_this, $tagName, $attrs); } } Function FeedForAll_parseExtensions_endElemend($parser, &$_this, $tagName) { if (function_exists("FeedForAll_parse_iTunes_endElemend") === TRUE) { FeedForAll_parse_iTunes_endElemend($parser, $_this, $tagName); } if (function_exists("FeedForAll_parse_TrackBack_endElemend") === TRUE) { FeedForAll_parse_TrackBack_endElemend($parser, $_this, $tagName); } if (function_exists("FeedForAll_parse_DublinCore_endElemend") === TRUE) { FeedForAll_parse_DublinCore_endElemend($parser, $_this, $tagName); } } Function FeedForAll_parseExtensions_characterData($parser, &$_this, $data) { if (function_exists("FeedForAll_parse_iTunes_characterData") === TRUE) { FeedForAll_parse_iTunes_characterData($parser, $_this, $data); } if (function_exists("FeedForAll_parse_TrackBack_characterData") === TRUE) { FeedForAll_parse_TrackBack_characterData($parser, $_this, $data); } if (function_exists("FeedForAll_parse_DublinCore_characterData") === TRUE) { FeedForAll_parse_DublinCore_characterData($parser, $_this, $data); } } Function FeedForAll_parseExtensions_replaceInChannel($_this, $template) { if (function_exists("FeedForAll_parse_iTunes_replaceInChannel") === TRUE) { $template = FeedForAll_parse_iTunes_replaceInChannel($_this, $template); } if (function_exists("FeedForAll_parse_TrackBack_replaceInChannel") === TRUE) { $template = FeedForAll_parse_TrackBack_replaceInChannel($_this, $template); } if (function_exists("FeedForAll_parse_DublinCore_replaceInChannel") === TRUE) { $template = FeedForAll_parse_DublinCore_replaceInChannel($_this, $template); } return $template; } Function FeedForAll_parseExtensions_replaceInItem($currentItem, $item) { if (function_exists("FeedForAll_parse_iTunes_replaceInItem") === TRUE) { $item = FeedForAll_parse_iTunes_replaceInItem($currentItem, $item); } if (function_exists("FeedForAll_parse_TrackBack_replaceInItem") === TRUE) { $item = FeedForAll_parse_TrackBack_replaceInItem($currentItem, $item); } if (function_exists("FeedForAll_parse_DublinCore_replaceInItem") === TRUE) { $item = FeedForAll_parse_DublinCore_replaceInItem($currentItem, $item); } return $item; } Function FeedForAll_parseExtensions_createXML($currentItem) { $resultString = ""; if (function_exists("FeedForAll_parse_iTunes_createXML") === TRUE) { $resultString .= FeedForAll_parse_iTunes_createXML($currentItem); } if (function_exists("FeedForAll_parse_TrackBack_createXML") === TRUE) { $resultString .= FeedForAll_parse_TrackBack_createXML($currentItem); } if (function_exists("FeedForAll_parse_DublinCore_createXML") === TRUE) { $resultString .= FeedForAll_parse_DublinCore_createXML($currentItem); } return $resultString; } Function FeedForAll_parseExtensions_addNamespace($_this, $templateString) { if (function_exists("FeedForAll_parse_iTunes_addNamespace") === TRUE) { $templateString = FeedForAll_parse_iTunes_addNamespace($_this, $templateString); } if (function_exists("FeedForAll_parse_TrackBack_addNamespace") === TRUE) { $templateString = FeedForAll_parse_TrackBack_addNamespace($_this, $templateString); } if (function_exists("FeedForAll_parse_DublinCore_addNamespace") === TRUE) { $templateString = FeedForAll_parse_DublinCore_addNamespace($_this, $templateString); } return $templateString; } Function FeedForAll_parseExtensions_rss2sql_buildInsert($currentItem, $config, &$fields, &$values) { if (function_exists("FeedForAll_parse_iTunes_rss2sql_buildInsert") === TRUE) { FeedForAll_parse_iTunes_rss2sql_buildInsert($currentItem, $config, $fields, $values); } if (function_exists("FeedForAll_parse_TrackBack_rss2sql_buildInsert") === TRUE) { FeedForAll_parse_TrackBack_rss2sql_buildInsert($currentItem, $config, $fields, $values); } if (function_exists("FeedForAll_parse_DublinCore_rss2sql_buildInsert") === TRUE) { FeedForAll_parse_DublinCore_rss2sql_buildInsert($currentItem, $config, $fields, $values); } } Function FeedForAll_parseExtensions_rss2sql_buildConfig(&$config, &$_POST, $type) { if (function_exists("FeedForAll_parse_iTunes_rss2sql_buildConfig") === TRUE) { FeedForAll_parse_iTunes_rss2sql_buildConfig($config, $_POST, $type); } if (function_exists("FeedForAll_parse_TrackBack_rss2sql_buildConfig") === TRUE) { FeedForAll_parse_TrackBack_rss2sql_buildConfig($config, $_POST, $type); } if (function_exists("FeedForAll_parse_DublinCore_rss2sql_buildConfig") === TRUE) { FeedForAll_parse_DublinCore_rss2sql_buildConfig($config, $_POST, $type); } }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -