display username in header
This commit is contained in:
parent
0cc89acb29
commit
c93f38c494
|
@ -10,6 +10,7 @@
|
||||||
require_once "magpierss/rss_fetch.inc";
|
require_once "magpierss/rss_fetch.inc";
|
||||||
|
|
||||||
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
||||||
|
$_SESSION["name"] = PLACEHOLDER_NAME;
|
||||||
|
|
||||||
$op = $_REQUEST["op"];
|
$op = $_REQUEST["op"];
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
require_once 'db-prefs.php';
|
require_once 'db-prefs.php';
|
||||||
|
|
||||||
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
||||||
|
$_SESSION["name"] = PLACEHOLDER_NAME;
|
||||||
|
|
||||||
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
|
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
require_once "db-prefs.php";
|
require_once "db-prefs.php";
|
||||||
|
|
||||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
||||||
|
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
||||||
|
$_SESSION["name"] = PLACEHOLDER_NAME;
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -40,12 +43,14 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<table cellspacing="0" cellpadding="0" width="100%"><tr>
|
<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">
|
<img src="images/ttrss_logo.png" alt="logo">
|
||||||
</td>
|
</td>
|
||||||
<td align="right" valign="top">
|
<td align="right" valign="top">
|
||||||
<div id="notify"><span id="notify_body"></div>
|
<div id="notify"><span id="notify_body"></div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr><tr><td class="welcomePrompt">
|
||||||
|
Hello, <b><?= $_SESSION["name"] ?></b> (<a href="logout.php">Logout</a>)</td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -533,3 +533,10 @@ div.prefHelp, td.prefHelp {
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.welcomePrompt {
|
||||||
|
font-size : small;
|
||||||
|
color : gray;
|
||||||
|
text-align : right;
|
||||||
|
padding-right : 10px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
13
tt-rss.php
13
tt-rss.php
|
@ -6,6 +6,10 @@
|
||||||
require_once "db-prefs.php";
|
require_once "db-prefs.php";
|
||||||
|
|
||||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
||||||
|
$_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
|
||||||
|
$_SESSION["name"] = PLACEHOLDER_NAME;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -47,18 +51,17 @@
|
||||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
|
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
|
||||||
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="headerBox">
|
<td colspan="2">
|
||||||
<table cellspacing="0" cellpadding="0" width="100%"><tr>
|
<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">
|
<img src="images/ttrss_logo.png" alt="logo">
|
||||||
</td>
|
</td>
|
||||||
<td align="right" valign="top">
|
<td align="right" valign="top">
|
||||||
<div id="notify"><span id="notify_body"></div>
|
<div id="notify"><span id="notify_body"></div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr><tr><td class="welcomePrompt">
|
||||||
|
Hello, <b><?= $_SESSION["name"] ?></b> (<a href="logout.php">Logout</a>)</td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
|
|
||||||
<div id="userDlg"> </div>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
Loading…
Reference in New Issue