Loading include/news.php +1 −1 Original line number Diff line number Diff line Loading @@ -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 .= '<li><h2><strong>'.$news["news_title"].'</strong>'; $str .= '<li><h2><strong><a name="'.$news["news_id"].'">'.$news["news_title"].'</a></strong>'; $str .= dispWhenTendu($news["news_tendu"]); $str .= '<span class="news_date"> - le '.date("d/m/Y", strtotime($news["news_date"])).'</span><span class="news_by"> par '.$news["user_pseudo"].'</span></h2> <p class="news_text">'.$news["news_comment"].'</p> Loading include/rss.php +6 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ function getRss() { function dispRssChannelNews() { $str = '<channel>'; $str .= '<title>Actualités EPTV</title>'; $str .= '<link>http://www.eptv.fr/?html=News</link>'; $str .= '<link>http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=News</link>'; $str .= '<description>L\'actualités d\'EPTV</description>'; $str .= '<language>fr</language>'; $str .= '<copyright>EPTV</copyright>'; $str .= '<generator>Seblu RSS Generator</generator>'; $result = getLastNews(0); if (mysql_num_rows($result)) while ($news = mysql_fetch_array($result)) { Loading @@ -29,6 +30,7 @@ function dispRssChannelNews() { $str .= '<title>'.htmlspecialchars(strip_tags($news["news_title"])).'</title>'; $str .= '<description>'.htmlspecialchars(strip_tags($news["news_comment"])).'</description>'; $str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($news["news_date"]))).'</pubDate>'; $str .= '<guid>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=News#'.$news["news_id"]).'</guid>'; $str .= '</item>'; } $str .= '</channel>'; Loading @@ -38,10 +40,11 @@ function dispRssChannelNews() { function dispRssChannelVideos() { $str = '<channel>'; $str .= '<title>Vidéos EPTV</title>'; $str .= '<link>http://www.eptv.fr/?html=Videos</link>'; $str .= '<link>http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=Videos</link>'; $str .= '<description>Le flux des vidéos d\'EPTV</description>'; $str .= '<language>fr</language>'; $str .= '<copyright>EPTV</copyright>'; $str .= '<generator>Seblu RSS Generator</generator>'; $result = getLastVideosByTendu(0); if (mysql_num_rows($result)) while ($video = mysql_fetch_array($result)) { Loading @@ -49,6 +52,7 @@ function dispRssChannelVideos() { $str .= '<title>'.htmlspecialchars(strip_tags($video["video_name"])).'</title>'; $str .= '<description>'.htmlspecialchars(strip_tags($video["video_comment"])).'</description>'; $str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($video["video_date"]))).'</pubDate>'; $str .= '<link>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=Videos&year_page='.date("Y", strtotime($video["video_date"]))).'</link>'; $str .= '</item>'; } $str .= '</channel>'; Loading Loading
include/news.php +1 −1 Original line number Diff line number Diff line Loading @@ -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 .= '<li><h2><strong>'.$news["news_title"].'</strong>'; $str .= '<li><h2><strong><a name="'.$news["news_id"].'">'.$news["news_title"].'</a></strong>'; $str .= dispWhenTendu($news["news_tendu"]); $str .= '<span class="news_date"> - le '.date("d/m/Y", strtotime($news["news_date"])).'</span><span class="news_by"> par '.$news["user_pseudo"].'</span></h2> <p class="news_text">'.$news["news_comment"].'</p> Loading
include/rss.php +6 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,11 @@ function getRss() { function dispRssChannelNews() { $str = '<channel>'; $str .= '<title>Actualités EPTV</title>'; $str .= '<link>http://www.eptv.fr/?html=News</link>'; $str .= '<link>http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=News</link>'; $str .= '<description>L\'actualités d\'EPTV</description>'; $str .= '<language>fr</language>'; $str .= '<copyright>EPTV</copyright>'; $str .= '<generator>Seblu RSS Generator</generator>'; $result = getLastNews(0); if (mysql_num_rows($result)) while ($news = mysql_fetch_array($result)) { Loading @@ -29,6 +30,7 @@ function dispRssChannelNews() { $str .= '<title>'.htmlspecialchars(strip_tags($news["news_title"])).'</title>'; $str .= '<description>'.htmlspecialchars(strip_tags($news["news_comment"])).'</description>'; $str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($news["news_date"]))).'</pubDate>'; $str .= '<guid>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=News#'.$news["news_id"]).'</guid>'; $str .= '</item>'; } $str .= '</channel>'; Loading @@ -38,10 +40,11 @@ function dispRssChannelNews() { function dispRssChannelVideos() { $str = '<channel>'; $str .= '<title>Vidéos EPTV</title>'; $str .= '<link>http://www.eptv.fr/?html=Videos</link>'; $str .= '<link>http://'.htmlspecialchars($_SERVER['HTTP_HOST']).'/?html=Videos</link>'; $str .= '<description>Le flux des vidéos d\'EPTV</description>'; $str .= '<language>fr</language>'; $str .= '<copyright>EPTV</copyright>'; $str .= '<generator>Seblu RSS Generator</generator>'; $result = getLastVideosByTendu(0); if (mysql_num_rows($result)) while ($video = mysql_fetch_array($result)) { Loading @@ -49,6 +52,7 @@ function dispRssChannelVideos() { $str .= '<title>'.htmlspecialchars(strip_tags($video["video_name"])).'</title>'; $str .= '<description>'.htmlspecialchars(strip_tags($video["video_comment"])).'</description>'; $str .= '<pubDate>'.htmlspecialchars(date("r", strtotime($video["video_date"]))).'</pubDate>'; $str .= '<link>'.htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].'/?html=Videos&year_page='.date("Y", strtotime($video["video_date"]))).'</link>'; $str .= '</item>'; } $str .= '</channel>'; Loading