Tip: Click lines to highlight, hold ctrl/cmd to multi-select
http://codedumper.com/ubamu (3-Jun @ 12:31)
Syntax Highlighted Code
- while($rw=$r->fetch()) {
- //new item
- $rssItem=$channel->addChild('item');
- //set title
- if ($type=='stiri') {
- //same link for all news
- $rssItem->addChild('link',$CFG['rss']['stiri']['link']);
- //description
- $rssItem->addChild(
- 'description',
- "\n",
- $rw['descr']
- )
- ),
- ENT_QUOTES,
- 'UTF-8'
- )
- ),
- 0,
- $CFG['rss']['common']['textLimit']
- )
- );
- }
Plain Code
while($rw=$r->fetch()) {
//new item
$rssItem=$channel->addChild('item');
//set title
$rssItem->addChild('title',stripslashes(strip_tags($rw['nume'])));
if ($type=='stiri') {
//same link for all news
$rssItem->addChild('link',$CFG['rss']['stiri']['link']);
//description
$rssItem->addChild(
'description',
substr(
strip_tags(
html_entity_decode(
stripslashes(
str_replace(
array("\n\r","\r\n","\r"),
"\n",
$rw['descr']
)
),
ENT_QUOTES,
'UTF-8'
)
),
0,
$CFG['rss']['common']['textLimit']
)
);
}