Edit File by line
/home/barbar84/public_h.../wp-inclu...
File: class-simplepie.php
<?php
[0] Fix | Delete
if ( ! class_exists( 'SimplePie', false ) ) :
[1] Fix | Delete
[2] Fix | Delete
// Load classes we will need.
[3] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Misc.php';
[4] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Cache.php';
[5] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/File.php';
[6] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Sanitize.php';
[7] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Registry.php';
[8] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/IRI.php';
[9] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Locator.php';
[10] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php';
[11] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php';
[12] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Parser.php';
[13] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Item.php';
[14] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Parse/Date.php';
[15] Fix | Delete
require ABSPATH . WPINC . '/SimplePie/Author.php';
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* WordPress autoloader for SimplePie.
[19] Fix | Delete
*
[20] Fix | Delete
* @since 3.5.0
[21] Fix | Delete
*/
[22] Fix | Delete
function wp_simplepie_autoload( $class ) {
[23] Fix | Delete
if ( 0 !== strpos( $class, 'SimplePie_' ) )
[24] Fix | Delete
return;
[25] Fix | Delete
[26] Fix | Delete
$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
[27] Fix | Delete
include $file;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* We autoload classes we may not need.
[32] Fix | Delete
*/
[33] Fix | Delete
spl_autoload_register( 'wp_simplepie_autoload' );
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* SimplePie
[37] Fix | Delete
*
[38] Fix | Delete
* A PHP-Based RSS and Atom Feed Framework.
[39] Fix | Delete
* Takes the hard work out of managing a complete RSS/Atom solution.
[40] Fix | Delete
*
[41] Fix | Delete
* Copyright (c) 2004-2017, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors
[42] Fix | Delete
* All rights reserved.
[43] Fix | Delete
*
[44] Fix | Delete
* Redistribution and use in source and binary forms, with or without modification, are
[45] Fix | Delete
* permitted provided that the following conditions are met:
[46] Fix | Delete
*
[47] Fix | Delete
* * Redistributions of source code must retain the above copyright notice, this list of
[48] Fix | Delete
* conditions and the following disclaimer.
[49] Fix | Delete
*
[50] Fix | Delete
* * Redistributions in binary form must reproduce the above copyright notice, this list
[51] Fix | Delete
* of conditions and the following disclaimer in the documentation and/or other materials
[52] Fix | Delete
* provided with the distribution.
[53] Fix | Delete
*
[54] Fix | Delete
* * Neither the name of the SimplePie Team nor the names of its contributors may be used
[55] Fix | Delete
* to endorse or promote products derived from this software without specific prior
[56] Fix | Delete
* written permission.
[57] Fix | Delete
*
[58] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
[59] Fix | Delete
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
[60] Fix | Delete
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
[61] Fix | Delete
* AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[62] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
[63] Fix | Delete
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
[64] Fix | Delete
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
[65] Fix | Delete
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[66] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[67] Fix | Delete
*
[68] Fix | Delete
* @package SimplePie
[69] Fix | Delete
* @version 1.5.6
[70] Fix | Delete
* @copyright 2004-2017 Ryan Parman, Sam Sneddon, Ryan McCue
[71] Fix | Delete
* @author Ryan Parman
[72] Fix | Delete
* @author Sam Sneddon
[73] Fix | Delete
* @author Ryan McCue
[74] Fix | Delete
* @link http://simplepie.org/ SimplePie
[75] Fix | Delete
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
[76] Fix | Delete
*/
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* SimplePie Name
[80] Fix | Delete
*/
[81] Fix | Delete
define('SIMPLEPIE_NAME', 'SimplePie');
[82] Fix | Delete
[83] Fix | Delete
/**
[84] Fix | Delete
* SimplePie Version
[85] Fix | Delete
*/
[86] Fix | Delete
define('SIMPLEPIE_VERSION', '1.5.6');
[87] Fix | Delete
[88] Fix | Delete
/**
[89] Fix | Delete
* SimplePie Build
[90] Fix | Delete
* @todo Hardcode for release (there's no need to have to call SimplePie_Misc::get_build() only every load of simplepie.inc)
[91] Fix | Delete
*/
[92] Fix | Delete
define('SIMPLEPIE_BUILD', gmdate('YmdHis', SimplePie_Misc::get_build()));
[93] Fix | Delete
[94] Fix | Delete
/**
[95] Fix | Delete
* SimplePie Website URL
[96] Fix | Delete
*/
[97] Fix | Delete
define('SIMPLEPIE_URL', 'http://simplepie.org');
[98] Fix | Delete
[99] Fix | Delete
/**
[100] Fix | Delete
* SimplePie Useragent
[101] Fix | Delete
* @see SimplePie::set_useragent()
[102] Fix | Delete
*/
[103] Fix | Delete
define('SIMPLEPIE_USERAGENT', SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION . ' (Feed Parser; ' . SIMPLEPIE_URL . '; Allow like Gecko) Build/' . SIMPLEPIE_BUILD);
[104] Fix | Delete
[105] Fix | Delete
/**
[106] Fix | Delete
* SimplePie Linkback
[107] Fix | Delete
*/
[108] Fix | Delete
define('SIMPLEPIE_LINKBACK', '<a href="' . SIMPLEPIE_URL . '" title="' . SIMPLEPIE_NAME . ' ' . SIMPLEPIE_VERSION . '">' . SIMPLEPIE_NAME . '</a>');
[109] Fix | Delete
[110] Fix | Delete
/**
[111] Fix | Delete
* No Autodiscovery
[112] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[113] Fix | Delete
*/
[114] Fix | Delete
define('SIMPLEPIE_LOCATOR_NONE', 0);
[115] Fix | Delete
[116] Fix | Delete
/**
[117] Fix | Delete
* Feed Link Element Autodiscovery
[118] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[119] Fix | Delete
*/
[120] Fix | Delete
define('SIMPLEPIE_LOCATOR_AUTODISCOVERY', 1);
[121] Fix | Delete
[122] Fix | Delete
/**
[123] Fix | Delete
* Local Feed Extension Autodiscovery
[124] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[125] Fix | Delete
*/
[126] Fix | Delete
define('SIMPLEPIE_LOCATOR_LOCAL_EXTENSION', 2);
[127] Fix | Delete
[128] Fix | Delete
/**
[129] Fix | Delete
* Local Feed Body Autodiscovery
[130] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[131] Fix | Delete
*/
[132] Fix | Delete
define('SIMPLEPIE_LOCATOR_LOCAL_BODY', 4);
[133] Fix | Delete
[134] Fix | Delete
/**
[135] Fix | Delete
* Remote Feed Extension Autodiscovery
[136] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[137] Fix | Delete
*/
[138] Fix | Delete
define('SIMPLEPIE_LOCATOR_REMOTE_EXTENSION', 8);
[139] Fix | Delete
[140] Fix | Delete
/**
[141] Fix | Delete
* Remote Feed Body Autodiscovery
[142] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[143] Fix | Delete
*/
[144] Fix | Delete
define('SIMPLEPIE_LOCATOR_REMOTE_BODY', 16);
[145] Fix | Delete
[146] Fix | Delete
/**
[147] Fix | Delete
* All Feed Autodiscovery
[148] Fix | Delete
* @see SimplePie::set_autodiscovery_level()
[149] Fix | Delete
*/
[150] Fix | Delete
define('SIMPLEPIE_LOCATOR_ALL', 31);
[151] Fix | Delete
[152] Fix | Delete
/**
[153] Fix | Delete
* No known feed type
[154] Fix | Delete
*/
[155] Fix | Delete
define('SIMPLEPIE_TYPE_NONE', 0);
[156] Fix | Delete
[157] Fix | Delete
/**
[158] Fix | Delete
* RSS 0.90
[159] Fix | Delete
*/
[160] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_090', 1);
[161] Fix | Delete
[162] Fix | Delete
/**
[163] Fix | Delete
* RSS 0.91 (Netscape)
[164] Fix | Delete
*/
[165] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_091_NETSCAPE', 2);
[166] Fix | Delete
[167] Fix | Delete
/**
[168] Fix | Delete
* RSS 0.91 (Userland)
[169] Fix | Delete
*/
[170] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_091_USERLAND', 4);
[171] Fix | Delete
[172] Fix | Delete
/**
[173] Fix | Delete
* RSS 0.91 (both Netscape and Userland)
[174] Fix | Delete
*/
[175] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_091', 6);
[176] Fix | Delete
[177] Fix | Delete
/**
[178] Fix | Delete
* RSS 0.92
[179] Fix | Delete
*/
[180] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_092', 8);
[181] Fix | Delete
[182] Fix | Delete
/**
[183] Fix | Delete
* RSS 0.93
[184] Fix | Delete
*/
[185] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_093', 16);
[186] Fix | Delete
[187] Fix | Delete
/**
[188] Fix | Delete
* RSS 0.94
[189] Fix | Delete
*/
[190] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_094', 32);
[191] Fix | Delete
[192] Fix | Delete
/**
[193] Fix | Delete
* RSS 1.0
[194] Fix | Delete
*/
[195] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_10', 64);
[196] Fix | Delete
[197] Fix | Delete
/**
[198] Fix | Delete
* RSS 2.0
[199] Fix | Delete
*/
[200] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_20', 128);
[201] Fix | Delete
[202] Fix | Delete
/**
[203] Fix | Delete
* RDF-based RSS
[204] Fix | Delete
*/
[205] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_RDF', 65);
[206] Fix | Delete
[207] Fix | Delete
/**
[208] Fix | Delete
* Non-RDF-based RSS (truly intended as syndication format)
[209] Fix | Delete
*/
[210] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_SYNDICATION', 190);
[211] Fix | Delete
[212] Fix | Delete
/**
[213] Fix | Delete
* All RSS
[214] Fix | Delete
*/
[215] Fix | Delete
define('SIMPLEPIE_TYPE_RSS_ALL', 255);
[216] Fix | Delete
[217] Fix | Delete
/**
[218] Fix | Delete
* Atom 0.3
[219] Fix | Delete
*/
[220] Fix | Delete
define('SIMPLEPIE_TYPE_ATOM_03', 256);
[221] Fix | Delete
[222] Fix | Delete
/**
[223] Fix | Delete
* Atom 1.0
[224] Fix | Delete
*/
[225] Fix | Delete
define('SIMPLEPIE_TYPE_ATOM_10', 512);
[226] Fix | Delete
[227] Fix | Delete
/**
[228] Fix | Delete
* All Atom
[229] Fix | Delete
*/
[230] Fix | Delete
define('SIMPLEPIE_TYPE_ATOM_ALL', 768);
[231] Fix | Delete
[232] Fix | Delete
/**
[233] Fix | Delete
* All feed types
[234] Fix | Delete
*/
[235] Fix | Delete
define('SIMPLEPIE_TYPE_ALL', 1023);
[236] Fix | Delete
[237] Fix | Delete
/**
[238] Fix | Delete
* No construct
[239] Fix | Delete
*/
[240] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_NONE', 0);
[241] Fix | Delete
[242] Fix | Delete
/**
[243] Fix | Delete
* Text construct
[244] Fix | Delete
*/
[245] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_TEXT', 1);
[246] Fix | Delete
[247] Fix | Delete
/**
[248] Fix | Delete
* HTML construct
[249] Fix | Delete
*/
[250] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_HTML', 2);
[251] Fix | Delete
[252] Fix | Delete
/**
[253] Fix | Delete
* XHTML construct
[254] Fix | Delete
*/
[255] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_XHTML', 4);
[256] Fix | Delete
[257] Fix | Delete
/**
[258] Fix | Delete
* base64-encoded construct
[259] Fix | Delete
*/
[260] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_BASE64', 8);
[261] Fix | Delete
[262] Fix | Delete
/**
[263] Fix | Delete
* IRI construct
[264] Fix | Delete
*/
[265] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_IRI', 16);
[266] Fix | Delete
[267] Fix | Delete
/**
[268] Fix | Delete
* A construct that might be HTML
[269] Fix | Delete
*/
[270] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_MAYBE_HTML', 32);
[271] Fix | Delete
[272] Fix | Delete
/**
[273] Fix | Delete
* All constructs
[274] Fix | Delete
*/
[275] Fix | Delete
define('SIMPLEPIE_CONSTRUCT_ALL', 63);
[276] Fix | Delete
[277] Fix | Delete
/**
[278] Fix | Delete
* Don't change case
[279] Fix | Delete
*/
[280] Fix | Delete
define('SIMPLEPIE_SAME_CASE', 1);
[281] Fix | Delete
[282] Fix | Delete
/**
[283] Fix | Delete
* Change to lowercase
[284] Fix | Delete
*/
[285] Fix | Delete
define('SIMPLEPIE_LOWERCASE', 2);
[286] Fix | Delete
[287] Fix | Delete
/**
[288] Fix | Delete
* Change to uppercase
[289] Fix | Delete
*/
[290] Fix | Delete
define('SIMPLEPIE_UPPERCASE', 4);
[291] Fix | Delete
[292] Fix | Delete
/**
[293] Fix | Delete
* PCRE for HTML attributes
[294] Fix | Delete
*/
[295] Fix | Delete
define('SIMPLEPIE_PCRE_HTML_ATTRIBUTE', '((?:[\x09\x0A\x0B\x0C\x0D\x20]+[^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3D\x3E]*(?:[\x09\x0A\x0B\x0C\x0D\x20]*=[\x09\x0A\x0B\x0C\x0D\x20]*(?:"(?:[^"]*)"|\'(?:[^\']*)\'|(?:[^\x09\x0A\x0B\x0C\x0D\x20\x22\x27\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x3E]*)?))?)*)[\x09\x0A\x0B\x0C\x0D\x20]*');
[296] Fix | Delete
[297] Fix | Delete
/**
[298] Fix | Delete
* PCRE for XML attributes
[299] Fix | Delete
*/
[300] Fix | Delete
define('SIMPLEPIE_PCRE_XML_ATTRIBUTE', '((?:\s+(?:(?:[^\s:]+:)?[^\s:]+)\s*=\s*(?:"(?:[^"]*)"|\'(?:[^\']*)\'))*)\s*');
[301] Fix | Delete
[302] Fix | Delete
/**
[303] Fix | Delete
* XML Namespace
[304] Fix | Delete
*/
[305] Fix | Delete
define('SIMPLEPIE_NAMESPACE_XML', 'http://www.w3.org/XML/1998/namespace');
[306] Fix | Delete
[307] Fix | Delete
/**
[308] Fix | Delete
* Atom 1.0 Namespace
[309] Fix | Delete
*/
[310] Fix | Delete
define('SIMPLEPIE_NAMESPACE_ATOM_10', 'http://www.w3.org/2005/Atom');
[311] Fix | Delete
[312] Fix | Delete
/**
[313] Fix | Delete
* Atom 0.3 Namespace
[314] Fix | Delete
*/
[315] Fix | Delete
define('SIMPLEPIE_NAMESPACE_ATOM_03', 'http://purl.org/atom/ns#');
[316] Fix | Delete
[317] Fix | Delete
/**
[318] Fix | Delete
* RDF Namespace
[319] Fix | Delete
*/
[320] Fix | Delete
define('SIMPLEPIE_NAMESPACE_RDF', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
[321] Fix | Delete
[322] Fix | Delete
/**
[323] Fix | Delete
* RSS 0.90 Namespace
[324] Fix | Delete
*/
[325] Fix | Delete
define('SIMPLEPIE_NAMESPACE_RSS_090', 'http://my.netscape.com/rdf/simple/0.9/');
[326] Fix | Delete
[327] Fix | Delete
/**
[328] Fix | Delete
* RSS 1.0 Namespace
[329] Fix | Delete
*/
[330] Fix | Delete
define('SIMPLEPIE_NAMESPACE_RSS_10', 'http://purl.org/rss/1.0/');
[331] Fix | Delete
[332] Fix | Delete
/**
[333] Fix | Delete
* RSS 1.0 Content Module Namespace
[334] Fix | Delete
*/
[335] Fix | Delete
define('SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT', 'http://purl.org/rss/1.0/modules/content/');
[336] Fix | Delete
[337] Fix | Delete
/**
[338] Fix | Delete
* RSS 2.0 Namespace
[339] Fix | Delete
* (Stupid, I know, but I'm certain it will confuse people less with support.)
[340] Fix | Delete
*/
[341] Fix | Delete
define('SIMPLEPIE_NAMESPACE_RSS_20', '');
[342] Fix | Delete
[343] Fix | Delete
/**
[344] Fix | Delete
* DC 1.0 Namespace
[345] Fix | Delete
*/
[346] Fix | Delete
define('SIMPLEPIE_NAMESPACE_DC_10', 'http://purl.org/dc/elements/1.0/');
[347] Fix | Delete
[348] Fix | Delete
/**
[349] Fix | Delete
* DC 1.1 Namespace
[350] Fix | Delete
*/
[351] Fix | Delete
define('SIMPLEPIE_NAMESPACE_DC_11', 'http://purl.org/dc/elements/1.1/');
[352] Fix | Delete
[353] Fix | Delete
/**
[354] Fix | Delete
* W3C Basic Geo (WGS84 lat/long) Vocabulary Namespace
[355] Fix | Delete
*/
[356] Fix | Delete
define('SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO', 'http://www.w3.org/2003/01/geo/wgs84_pos#');
[357] Fix | Delete
[358] Fix | Delete
/**
[359] Fix | Delete
* GeoRSS Namespace
[360] Fix | Delete
*/
[361] Fix | Delete
define('SIMPLEPIE_NAMESPACE_GEORSS', 'http://www.georss.org/georss');
[362] Fix | Delete
[363] Fix | Delete
/**
[364] Fix | Delete
* Media RSS Namespace
[365] Fix | Delete
*/
[366] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS', 'http://search.yahoo.com/mrss/');
[367] Fix | Delete
[368] Fix | Delete
/**
[369] Fix | Delete
* Wrong Media RSS Namespace. Caused by a long-standing typo in the spec.
[370] Fix | Delete
*/
[371] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG', 'http://search.yahoo.com/mrss');
[372] Fix | Delete
[373] Fix | Delete
/**
[374] Fix | Delete
* Wrong Media RSS Namespace #2. New namespace introduced in Media RSS 1.5.
[375] Fix | Delete
*/
[376] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG2', 'http://video.search.yahoo.com/mrss');
[377] Fix | Delete
[378] Fix | Delete
/**
[379] Fix | Delete
* Wrong Media RSS Namespace #3. A possible typo of the Media RSS 1.5 namespace.
[380] Fix | Delete
*/
[381] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG3', 'http://video.search.yahoo.com/mrss/');
[382] Fix | Delete
[383] Fix | Delete
/**
[384] Fix | Delete
* Wrong Media RSS Namespace #4. New spec location after the RSS Advisory Board takes it over, but not a valid namespace.
[385] Fix | Delete
*/
[386] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG4', 'http://www.rssboard.org/media-rss');
[387] Fix | Delete
[388] Fix | Delete
/**
[389] Fix | Delete
* Wrong Media RSS Namespace #5. A possible typo of the RSS Advisory Board URL.
[390] Fix | Delete
*/
[391] Fix | Delete
define('SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG5', 'http://www.rssboard.org/media-rss/');
[392] Fix | Delete
[393] Fix | Delete
/**
[394] Fix | Delete
* iTunes RSS Namespace
[395] Fix | Delete
*/
[396] Fix | Delete
define('SIMPLEPIE_NAMESPACE_ITUNES', 'http://www.itunes.com/dtds/podcast-1.0.dtd');
[397] Fix | Delete
[398] Fix | Delete
/**
[399] Fix | Delete
* XHTML Namespace
[400] Fix | Delete
*/
[401] Fix | Delete
define('SIMPLEPIE_NAMESPACE_XHTML', 'http://www.w3.org/1999/xhtml');
[402] Fix | Delete
[403] Fix | Delete
/**
[404] Fix | Delete
* IANA Link Relations Registry
[405] Fix | Delete
*/
[406] Fix | Delete
define('SIMPLEPIE_IANA_LINK_RELATIONS_REGISTRY', 'http://www.iana.org/assignments/relation/');
[407] Fix | Delete
[408] Fix | Delete
/**
[409] Fix | Delete
* No file source
[410] Fix | Delete
*/
[411] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_NONE', 0);
[412] Fix | Delete
[413] Fix | Delete
/**
[414] Fix | Delete
* Remote file source
[415] Fix | Delete
*/
[416] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_REMOTE', 1);
[417] Fix | Delete
[418] Fix | Delete
/**
[419] Fix | Delete
* Local file source
[420] Fix | Delete
*/
[421] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_LOCAL', 2);
[422] Fix | Delete
[423] Fix | Delete
/**
[424] Fix | Delete
* fsockopen() file source
[425] Fix | Delete
*/
[426] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_FSOCKOPEN', 4);
[427] Fix | Delete
[428] Fix | Delete
/**
[429] Fix | Delete
* cURL file source
[430] Fix | Delete
*/
[431] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_CURL', 8);
[432] Fix | Delete
[433] Fix | Delete
/**
[434] Fix | Delete
* file_get_contents() file source
[435] Fix | Delete
*/
[436] Fix | Delete
define('SIMPLEPIE_FILE_SOURCE_FILE_GET_CONTENTS', 16);
[437] Fix | Delete
[438] Fix | Delete
[439] Fix | Delete
[440] Fix | Delete
/**
[441] Fix | Delete
* SimplePie
[442] Fix | Delete
*
[443] Fix | Delete
* @package SimplePie
[444] Fix | Delete
* @subpackage API
[445] Fix | Delete
*/
[446] Fix | Delete
class SimplePie
[447] Fix | Delete
{
[448] Fix | Delete
/**
[449] Fix | Delete
* @var array Raw data
[450] Fix | Delete
* @access private
[451] Fix | Delete
*/
[452] Fix | Delete
public $data = array();
[453] Fix | Delete
[454] Fix | Delete
/**
[455] Fix | Delete
* @var mixed Error string
[456] Fix | Delete
* @access private
[457] Fix | Delete
*/
[458] Fix | Delete
public $error;
[459] Fix | Delete
[460] Fix | Delete
/**
[461] Fix | Delete
* @var object Instance of SimplePie_Sanitize (or other class)
[462] Fix | Delete
* @see SimplePie::set_sanitize_class()
[463] Fix | Delete
* @access private
[464] Fix | Delete
*/
[465] Fix | Delete
public $sanitize;
[466] Fix | Delete
[467] Fix | Delete
/**
[468] Fix | Delete
* @var string SimplePie Useragent
[469] Fix | Delete
* @see SimplePie::set_useragent()
[470] Fix | Delete
* @access private
[471] Fix | Delete
*/
[472] Fix | Delete
public $useragent = SIMPLEPIE_USERAGENT;
[473] Fix | Delete
[474] Fix | Delete
/**
[475] Fix | Delete
* @var string Feed URL
[476] Fix | Delete
* @see SimplePie::set_feed_url()
[477] Fix | Delete
* @access private
[478] Fix | Delete
*/
[479] Fix | Delete
public $feed_url;
[480] Fix | Delete
[481] Fix | Delete
/**
[482] Fix | Delete
* @var string Original feed URL, or new feed URL iff HTTP 301 Moved Permanently
[483] Fix | Delete
* @see SimplePie::subscribe_url()
[484] Fix | Delete
* @access private
[485] Fix | Delete
*/
[486] Fix | Delete
public $permanent_url = null;
[487] Fix | Delete
[488] Fix | Delete
/**
[489] Fix | Delete
* @var object Instance of SimplePie_File to use as a feed
[490] Fix | Delete
* @see SimplePie::set_file()
[491] Fix | Delete
* @access private
[492] Fix | Delete
*/
[493] Fix | Delete
public $file;
[494] Fix | Delete
[495] Fix | Delete
/**
[496] Fix | Delete
* @var string Raw feed data
[497] Fix | Delete
* @see SimplePie::set_raw_data()
[498] Fix | Delete
* @access private
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function