Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
f64c86f5
Commit
f64c86f5
authored
Sep 16, 2010
by
tbrehm
Browse files
Fixed: FS#1281 - PHP Error Dashboard php 5.3
parent
1c257ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/simplepie.inc.php
View file @
f64c86f5
...
...
@@ -735,7 +735,7 @@ class simplepie
function
SimplePie
(
$feed_url
=
null
,
$cache_location
=
null
,
$cache_duration
=
null
)
{
// Other objects, instances created here so we can set options on them
$this
->
sanitize
=
&
new
SimplePie_Sanitize
;
$this
->
sanitize
=
new
SimplePie_Sanitize
;
// Set options if they're passed to the constructor
if
(
$cache_location
!==
null
)
...
...
@@ -1105,7 +1105,7 @@ class simplepie
{
if
(
SimplePie_Misc
::
is_subclass_of
(
$class
,
'SimplePie_Sanitize'
))
{
$this
->
sanitize
=
&
new
$class
;
$this
->
sanitize
=
new
$class
;
return
true
;
}
return
false
;
...
...
@@ -1599,7 +1599,7 @@ class simplepie
{
$headers
[
'if-none-match'
]
=
'"'
.
$this
->
data
[
'headers'
][
'etag'
]
.
'"'
;
}
$file
=
&
new
$this
->
file_class
(
$this
->
feed_url
,
$this
->
timeout
/
10
,
5
,
$headers
,
$this
->
useragent
,
$this
->
force_fsockopen
);
$file
=
new
$this
->
file_class
(
$this
->
feed_url
,
$this
->
timeout
/
10
,
5
,
$headers
,
$this
->
useragent
,
$this
->
force_fsockopen
);
if
(
$file
->
success
)
{
if
(
$file
->
status_code
===
304
)
...
...
@@ -1640,7 +1640,7 @@ class simplepie
}
else
{
$file
=
&
new
$this
->
file_class
(
$this
->
feed_url
,
$this
->
timeout
,
5
,
null
,
$this
->
useragent
,
$this
->
force_fsockopen
);
$file
=
new
$this
->
file_class
(
$this
->
feed_url
,
$this
->
timeout
,
5
,
null
,
$this
->
useragent
,
$this
->
force_fsockopen
);
}
}
// If the file connection has an error, set SimplePie::error to that and quit
...
...
@@ -1660,7 +1660,7 @@ class simplepie
if
(
!
$this
->
force_feed
)
{
// Check if the supplied URL is a feed, if it isn't, look for it.
$locate
=
&
new
$this
->
locator_class
(
$file
,
$this
->
timeout
,
$this
->
useragent
,
$this
->
file_class
,
$this
->
max_checked_feeds
,
$this
->
content_type_sniffer_class
);
$locate
=
new
$this
->
locator_class
(
$file
,
$this
->
timeout
,
$this
->
useragent
,
$this
->
file_class
,
$this
->
max_checked_feeds
,
$this
->
content_type_sniffer_class
);
if
(
!
$locate
->
is_feed
(
$file
))
{
// We need to unset this so that if SimplePie::set_file() has been called that object is untouched
...
...
@@ -1690,7 +1690,7 @@ class simplepie
$headers
=
$file
->
headers
;
$data
=
$file
->
body
;
$sniffer
=
&
new
$this
->
content_type_sniffer_class
(
$file
);
$sniffer
=
new
$this
->
content_type_sniffer_class
(
$file
);
$sniffed
=
$sniffer
->
get_type
();
}
else
...
...
@@ -1760,7 +1760,7 @@ class simplepie
if
(
$utf8_data
=
SimplePie_Misc
::
change_encoding
(
$data
,
$encoding
,
'UTF-8'
))
{
// Create new parser
$parser
=
&
new
$this
->
parser_class
();
$parser
=
new
$this
->
parser_class
();
// If it's parsed fine
if
(
$parser
->
parse
(
$utf8_data
,
'UTF-8'
))
...
...
@@ -1971,11 +1971,11 @@ class simplepie
}
else
{
$file
=
&
new
$this
->
file_class
(
$favicon
,
$this
->
timeout
/
10
,
5
,
array
(
'X-FORWARDED-FOR'
=>
$_SERVER
[
'REMOTE_ADDR'
]),
$this
->
useragent
,
$this
->
force_fsockopen
);
$file
=
new
$this
->
file_class
(
$favicon
,
$this
->
timeout
/
10
,
5
,
array
(
'X-FORWARDED-FOR'
=>
$_SERVER
[
'REMOTE_ADDR'
]),
$this
->
useragent
,
$this
->
force_fsockopen
);
if
(
$file
->
success
&&
(
$file
->
method
&
SIMPLEPIE_FILE_SOURCE_REMOTE
===
0
||
(
$file
->
status_code
===
200
||
$file
->
status_code
>
206
&&
$file
->
status_code
<
300
))
&&
strlen
(
$file
->
body
)
>
0
)
{
$sniffer
=
&
new
$this
->
content_type_sniffer_class
(
$file
);
$sniffer
=
new
$this
->
content_type_sniffer_class
(
$file
);
if
(
substr
(
$sniffer
->
get_type
(),
0
,
6
)
===
'image/'
)
{
if
(
$cache
->
save
(
array
(
'headers'
=>
$file
->
headers
,
'body'
=>
$file
->
body
)))
...
...
@@ -2374,7 +2374,7 @@ class simplepie
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories
[]
=
&
new
$this
->
category_class
(
$term
,
$scheme
,
$label
);
$categories
[]
=
new
$this
->
category_class
(
$term
,
$scheme
,
$label
);
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_RSS_20
,
'category'
)
as
$category
)
{
...
...
@@ -2389,15 +2389,15 @@ class simplepie
{
$scheme
=
null
;
}
$categories
[]
=
&
new
$this
->
category_class
(
$term
,
$scheme
,
null
);
$categories
[]
=
new
$this
->
category_class
(
$term
,
$scheme
,
null
);
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_DC_11
,
'subject'
)
as
$category
)
{
$categories
[]
=
&
new
$this
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$categories
[]
=
new
$this
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_DC_10
,
'subject'
)
as
$category
)
{
$categories
[]
=
&
new
$this
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$categories
[]
=
new
$this
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
if
(
!
empty
(
$categories
))
...
...
@@ -2445,7 +2445,7 @@ class simplepie
}
if
(
$name
!==
null
||
$email
!==
null
||
$uri
!==
null
)
{
$authors
[]
=
&
new
$this
->
author_class
(
$name
,
$uri
,
$email
);
$authors
[]
=
new
$this
->
author_class
(
$name
,
$uri
,
$email
);
}
}
if
(
$author
=
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ATOM_03
,
'author'
))
...
...
@@ -2467,20 +2467,20 @@ class simplepie
}
if
(
$name
!==
null
||
$email
!==
null
||
$url
!==
null
)
{
$authors
[]
=
&
new
$this
->
author_class
(
$name
,
$url
,
$email
);
$authors
[]
=
new
$this
->
author_class
(
$name
,
$url
,
$email
);
}
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_DC_11
,
'creator'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_DC_10
,
'creator'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'author'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
if
(
!
empty
(
$authors
))
...
...
@@ -2528,7 +2528,7 @@ class simplepie
}
if
(
$name
!==
null
||
$email
!==
null
||
$uri
!==
null
)
{
$contributors
[]
=
&
new
$this
->
author_class
(
$name
,
$uri
,
$email
);
$contributors
[]
=
new
$this
->
author_class
(
$name
,
$uri
,
$email
);
}
}
foreach
((
array
)
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ATOM_03
,
'contributor'
)
as
$contributor
)
...
...
@@ -2550,7 +2550,7 @@ class simplepie
}
if
(
$name
!==
null
||
$email
!==
null
||
$url
!==
null
)
{
$contributors
[]
=
&
new
$this
->
author_class
(
$name
,
$url
,
$email
);
$contributors
[]
=
new
$this
->
author_class
(
$name
,
$url
,
$email
);
}
}
...
...
@@ -2964,7 +2964,7 @@ class simplepie
$keys
=
array_keys
(
$items
);
foreach
(
$keys
as
$key
)
{
$this
->
data
[
'items'
][]
=
&
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
$this
->
data
[
'items'
][]
=
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
}
}
if
(
$items
=
$this
->
get_feed_tags
(
SIMPLEPIE_NAMESPACE_ATOM_03
,
'entry'
))
...
...
@@ -2972,7 +2972,7 @@ class simplepie
$keys
=
array_keys
(
$items
);
foreach
(
$keys
as
$key
)
{
$this
->
data
[
'items'
][]
=
&
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
$this
->
data
[
'items'
][]
=
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
}
}
if
(
$items
=
$this
->
get_feed_tags
(
SIMPLEPIE_NAMESPACE_RSS_10
,
'item'
))
...
...
@@ -2980,7 +2980,7 @@ class simplepie
$keys
=
array_keys
(
$items
);
foreach
(
$keys
as
$key
)
{
$this
->
data
[
'items'
][]
=
&
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
$this
->
data
[
'items'
][]
=
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
}
}
if
(
$items
=
$this
->
get_feed_tags
(
SIMPLEPIE_NAMESPACE_RSS_090
,
'item'
))
...
...
@@ -2988,7 +2988,7 @@ class simplepie
$keys
=
array_keys
(
$items
);
foreach
(
$keys
as
$key
)
{
$this
->
data
[
'items'
][]
=
&
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
$this
->
data
[
'items'
][]
=
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
}
}
if
(
$items
=
$this
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_RSS_20
,
'item'
))
...
...
@@ -2996,7 +2996,7 @@ class simplepie
$keys
=
array_keys
(
$items
);
foreach
(
$keys
as
$key
)
{
$this
->
data
[
'items'
][]
=
&
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
$this
->
data
[
'items'
][]
=
new
$this
->
item_class
(
$this
,
$items
[
$key
]);
}
}
}
...
...
@@ -3347,7 +3347,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_RSS_20
,
'category'
)
as
$category
)
{
...
...
@@ -3362,15 +3362,15 @@ class SimplePie_Item
{
$scheme
=
null
;
}
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
null
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
null
);
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_DC_11
,
'subject'
)
as
$category
)
{
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_DC_10
,
'subject'
)
as
$category
)
{
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$this
->
sanitize
(
$category
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
if
(
!
empty
(
$categories
))
...
...
@@ -3431,7 +3431,7 @@ class SimplePie_Item
}
if
(
$name
!==
null
||
$email
!==
null
||
$uri
!==
null
)
{
$contributors
[]
=
&
new
$this
->
feed
->
author_class
(
$name
,
$uri
,
$email
);
$contributors
[]
=
new
$this
->
feed
->
author_class
(
$name
,
$uri
,
$email
);
}
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_ATOM_03
,
'contributor'
)
as
$contributor
)
...
...
@@ -3453,7 +3453,7 @@ class SimplePie_Item
}
if
(
$name
!==
null
||
$email
!==
null
||
$url
!==
null
)
{
$contributors
[]
=
&
new
$this
->
feed
->
author_class
(
$name
,
$url
,
$email
);
$contributors
[]
=
new
$this
->
feed
->
author_class
(
$name
,
$url
,
$email
);
}
}
...
...
@@ -3489,7 +3489,7 @@ class SimplePie_Item
}
if
(
$name
!==
null
||
$email
!==
null
||
$uri
!==
null
)
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
$name
,
$uri
,
$email
);
$authors
[]
=
new
$this
->
feed
->
author_class
(
$name
,
$uri
,
$email
);
}
}
if
(
$author
=
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_ATOM_03
,
'author'
))
...
...
@@ -3511,24 +3511,24 @@ class SimplePie_Item
}
if
(
$name
!==
null
||
$email
!==
null
||
$url
!==
null
)
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
$name
,
$url
,
$email
);
$authors
[]
=
new
$this
->
feed
->
author_class
(
$name
,
$url
,
$email
);
}
}
if
(
$author
=
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_RSS_20
,
'author'
))
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
null
,
null
,
$this
->
sanitize
(
$author
[
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
));
$authors
[]
=
new
$this
->
feed
->
author_class
(
null
,
null
,
$this
->
sanitize
(
$author
[
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
));
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_DC_11
,
'creator'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_DC_10
,
'creator'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
foreach
((
array
)
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'author'
)
as
$author
)
{
$authors
[]
=
&
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
$authors
[]
=
new
$this
->
feed
->
author_class
(
$this
->
sanitize
(
$author
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
),
null
,
null
);
}
if
(
!
empty
(
$authors
))
...
...
@@ -3838,7 +3838,7 @@ class SimplePie_Item
{
$caption_text
=
$this
->
sanitize
(
$caption
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$captions_parent
[]
=
&
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
$captions_parent
[]
=
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
}
}
elseif
(
$captions
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'text'
))
...
...
@@ -3870,7 +3870,7 @@ class SimplePie_Item
{
$caption_text
=
$this
->
sanitize
(
$caption
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$captions_parent
[]
=
&
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
$captions_parent
[]
=
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
}
}
if
(
is_array
(
$captions_parent
))
...
...
@@ -3900,7 +3900,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories_parent
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories_parent
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
foreach
((
array
)
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'category'
)
as
$category
)
{
...
...
@@ -3923,7 +3923,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories_parent
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories_parent
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
foreach
((
array
)
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'category'
)
as
$category
)
{
...
...
@@ -3934,7 +3934,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'text'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories_parent
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories_parent
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
if
(
isset
(
$category
[
'child'
][
SIMPLEPIE_NAMESPACE_ITUNES
][
'category'
]))
{
...
...
@@ -3944,7 +3944,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$subcategory
[
'attribs'
][
''
][
'text'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories_parent
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories_parent
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
}
}
...
...
@@ -3966,7 +3966,7 @@ class SimplePie_Item
{
$copyright_label
=
$this
->
sanitize
(
$copyright
[
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$copyrights_parent
=
&
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
$copyrights_parent
=
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
}
elseif
(
$copyright
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'copyright'
))
{
...
...
@@ -3980,7 +3980,7 @@ class SimplePie_Item
{
$copyright_label
=
$this
->
sanitize
(
$copyright
[
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$copyrights_parent
=
&
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
$copyrights_parent
=
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
}
// CREDITS
...
...
@@ -4007,7 +4007,7 @@ class SimplePie_Item
{
$credit_name
=
$this
->
sanitize
(
$credit
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$credits_parent
[]
=
&
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
$credits_parent
[]
=
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
}
}
elseif
(
$credits
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'credit'
))
...
...
@@ -4033,7 +4033,7 @@ class SimplePie_Item
{
$credit_name
=
$this
->
sanitize
(
$credit
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$credits_parent
[]
=
&
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
$credits_parent
[]
=
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
}
}
if
(
is_array
(
$credits_parent
))
...
...
@@ -4222,7 +4222,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings_parent
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings_parent
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
}
elseif
(
$ratings
=
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'explicit'
))
...
...
@@ -4235,7 +4235,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings_parent
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings_parent
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
}
elseif
(
$ratings
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'rating'
))
...
...
@@ -4256,7 +4256,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings_parent
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings_parent
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
}
elseif
(
$ratings
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'explicit'
))
...
...
@@ -4269,7 +4269,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings_parent
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings_parent
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
}
if
(
is_array
(
$ratings_parent
))
...
...
@@ -4297,7 +4297,7 @@ class SimplePie_Item
{
$restriction_value
=
$this
->
sanitize
(
$restriction
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$restrictions_parent
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions_parent
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
}
elseif
(
$restrictions
=
$this
->
get_item_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'block'
))
...
...
@@ -4311,7 +4311,7 @@ class SimplePie_Item
{
$restriction_relationship
=
'deny'
;
}
$restrictions_parent
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions_parent
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
}
elseif
(
$restrictions
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_MEDIARSS
,
'restriction'
))
...
...
@@ -4333,7 +4333,7 @@ class SimplePie_Item
{
$restriction_value
=
$this
->
sanitize
(
$restriction
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$restrictions_parent
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions_parent
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
}
elseif
(
$restrictions
=
$parent
->
get_channel_tags
(
SIMPLEPIE_NAMESPACE_ITUNES
,
'block'
))
...
...
@@ -4347,7 +4347,7 @@ class SimplePie_Item
{
$restriction_relationship
=
'deny'
;
}
$restrictions_parent
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions_parent
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
}
if
(
is_array
(
$restrictions_parent
))
...
...
@@ -4553,7 +4553,7 @@ class SimplePie_Item
{
$caption_text
=
$this
->
sanitize
(
$caption
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$captions
[]
=
&
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
$captions
[]
=
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
}
if
(
is_array
(
$captions
))
{
...
...
@@ -4589,7 +4589,7 @@ class SimplePie_Item
{
$caption_text
=
$this
->
sanitize
(
$caption
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$captions
[]
=
&
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
$captions
[]
=
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
}
if
(
is_array
(
$captions
))
{
...
...
@@ -4625,7 +4625,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
}
if
(
isset
(
$group
[
'child'
][
SIMPLEPIE_NAMESPACE_MEDIARSS
][
'category'
]))
...
...
@@ -4651,7 +4651,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
}
if
(
is_array
(
$categories
)
&&
is_array
(
$categories_parent
))
...
...
@@ -4680,7 +4680,7 @@ class SimplePie_Item
{
$copyright_label
=
$this
->
sanitize
(
$content
[
'child'
][
SIMPLEPIE_NAMESPACE_MEDIARSS
][
'copyright'
][
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$copyrights
=
&
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
$copyrights
=
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
}
elseif
(
isset
(
$group
[
'child'
][
SIMPLEPIE_NAMESPACE_MEDIARSS
][
'copyright'
]))
{
...
...
@@ -4694,7 +4694,7 @@ class SimplePie_Item
{
$copyright_label
=
$this
->
sanitize
(
$group
[
'child'
][
SIMPLEPIE_NAMESPACE_MEDIARSS
][
'copyright'
][
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$copyrights
=
&
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
$copyrights
=
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
}
else
{
...
...
@@ -4725,7 +4725,7 @@ class SimplePie_Item
{
$credit_name
=
$this
->
sanitize
(
$credit
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$credits
[]
=
&
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
$credits
[]
=
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
}
if
(
is_array
(
$credits
))
{
...
...
@@ -4755,7 +4755,7 @@ class SimplePie_Item
{
$credit_name
=
$this
->
sanitize
(
$credit
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$credits
[]
=
&
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
$credits
[]
=
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
}
if
(
is_array
(
$credits
))
{
...
...
@@ -4908,7 +4908,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
if
(
is_array
(
$ratings
))
{
...
...
@@ -4933,7 +4933,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
if
(
is_array
(
$ratings
))
{
...
...
@@ -4965,7 +4965,7 @@ class SimplePie_Item
{
$restriction_value
=
$this
->
sanitize
(
$restriction
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$restrictions
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
if
(
is_array
(
$restrictions
))
{
...
...
@@ -4991,7 +4991,7 @@ class SimplePie_Item
{
$restriction_value
=
$this
->
sanitize
(
$restriction
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$restrictions
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
if
(
is_array
(
$restrictions
))
{
...
...
@@ -5045,7 +5045,7 @@ class SimplePie_Item
$title
=
$title_parent
;
}
$this
->
data
[
'enclosures'
][]
=
&
new
$this
->
feed
->
enclosure_class
(
$url
,
$type
,
$length
,
$this
->
feed
->
javascript
,
$bitrate
,
$captions
,
$categories
,
$channels
,
$copyrights
,
$credits
,
$description
,
$duration
,
$expression
,
$framerate
,
$hashes
,
$height
,
$keywords
,
$lang
,
$medium
,
$player
,
$ratings
,
$restrictions
,
$samplingrate
,
$thumbnails
,
$title
,
$width
);
$this
->
data
[
'enclosures'
][]
=
new
$this
->
feed
->
enclosure_class
(
$url
,
$type
,
$length
,
$this
->
feed
->
javascript
,
$bitrate
,
$captions
,
$categories
,
$channels
,
$copyrights
,
$credits
,
$description
,
$duration
,
$expression
,
$framerate
,
$hashes
,
$height
,
$keywords
,
$lang
,
$medium
,
$player
,
$ratings
,
$restrictions
,
$samplingrate
,
$thumbnails
,
$title
,
$width
);
}
}
}
...
...
@@ -5175,7 +5175,7 @@ class SimplePie_Item
{
$caption_text
=
$this
->
sanitize
(
$caption
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$captions
[]
=
&
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
$captions
[]
=
new
$this
->
feed
->
caption_class
(
$caption_type
,
$caption_lang
,
$caption_startTime
,
$caption_endTime
,
$caption_text
);
}
if
(
is_array
(
$captions
))
{
...
...
@@ -5211,7 +5211,7 @@ class SimplePie_Item
{
$label
=
$this
->
sanitize
(
$category
[
'attribs'
][
''
][
'label'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$categories
[]
=
&
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
$categories
[]
=
new
$this
->
feed
->
category_class
(
$term
,
$scheme
,
$label
);
}
}
if
(
is_array
(
$categories
)
&&
is_array
(
$categories_parent
))
...
...
@@ -5244,7 +5244,7 @@ class SimplePie_Item
{
$copyright_label
=
$this
->
sanitize
(
$content
[
'child'
][
SIMPLEPIE_NAMESPACE_MEDIARSS
][
'copyright'
][
0
][
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$copyrights
=
&
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
$copyrights
=
new
$this
->
feed
->
copyright_class
(
$copyright_url
,
$copyright_label
);
}
else
{
...
...
@@ -5275,7 +5275,7 @@ class SimplePie_Item
{
$credit_name
=
$this
->
sanitize
(
$credit
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$credits
[]
=
&
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
$credits
[]
=
new
$this
->
feed
->
credit_class
(
$credit_role
,
$credit_scheme
,
$credit_name
);
}
if
(
is_array
(
$credits
))
{
...
...
@@ -5379,7 +5379,7 @@ class SimplePie_Item
{
$rating_value
=
$this
->
sanitize
(
$rating
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$ratings
[]
=
&
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
$ratings
[]
=
new
$this
->
feed
->
rating_class
(
$rating_scheme
,
$rating_value
);
}
if
(
is_array
(
$ratings
))
{
...
...
@@ -5411,7 +5411,7 @@ class SimplePie_Item
{
$restriction_value
=
$this
->
sanitize
(
$restriction
[
'data'
],
SIMPLEPIE_CONSTRUCT_TEXT
);
}
$restrictions
[]
=
&
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
$restrictions
[]
=
new
$this
->
feed
->
restriction_class
(
$restriction_relationship
,
$restriction_type
,
$restriction_value
);
}
if
(
is_array
(
$restrictions
))
<