summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-17 19:29:13 +0100
committerAndrew Dolgov <[email protected]>2005-11-17 19:29:13 +0100
commitc93f38c4949fdbfaf256f493bcdaf772873f4e8a (patch)
tree65c8412ea46d7459348c62448aad3353a9e5a15f /prefs.php
parent0cc89acb29b6e851bceed111edd8f316f59fc697 (diff)
display username in header
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php7
1 files changed, 6 insertions, 1 deletions
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;
?>
<html>
<head>
@@ -40,12 +43,14 @@
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
- <td class="header" valign="middle">
+ <td rowspan="2" class="header" valign="middle">
<img src="images/ttrss_logo.png" alt="logo">
</td>
<td align="right" valign="top">
<div id="notify"><span id="notify_body"></div>
</td>
+ </tr><tr><td class="welcomePrompt">
+ Hello, <b><?= $_SESSION["name"] ?></b> (<a href="logout.php">Logout</a>)</td>
</tr></table>
</td>
</tr>