-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlistfeed.php
45 lines (30 loc) · 1.11 KB
/
listfeed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?
/************************************************************************/
/* AgorActu 0.1 - RSS agregator with anonymous comments */
/* Copyright (c)2012 Swiss Pirate Party www.partipirate.ch */
/* ---------------------------------------------------------------------*/
/* This is listfeed.php - Read the readme.txt file for more info */
/************************************************************************/
include ("db.connect.php");
include ("ins_header.php");
echo "<div class=\"row-fluid\">
<div class=\"span1\"> </div>
<div class=\"span8 post\">";
echo "<h2>".$lang['FEED_LIST']."</h2>";
echo "<table class=\"table\">";
$Query ="select `id`,`rss`,`name`,`logo` from `rssfeeds`";
$Result = mysql_query($Query);
while ($line = mysql_fetch_row($Result))
{
$nomjournal = mb_convert_encoding($line[2],"UTF-8");
echo "<tr><td>" .$line[0]. "</td>
<td>" .$line[1]. "</td>
<td><h3> " .$nomjournal. "</h3></td>";
if ($line[3] == NULL) {echo "<td></td>";} else {
echo "<td><img src=\"" .$line[3]. "\"></td>";}
echo "</tr>";
}
echo "</table>";
echo "</div></div>";
include ("ins_footer.php");
?>