From c93f38c4949fdbfaf256f493bcdaf772873f4e8a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Nov 2005 19:29:13 +0100 Subject: [PATCH] display username in header --- backend.php | 1 + functions.php | 1 + prefs.php | 7 ++++++- tt-rss.css | 7 +++++++ tt-rss.php | 13 ++++++++----- 5 files changed, 23 insertions(+), 6 deletions(-) diff --git a/backend.php b/backend.php index 810097a41..54bd1e069 100644 --- a/backend.php +++ b/backend.php @@ -10,6 +10,7 @@ require_once "magpierss/rss_fetch.inc"; $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder + $_SESSION["name"] = PLACEHOLDER_NAME; $op = $_REQUEST["op"]; diff --git a/functions.php b/functions.php index 42d00c060..8b6bc6620 100644 --- a/functions.php +++ b/functions.php @@ -5,6 +5,7 @@ require_once 'db-prefs.php'; $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder + $_SESSION["name"] = PLACEHOLDER_NAME; define('MAGPIE_OUTPUT_ENCODING', 'UTF-8'); diff --git a/prefs.php b/prefs.php index 72e15904d..ab76f38ff 100644 --- a/prefs.php +++ b/prefs.php @@ -6,6 +6,9 @@ require_once "db-prefs.php"; $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); + + $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder + $_SESSION["name"] = PLACEHOLDER_NAME; ?> @@ -40,12 +43,14 @@ - +
+ logo
+ Hello, (Logout)
diff --git a/tt-rss.css b/tt-rss.css index e075acda6..25eb83548 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -533,3 +533,10 @@ div.prefHelp, td.prefHelp { padding : 5px; } +td.welcomePrompt { + font-size : small; + color : gray; + text-align : right; + padding-right : 10px; + +} diff --git a/tt-rss.php b/tt-rss.php index d1460935e..ed7e6dc13 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -6,6 +6,10 @@ require_once "db-prefs.php"; $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); + + $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder + $_SESSION["name"] = PLACEHOLDER_NAME; + ?> @@ -47,18 +51,17 @@ -
+ - +
+ logo
+ Hello, (Logout)
- -
 
-