Revision 1484
Added by Dietmar over 13 years ago
rss.php | ||
---|---|---|
60 | 60 |
?> |
61 | 61 |
<language><?php echo strtolower(DEFAULT_LANGUAGE); ?></language> |
62 | 62 |
<copyright><?php $thedate = date('Y'); $websitetitle = WEBSITE_TITLE; echo "Copyright {$thedate}, {$websitetitle}"; ?></copyright> |
63 |
<managingEditor><?php echo SERVER_EMAIL; ?></managingEditor>
|
|
64 |
<webMaster><?php echo SERVER_EMAIL; ?></webMaster>
|
|
63 |
<managingEditor><?php echo 'info@wdsnet.de'; ?></managingEditor>
|
|
64 |
<webMaster><?php echo 'info@wdsnet.de'; ?></webMaster>
|
|
65 | 65 |
<category><?php echo WEBSITE_TITLE; ?></category> |
66 | 66 |
<generator>WebsiteBaker Content Management System</generator> |
67 | 67 |
<?php |
... | ... | |
77 | 77 |
$result = $database->query($query); |
78 | 78 |
|
79 | 79 |
//Generating the news items |
80 |
while($item = $result->fetchRow()){ ?> |
|
81 |
<item> |
|
82 |
<title><![CDATA[<?php echo stripslashes($item["title"]); ?>]]></title> |
|
83 |
<description><![CDATA[<?php echo stripslashes($item["content_short"]); ?>]]></description> |
|
84 |
<guid><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></guid> |
|
85 |
<link><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></link> |
|
86 |
</item> |
|
80 |
while($item = $result->fetchRow()){ |
|
81 |
$description = stripslashes($item["content_short"]); |
|
82 |
// wb->preprocess() -- replace all [wblink123] with real, internal links |
|
83 |
$wb->preprocess($description); |
|
84 |
?> |
|
85 |
<item> |
|
86 |
<title><![CDATA[<?php echo stripslashes($item["title"]); ?>]]></title> |
|
87 |
<description><![CDATA[<?php echo $description; ?>]]></description> |
|
88 |
<link><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></link> |
|
89 |
<pubDate><?PHP echo date("D, d M Y", $item["published_when"]); ?></pubDate> |
|
90 |
<guid><?php echo WB_URL.PAGES_DIRECTORY.$item["link"].PAGE_EXTENSION; ?></guid> |
|
91 |
</item> |
|
87 | 92 |
<?php } ?> |
88 | 93 |
</channel> |
89 | 94 |
</rss> |
Also available in: Unified diff
move fixes 2.8.2 to 2.8.3
fixes will be shown in an extra readme
an package with the fixed files will be created
for all users who downloaded the 2.8.2 before 29 Jul-2011