diff --git a/include/news.php b/include/news.php
index b9e2b8c8c66926e5d1733f3549699df9674c3193..48e8f930e6d203c4a69a22951adb2b8054db1358 100644
--- a/include/news.php
+++ b/include/news.php
@@ -22,7 +22,7 @@ function dispNewsRows($max_news = PHP_INT_MAX) {
if (mysql_num_rows($result)) {
for ($cpt = 0; $cpt < $max_news && ($news = mysql_fetch_array($result)); $cpt++) {
$str .= dispWhenTendu($news["news_tendu"]);
- $str .= '
'.$news["news_title"].'';
+ $str .= '
'.$news["news_title"].'';
$str .= dispWhenTendu($news["news_tendu"]);
$str .= ' - le '.date("d/m/Y", strtotime($news["news_date"])).' par '.$news["user_pseudo"].'
'.$news["news_comment"].'
diff --git a/include/rss.php b/include/rss.php
index 22a5dbedbbe62fd6c92ce028553aeac8a1cc7c37..04475c697bd5f4efc3468de1f6ffa581504097bb 100644
--- a/include/rss.php
+++ b/include/rss.php
@@ -18,10 +18,11 @@ function getRss() {
function dispRssChannelNews() {
$str = '';
$str .= 'Actualités EPTV';
- $str .= 'http://www.eptv.fr/?html=News';
+ $str .= 'http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=News';
$str .= 'L\'actualités d\'EPTV';
$str .= 'fr';
$str .= 'EPTV';
+ $str .= 'Seblu RSS Generator';
$result = getLastNews(0);
if (mysql_num_rows($result))
while ($news = mysql_fetch_array($result)) {
@@ -29,6 +30,7 @@ function dispRssChannelNews() {
$str .= ''.htmlspecialchars(strip_tags($news["news_title"])).'';
$str .= ''.htmlspecialchars(strip_tags($news["news_comment"])).'';
$str .= ''.htmlspecialchars(date("r", strtotime($news["news_date"]))).'';
+ $str .= ''.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=News#'.$news["news_id"]).'';
$str .= '';
}
$str .= '';
@@ -38,10 +40,11 @@ function dispRssChannelNews() {
function dispRssChannelVideos() {
$str = '';
$str .= 'Vidéos EPTV';
- $str .= 'http://www.eptv.fr/?html=Videos';
+ $str .= 'http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=Videos';
$str .= 'Le flux des vidéos d\'EPTV';
$str .= 'fr';
$str .= 'EPTV';
+ $str .= 'Seblu RSS Generator';
$result = getLastVideosByTendu(0);
if (mysql_num_rows($result))
while ($video = mysql_fetch_array($result)) {
@@ -49,6 +52,7 @@ function dispRssChannelVideos() {
$str .= ''.htmlspecialchars(strip_tags($video["video_name"])).'';
$str .= ''.htmlspecialchars(strip_tags($video["video_comment"])).'';
$str .= ''.htmlspecialchars(date("r", strtotime($video["video_date"]))).'';
+ $str .= ''.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=Videos&year_page='.date("Y", strtotime($video["video_date"]))).'';
$str .= '';
}
$str .= '';