From f07c0eb4fa8fd413bd2c5419aa9b21fada38b530 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Aug 2005 15:47:46 +0100 Subject: [PATCH] improved article look --- backend.php | 23 ++++++++++++++++++++--- config.php-dist | 2 +- prefs.php | 4 +++- tt-rss.css | 28 +++++++++++++++++++++++++++- tt-rss.php | 2 +- 5 files changed, 52 insertions(+), 7 deletions(-) diff --git a/backend.php b/backend.php index 8e0eeb00..6529c6b3 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 ""; +/* print "
"; print ""; print ""; - print "
Title:".$line["title"]."
Link:".$line["link"]."
"; - print $line["content"]; + print $line["content"]; */ + print ""; + print " + "; + + print " + "; + + print ""; + print "
Title:".$line["title"]."
Link:".$line["link"]."
" . $line["content"] . "
"; } } diff --git a/config.php-dist b/config.php-dist index fae32817..c7b3a55b 100644 --- a/config.php-dist +++ b/config.php-dist @@ -1,9 +1,9 @@ diff --git a/prefs.php b/prefs.php index 1d3755a6..1a85bf3c 100644 --- a/prefs.php +++ b/prefs.php @@ -9,6 +9,8 @@ + +
@@ -51,7 +53,7 @@
- Tiny-Tiny RSS v0.1 © 2005 Andrew Dolgov + Tiny-Tiny RSS v © 2005 Andrew Dolgov
diff --git a/tt-rss.css b/tt-rss.css index ed326aa4..6fcd5537 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -151,7 +151,7 @@ table.main td.prefContent { } table.main td.content { - padding : 10px; + padding : 0px; border-width : 1px 0px 0px 0px; border-color : #c0c0c0; border-style : solid; @@ -293,4 +293,30 @@ td.headlineUpdateMark { text-align : center; } +div.errorBox { + border : 1px solid #c0c0c0; + padding : 20px; + margin : 20px; + background : #f0f0f0; +} + +table.postTable tr.titleTop, table.postTable tr.titleBottom { + background : #f0f0f0; +} + +table.postTable tr.titleTop td { + padding : 5px 10px 0px 10px; +} + +table.postTable tr.titleBottom td { + padding : 3px 10px 5px 10px; + border-width : 0px 0px 1px 0px; + border-color : #d0d0d0; + border-style : solid; +} + +table.postTable td.post { + padding : 20px; + +} diff --git a/tt-rss.php b/tt-rss.php index aa9e9557..3eeadaf5 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -40,7 +40,7 @@ - Tiny-Tiny RSS v0.2-pre © 2005 Andrew Dolgov + Tiny-Tiny RSS v © 2005 Andrew Dolgov
Running in demo mode, some functionality is disabled. -- 2.39.5