summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-23 15:47:46 +0100
committerAndrew Dolgov <[email protected]>2005-08-23 15:47:46 +0100
commitf07c0eb4fa8fd413bd2c5419aa9b21fada38b530 (patch)
tree8e259fdca00b63281668e29923541d1de168532c /backend.php
parent55193822528c95f6cd63c92f0791385ad4aad3d6 (diff)
improved article look
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php23
1 files changed, 20 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index 8e0eeb007..6529c6b39 100644
--- a/backend.php
+++ b/backend.php
@@ -5,8 +5,17 @@
require_once "functions.php";
require_once "magpierss/rss_fetch.inc";
+ error_reporting(0);
+
$link = pg_connect(DB_CONN);
+ error_reporting (E_ERROR | E_WARNING | E_PARSE);
+
+ if (!$link) {
+ print "Could not connect to database. Please check local configuration.";
+ return;
+ }
+
pg_query("set client_encoding = 'utf-8'");
$op = $_GET["op"];
@@ -131,15 +140,23 @@
$line = pg_fetch_assoc($result);
- print "<table class=\"feedOverview\">";
+/* print "<table class=\"feedOverview\">";
print "<tr><td><b>Title:</b></td><td>".$line["title"]."</td></tr>";
print "<tr><td><b>Link:</b></td><td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>";
-
print "</table>";
- print $line["content"];
+ print $line["content"]; */
+ print "<table class=\"postTable\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">";
+ print "<tr class=\"titleTop\"><td align=\"right\"><b>Title:</b></td>
+ <td width=\"100%\">".$line["title"]."</td></tr>";
+
+ print "<tr class=\"titleBottom\"><td align=\"right\"><b>Link:</b></td>
+ <td><a href=\"".$line["link"]."\">".$line["link"]."</a></td></tr>";
+
+ print "<tr><td class=\"post\" colspan=\"2\">" . $line["content"] . "</td></tr>";
+ print "</table>";
}
}