Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
//
|
2 |
//
|
3 |
// mateuszbb - minimalist bulletin board forum. MIT license.
|
3 |
// mateuszbb - minimalist bulletin board forum. MIT license.
|
4 |
//
|
4 |
//
|
5 |
// VERSION 20230523
|
5 |
// VERSION 20240119
|
6 |
//
|
6 |
//
|
7 |
// Copyright (C) 2021-2023 Mateusz Viste
|
7 |
// Copyright (C) 2021-2024 Mateusz Viste
|
8 |
//
|
8 |
//
|
9 |
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
9 |
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
10 |
// of this software and associated documentation files (the “Software”), to
|
10 |
// of this software and associated documentation files (the “Software”), to
|
11 |
// deal in the Software without restriction, including without limitation the
|
11 |
// deal in the Software without restriction, including without limitation the
|
12 |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
12 |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
Line 191... |
Line 191... |
191 |
echo '<?xml version="1.0" encoding="utf-8" ?>' . "\n";
|
191 |
echo '<?xml version="1.0" encoding="utf-8" ?>' . "\n";
|
192 |
echo '<rss version="2.0">' . "\n";
|
192 |
echo '<rss version="2.0">' . "\n";
|
193 |
echo "<channel>\n";
|
193 |
echo "<channel>\n";
|
194 |
echo "<title>" . htmlspecialchars($RSS_TITLE, ENT_XML1) . "</title>\n";
|
194 |
echo "<title>" . htmlspecialchars($RSS_TITLE, ENT_XML1) . "</title>\n";
|
195 |
echo "<link>" . selfurl(). "</link>\n";
|
195 |
echo "<link>" . selfurl(). "</link>\n";
|
- |
|
196 |
echo "<description>" . htmlspecialchars($RSS_TITLE, ENT_XML1) . "</description>\n";
|
196 |
|
197 |
|
197 |
while ($row = $sqlres->fetchArray()) {
|
198 |
while ($row = $sqlres->fetchArray()) {
|
198 |
$rawtitle = file_get_contents($DATADIR . 'threads/' . $row['thread'] . '/title.txt');
|
199 |
$rawtitle = file_get_contents($DATADIR . 'threads/' . $row['thread'] . '/title.txt');
|
199 |
if (empty($rawtitle)) continue;
|
200 |
if (empty($rawtitle)) continue;
|
200 |
$title = htmlspecialchars($rawtitle, ENT_XML1, 'UTF-8');
|
201 |
$title = htmlspecialchars($rawtitle, ENT_XML1, 'UTF-8');
|