]>
Commit | Line | Data |
---|---|---|
1cd17194 | 1 | <? |
a2015351 | 2 | // header("Content-Type: application/xml"); |
1cd17194 | 3 | |
82baad4a AD |
4 | require_once "config.php"; |
5 | require_once "functions.php"; | |
6 | require_once "magpierss/rss_fetch.inc"; | |
1cd17194 | 7 | |
f07c0eb4 AD |
8 | error_reporting(0); |
9 | ||
d76a3b03 AD |
10 | $link = pg_connect(DB_CONN); |
11 | ||
f07c0eb4 AD |
12 | error_reporting (E_ERROR | E_WARNING | E_PARSE); |
13 | ||
14 | if (!$link) { | |
15 | print "Could not connect to database. Please check local configuration."; | |
16 | return; | |
17 | } | |
18 | ||
d76a3b03 AD |
19 | pg_query("set client_encoding = 'utf-8'"); |
20 | ||
6f428bc5 | 21 | $op = $_GET["op"]; |
331900c6 | 22 | $fetch = $_GET["fetch"]; |
175847de | 23 | |
c3b81db0 | 24 | function outputFeedList($link) { |
175847de | 25 | |
c3b81db0 | 26 | $result = pg_query($link, "SELECT *, |
d76a3b03 AD |
27 | (SELECT count(id) FROM ttrss_entries |
28 | WHERE feed_id = ttrss_feeds.id) AS total, | |
29 | (SELECT count(id) FROM ttrss_entries | |
30 | WHERE feed_id = ttrss_feeds.id AND unread = true) as unread | |
31 | FROM ttrss_feeds ORDER BY title"); | |
1cd17194 | 32 | |
82baad4a | 33 | print "<table width=\"100%\" class=\"feeds\">"; |
1cd17194 AD |
34 | |
35 | $lnum = 0; | |
36 | ||
76798ff3 AD |
37 | $total_unread = 0; |
38 | ||
6f428bc5 | 39 | while ($line = pg_fetch_assoc($result)) { |
a1a8a2be | 40 | |
6f428bc5 | 41 | $feed = $line["title"]; |
2c1dd701 | 42 | $feed_id = $line["id"]; |
13ad9102 AD |
43 | |
44 | $subop = $_GET["subop"]; | |
2c1dd701 | 45 | |
d76a3b03 AD |
46 | $total = $line["total"]; |
47 | $unread = $line["unread"]; | |
48 | ||
1cd17194 | 49 | $class = ($lnum % 2) ? "even" : "odd"; |
a1a8a2be AD |
50 | |
51 | if ($unread > 0) $class .= "Unread"; | |
52 | ||
76798ff3 AD |
53 | $total_unread += $unread; |
54 | ||
a1a8a2be AD |
55 | print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">"; |
56 | ||
78800912 | 57 | $icon_file = ICONS_DIR . "/$feed_id.ico"; |
13ad9102 AD |
58 | |
59 | if ($subop != "piggie") { | |
60 | ||
61 | if (file_exists($icon_file) && filesize($icon_file) > 0) { | |
62 | $feed_icon = "<img width=\"16\" height=\"16\" | |
63 | src=\"" . ICONS_URL . "/$feed_id.ico\">"; | |
64 | } else { | |
65 | $feed_icon = " "; | |
66 | } | |
78800912 | 67 | } else { |
13ad9102 AD |
68 | $feed_icon = "<img width=\"16\" height=\"16\" |
69 | src=\"http://madoka.spb.ru/stuff/fox/tiny_piggie.png\">"; | |
78800912 | 70 | } |
13ad9102 | 71 | |
a1a8a2be | 72 | $feed = "<a href=\"javascript:viewfeed($feed_id, 0);\">$feed</a>"; |
78800912 AD |
73 | if (ENABLE_FEED_ICONS) { |
74 | print "<td>$feed_icon</td>"; | |
75 | } | |
a1a8a2be | 76 | print "<td id=\"FEEDN-$feed_id\">$feed</td>"; |
c442fb6e AD |
77 | print "<td>"; |
78 | print "<span id=\"FEEDU-$feed_id\">$unread</span> / "; | |
79 | print "<span id=\"FEEDT-$feed_id\">$total</span>"; | |
80 | print "</td>"; | |
a1a8a2be AD |
81 | |
82 | print "</tr>"; | |
1cd17194 AD |
83 | ++$lnum; |
84 | } | |
85 | ||
476cac42 AD |
86 | // print "<tr><td class=\"footer\" colspan=\"3\"> |
87 | // <a href=\"javascript:update_feed_list(false,true)\">Update all feeds</a></td></tr>"; | |
88 | ||
89 | // print "<tr><td class=\"footer\" colspan=\"2\"> "; | |
90 | // print "</td></tr>"; | |
82baad4a | 91 | |
a1a8a2be | 92 | print "</table>"; |
1cd17194 | 93 | |
476cac42 AD |
94 | print "<p align=\"center\">All feeds: |
95 | <a class=\"button\" | |
cb246176 | 96 | href=\"javascript:scheduleFeedUpdate(true)\">Update</a>"; |
476cac42 AD |
97 | |
98 | print " <a class=\"button\" | |
99 | href=\"javascript:catchupAllFeeds()\">Mark as read</a></p>"; | |
100 | ||
76798ff3 AD |
101 | print "<div class=\"invisible\" id=\"FEEDTU\">$total_unread</div>"; |
102 | ||
c3b81db0 AD |
103 | |
104 | ||
105 | } | |
106 | ||
107 | ||
108 | if ($op == "rpc") { | |
109 | ||
110 | $subop = $_GET["subop"]; | |
111 | ||
9cfc649a AD |
112 | if ($subop == "getRelativeId") { |
113 | $mode = $_GET["mode"]; | |
114 | $id = $_GET["id"]; | |
115 | $feed_id = $_GET["feed"]; | |
116 | ||
117 | if ($id != 'false' && $feed_id != 'false') { | |
118 | ||
119 | if ($mode == 'next') { | |
120 | $check_qpart = "updated >= "; | |
121 | } else { | |
122 | $idcheck_qpart = "id < '$id'"; | |
123 | } | |
124 | ||
125 | $result = pg_query("SELECT id FROM ttrss_entries WHERE | |
126 | $check_qpart AND | |
127 | feed_id = '$feed_id' | |
128 | ORDER BY updated DESC LIMIT 1"); | |
129 | ||
130 | $result_id = pg_fetch_result($result, 0, "id"); | |
131 | ||
132 | print "M $mode : P $id -> P $result_id : F $feed_id"; | |
133 | ||
134 | } | |
135 | } | |
136 | ||
c3b81db0 AD |
137 | if ($subop == "forceUpdateAllFeeds") { |
138 | update_all_feeds($link, true); | |
139 | outputFeedList($link); | |
140 | } | |
141 | ||
142 | if ($subop == "updateAllFeeds") { | |
143 | update_all_feeds($link, false); | |
144 | outputFeedList($link); | |
145 | } | |
146 | ||
147 | if ($subop == "catchupPage") { | |
148 | ||
149 | $ids = split(",", $_GET["ids"]); | |
150 | ||
151 | foreach ($ids as $id) { | |
152 | ||
153 | pg_query("UPDATE ttrss_entries SET unread=false,last_read = NOW() | |
154 | WHERE id = '$id'"); | |
155 | ||
156 | } | |
157 | ||
158 | print "Marked active page as read."; | |
159 | } | |
160 | ||
161 | } | |
162 | ||
163 | if ($op == "feeds") { | |
164 | ||
165 | $subop = $_GET["subop"]; | |
166 | ||
167 | if ($subop == "catchupAll") { | |
168 | pg_query("UPDATE ttrss_entries SET last_read = NOW(),unread = false"); | |
169 | } | |
170 | ||
171 | outputFeedList($link); | |
172 | ||
1cd17194 AD |
173 | } |
174 | ||
175 | if ($op == "view") { | |
176 | ||
d76a3b03 AD |
177 | $id = $_GET["id"]; |
178 | ||
b197f117 | 179 | $result = pg_query("UPDATE ttrss_entries SET unread = false,last_read = NOW() WHERE id = '$id'"); |
a1a8a2be | 180 | |
d76a3b03 AD |
181 | $result = pg_query("SELECT title,link,content FROM ttrss_entries |
182 | WHERE id = '$id'"); | |
1cd17194 | 183 | |
d76a3b03 | 184 | if ($result) { |
1cd17194 | 185 | |
d76a3b03 | 186 | $line = pg_fetch_assoc($result); |
1cd17194 | 187 | |
f07c0eb4 | 188 | /* print "<table class=\"feedOverview\">"; |
d76a3b03 AD |
189 | print "<tr><td><b>Title:</b></td><td>".$line["title"]."</td></tr>"; |
190 | print "<tr><td><b>Link:</b></td><td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>"; | |
d76a3b03 AD |
191 | print "</table>"; |
192 | ||
f07c0eb4 | 193 | print $line["content"]; */ |
d76a3b03 AD |
194 | |
195 | ||
f07c0eb4 AD |
196 | print "<table class=\"postTable\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">"; |
197 | print "<tr class=\"titleTop\"><td align=\"right\"><b>Title:</b></td> | |
198 | <td width=\"100%\">".$line["title"]."</td></tr>"; | |
199 | ||
200 | print "<tr class=\"titleBottom\"><td align=\"right\"><b>Link:</b></td> | |
201 | <td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>"; | |
202 | ||
203 | print "<tr><td class=\"post\" colspan=\"2\">" . $line["content"] . "</td></tr>"; | |
204 | print "</table>"; | |
d76a3b03 | 205 | } |
1cd17194 AD |
206 | } |
207 | ||
208 | if ($op == "viewfeed") { | |
209 | ||
210 | $feed = $_GET["feed"]; | |
d76a3b03 | 211 | $skip = $_GET["skip"]; |
476cac42 | 212 | $subop = $_GET["subop"]; |
a1a8a2be | 213 | |
ac53063a AD |
214 | if (!$skip) $skip = 0; |
215 | ||
476cac42 | 216 | if ($subop == "undefined") $subop = ""; |
1cd17194 | 217 | |
ac53063a AD |
218 | // FIXME: check for null value here |
219 | ||
a2015351 | 220 | $result = pg_query("SELECT *,SUBSTRING(last_updated,1,16) as last_updated, |
82baad4a AD |
221 | EXTRACT(EPOCH FROM NOW()) - EXTRACT(EPOCH FROM last_updated) as update_timeout |
222 | FROM ttrss_feeds WHERE id = '$feed'"); | |
1cd17194 | 223 | |
d76a3b03 | 224 | if ($result) { |
1cd17194 | 225 | |
d76a3b03 | 226 | $line = pg_fetch_assoc($result); |
1cd17194 | 227 | |
476cac42 AD |
228 | if ($subop == "ForceUpdate" || |
229 | (!$subop && $line["update_timeout"] > MIN_UPDATE_TIME)) { | |
82baad4a AD |
230 | |
231 | update_rss_feed($link, $line["feed_url"], $feed); | |
d76a3b03 | 232 | |
a1a8a2be | 233 | } else { |
d76a3b03 | 234 | |
476cac42 | 235 | if ($subop == "MarkAllRead") { |
d76a3b03 | 236 | |
b197f117 | 237 | pg_query("UPDATE ttrss_entries SET unread = false,last_read = NOW() |
a1a8a2be AD |
238 | WHERE feed_id = '$feed'"); |
239 | } | |
a1a8a2be AD |
240 | } |
241 | } | |
d76a3b03 | 242 | |
175847de | 243 | print "<table class=\"headlinesList\" id=\"headlinesList\" width=\"100%\">"; |
ac53063a | 244 | |
a2015351 AD |
245 | $feed_last_updated = "Updated: " . $line["last_updated"]; |
246 | ||
1c37c607 | 247 | print "<tr><td class=\"search\" colspan=\"3\"> |
79a33f89 AD |
248 | Search: <input onchange=\"javascript:search($feed,this);\"> |
249 | <a class=\"button\" href=\"javascript:viewfeed($feed,0)\">Reset</a> | |
250 | </td></tr>"; | |
a2015351 AD |
251 | print "<tr> |
252 | <td colspan=\"3\" class=\"title\">" . $line["title"] . "</td></tr>"; | |
d76a3b03 | 253 | |
97e98c11 | 254 | if ($subop == "search") { |
ac53063a AD |
255 | $search = $_GET["search"]; |
256 | $search_query_part = "(upper(title) LIKE upper('%$search%') | |
257 | OR content LIKE '%$search%') AND"; | |
258 | } | |
259 | ||
e6d1c0a0 AD |
260 | $result = pg_query("SELECT count(id) AS total_entries |
261 | FROM ttrss_entries WHERE feed_id = '$feed'"); | |
262 | ||
263 | $total_entries = pg_fetch_result($result, 0, "total_entries"); | |
264 | ||
b197f117 AD |
265 | $result = pg_query("SELECT |
266 | id,title,updated,unread,feed_id, | |
267 | EXTRACT(EPOCH FROM last_read) AS last_read_ts, | |
268 | EXTRACT(EPOCH FROM updated) AS updated_ts | |
269 | FROM | |
270 | ttrss_entries | |
271 | WHERE | |
ac53063a AD |
272 | $search_query_part |
273 | feed_id = '$feed' ORDER BY updated DESC LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip"); | |
d76a3b03 | 274 | |
a1a8a2be | 275 | $lnum = 0; |
d76a3b03 | 276 | |
a1a8a2be | 277 | while ($line = pg_fetch_assoc($result)) { |
d76a3b03 | 278 | |
a1a8a2be | 279 | $class = ($lnum % 2) ? "even" : "odd"; |
d76a3b03 | 280 | |
b197f117 | 281 | if ($line["last_read_ts"] < $line["updated_ts"] && $line["unread"] == "f") { |
e695fdc8 | 282 | $update_pic = "<img src=\"images/updated.png\" alt=\"Updated\">"; |
b197f117 AD |
283 | } else { |
284 | $update_pic = " "; | |
285 | } | |
286 | ||
a1a8a2be AD |
287 | if ($line["unread"] == "t") |
288 | $class .= "Unread"; | |
d76a3b03 | 289 | |
b197f117 AD |
290 | $id = $line["id"]; |
291 | $feed_id = $line["feed_id"]; | |
292 | ||
293 | $content_link = "<a href=\"javascript:view($id,$feed_id);\">" . | |
294 | $line["title"] . "</a>"; | |
295 | ||
296 | print "<tr class='$class' id='RROW-$id'>"; | |
297 | ||
298 | print "<td id='FUPDPIC-$id' valign='center' class='headlineUpdateMark'>$update_pic</td>"; | |
299 | ||
a1a8a2be AD |
300 | print "<td class='headlineUpdated'>".$line["updated"]."</td>"; |
301 | print "<td class='headlineTitle'>$content_link</td>"; | |
d76a3b03 | 302 | |
a1a8a2be | 303 | print "</tr>"; |
d76a3b03 | 304 | |
a1a8a2be AD |
305 | ++$lnum; |
306 | } | |
d76a3b03 | 307 | |
ac53063a AD |
308 | if ($lnum == 0) { |
309 | print "<tr><td align='center'>No entries found.</td></tr>"; | |
047bae73 | 310 | } |
ac53063a | 311 | |
047bae73 AD |
312 | while ($lnum < HEADLINES_PER_PAGE) { |
313 | ++$lnum; | |
314 | print "<tr><td> </td></tr>"; | |
ac53063a AD |
315 | } |
316 | ||
047bae73 AD |
317 | // start unholy navbar block |
318 | ||
b197f117 | 319 | print "<tr><td colspan=\"3\" class=\"headlineToolbar\">"; |
d76a3b03 | 320 | |
a1a8a2be AD |
321 | $next_skip = $skip + HEADLINES_PER_PAGE; |
322 | $prev_skip = $skip - HEADLINES_PER_PAGE; | |
83fe4d6d AD |
323 | |
324 | print "Navigate: "; | |
e6d1c0a0 AD |
325 | |
326 | if ($prev_skip >= 0) { | |
327 | print "<a class=\"button\" | |
328 | href=\"javascript:viewfeed($feed, $prev_skip);\">Previous Page</a>"; | |
329 | } else { | |
330 | print "<a class=\"disabledButton\">Previous Page</a>"; | |
331 | } | |
a1a8a2be | 332 | print " "; |
e6d1c0a0 AD |
333 | |
334 | if ($next_skip < $total_entries) { | |
335 | print "<a class=\"button\" | |
336 | href=\"javascript:viewfeed($feed, $next_skip);\">Next Page</a>"; | |
337 | } else { | |
338 | print "<a class=\"disabledButton\">Next Page</a>"; | |
339 | } | |
2127761f | 340 | print " Feed: "; |
2127761f | 341 | |
ac53063a | 342 | print "<a class=\"button\" |
2127761f | 343 | href=\"javascript:viewfeed($feed, 0, 'ForceUpdate');\">Update</a>"; |
175847de | 344 | |
83fe4d6d | 345 | print " Mark as read: "; |
175847de | 346 | |
83fe4d6d | 347 | print "<a class=\"button\" |
175847de | 348 | href=\"javascript:catchupPage($feed);\">This Page</a>"; |
83fe4d6d | 349 | print " "; |
a1a8a2be | 350 | print "<a class=\"button\" |
83fe4d6d | 351 | href=\"javascript:viewfeed($feed, $skip, 'MarkAllRead');\">All Posts</a>"; |
d76a3b03 | 352 | |
a1a8a2be | 353 | print "</td></tr>"; |
a2015351 AD |
354 | |
355 | // end unholy navbar block | |
047bae73 | 356 | |
a2015351 | 357 | |
a1a8a2be | 358 | print "</table>"; |
d76a3b03 | 359 | |
a1a8a2be AD |
360 | $result = pg_query("SELECT id, (SELECT count(id) FROM ttrss_entries |
361 | WHERE feed_id = ttrss_feeds.id) AS total, | |
362 | (SELECT count(id) FROM ttrss_entries | |
363 | WHERE feed_id = ttrss_feeds.id AND unread = true) as unread | |
364 | FROM ttrss_feeds WHERE id = '$feed'"); | |
d76a3b03 | 365 | |
a1a8a2be AD |
366 | $total = pg_fetch_result($result, 0, "total"); |
367 | $unread = pg_fetch_result($result, 0, "unread"); | |
d76a3b03 | 368 | |
a1a8a2be AD |
369 | print "<div class=\"invisible\" id=\"FACTIVE\">$feed</div>"; |
370 | print "<div class=\"invisible\" id=\"FTOTAL\">$total</div>"; | |
371 | print "<div class=\"invisible\" id=\"FUNREAD\">$unread</div>"; | |
d76a3b03 | 372 | |
1cd17194 AD |
373 | } |
374 | ||
0e091d38 | 375 | if ($op == "pref-rpc") { |
331900c6 | 376 | |
0e091d38 | 377 | $subop = $_GET["subop"]; |
331900c6 | 378 | |
83fe4d6d AD |
379 | if ($subop == "unread") { |
380 | $ids = split(",", $_GET["ids"]); | |
381 | foreach ($ids as $id) { | |
382 | pg_query("UPDATE ttrss_entries SET unread = true WHERE feed_id = '$id'"); | |
383 | } | |
0e091d38 AD |
384 | |
385 | print "Marked selected feeds as read."; | |
83fe4d6d AD |
386 | } |
387 | ||
388 | if ($subop == "read") { | |
389 | $ids = split(",", $_GET["ids"]); | |
390 | foreach ($ids as $id) { | |
b197f117 AD |
391 | pg_query("UPDATE ttrss_entries |
392 | SET unread = false,last_read = NOW() WHERE feed_id = '$id'"); | |
83fe4d6d | 393 | } |
0e091d38 AD |
394 | |
395 | print "Marked selected feeds as unread."; | |
396 | ||
397 | } | |
398 | ||
399 | } | |
400 | ||
401 | if ($op == "pref-feeds") { | |
402 | ||
403 | $subop = $_GET["subop"]; | |
404 | ||
405 | if ($subop == "edit") { | |
508a81e1 AD |
406 | |
407 | $feed_id = $_GET["id"]; | |
408 | ||
409 | $result = pg_query("SELECT title,feed_url | |
410 | FROM ttrss_feeds WHERE id = '$feed_id'"); | |
411 | ||
412 | $fedit_link = pg_fetch_result($result, 0, "feed_url"); | |
413 | $fedit_title = pg_fetch_result($result, 0, "title"); | |
414 | ||
415 | print "<table class=\"prefAddFeed\"> | |
416 | <td>Title:</td><td><input id=\"fedit_title\" value=\"$fedit_title\"></td></tr> | |
417 | <td>Link:</td><td><input id=\"fedit_link\" value=\"$fedit_link\"></td></tr> | |
418 | <tr><td colspan=\"2\" align=\"right\"> | |
419 | <a class=\"button\" href=\"javascript:feedEditCancel()\">Cancel</a> | |
420 | <a class=\"button\" href=\"javascript:feedEditSave($feed_id)\">Save</a> | |
421 | </td></tr> | |
422 | </table>"; | |
423 | ||
424 | } else { | |
425 | ||
426 | print "<table class=\"prefAddFeed\"> | |
427 | <td><input id=\"fadd_link\"></td> | |
428 | <td colspan=\"4\" align=\"right\"> | |
429 | <a class=\"button\" href=\"javascript:addFeed()\">Add feed</a></td></tr> | |
430 | </table>"; | |
431 | ||
432 | } | |
433 | ||
434 | if ($subop == "editSave") { | |
435 | $feed_title = pg_escape_string($_GET["t"]); | |
436 | $feed_link = pg_escape_string($_GET["l"]); | |
437 | $feed_id = $_GET["id"]; | |
438 | ||
439 | $result = pg_query("UPDATE ttrss_feeds SET | |
440 | title = '$feed_title', feed_url = '$feed_link' WHERE id = '$feed_id'"); | |
441 | ||
83fe4d6d AD |
442 | } |
443 | ||
331900c6 | 444 | if ($subop == "remove") { |
331900c6 | 445 | |
b0b4abcf | 446 | if (!WEB_DEMO_MODE) { |
331900c6 | 447 | |
b0b4abcf AD |
448 | $ids = split(",", $_GET["ids"]); |
449 | ||
450 | foreach ($ids as $id) { | |
451 | pg_query("BEGIN"); | |
452 | pg_query("DELETE FROM ttrss_entries WHERE feed_id = '$id'"); | |
453 | pg_query("DELETE FROM ttrss_feeds WHERE id = '$id'"); | |
454 | pg_query("COMMIT"); | |
455 | } | |
331900c6 AD |
456 | } |
457 | } | |
458 | ||
459 | if ($subop == "add") { | |
b0b4abcf AD |
460 | |
461 | if (!WEB_DEMO_MODE) { | |
331900c6 | 462 | |
b0b4abcf AD |
463 | $feed_link = pg_escape_string($_GET["link"]); |
464 | ||
465 | $result = pg_query( | |
466 | "INSERT INTO ttrss_feeds (feed_url,title) VALUES ('$feed_link', '')"); | |
331900c6 | 467 | |
b0b4abcf | 468 | $result = pg_query("SELECT id FROM ttrss_feeds WHERE feed_url = '$feed_link'"); |
331900c6 | 469 | |
b0b4abcf | 470 | $feed_id = pg_fetch_result($result, 0, "id"); |
331900c6 | 471 | |
b0b4abcf AD |
472 | if ($feed_id) { |
473 | update_rss_feed($link, $feed_link, $feed_id); | |
474 | } | |
475 | } | |
331900c6 AD |
476 | } |
477 | ||
007bda35 | 478 | $result = pg_query("SELECT * FROM ttrss_feeds ORDER by title"); |
1cd17194 | 479 | |
331900c6 | 480 | print "<p><table width=\"100%\" class=\"prefFeedList\" id=\"prefFeedList\">"; |
007bda35 AD |
481 | print "<tr class=\"title\"> |
482 | <td>Select</td><td>Title</td><td>Link</td><td>Last Updated</td></tr>"; | |
483 | ||
484 | $lnum = 0; | |
485 | ||
486 | while ($line = pg_fetch_assoc($result)) { | |
487 | ||
488 | $class = ($lnum % 2) ? "even" : "odd"; | |
331900c6 AD |
489 | |
490 | $feed_id = $line["id"]; | |
491 | ||
492 | print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">"; | |
007bda35 AD |
493 | |
494 | print "<td><input onclick='toggleSelectRow(this);' | |
331900c6 AD |
495 | type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>"; |
496 | print "<td><a href=\"javascript:editFeed($feed_id);\">" . | |
497 | $line["title"] . "</td>"; | |
498 | print "<td><a href=\"javascript:editFeed($feed_id);\">" . | |
499 | $line["feed_url"] . "</td>"; | |
500 | ||
007bda35 AD |
501 | print "<td>" . $line["last_updated"] . "</td>"; |
502 | print "</tr>"; | |
503 | ||
504 | ++$lnum; | |
505 | } | |
506 | ||
507 | print "</table>"; | |
508 | ||
509 | } | |
510 | ||
511 | pg_close($link); | |
1cd17194 | 512 | ?> |