com web/master: Only show logout when logged in & use the mainscreen: include/functions.inc
| From: | Hannes Magnusson | Date: | Thu, 19 Dec 2013 00:48:24 +0000 |
| Subject: | com web/master: Only show logout when logged in & use the mainscreen: include/functions.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17735@lists.php.net to get a copy of this message | ||
Commit: 279d0f14bf8ccf2ba5a872f5db1d95b15f327a4f
Author: Hannes Magnusson <bjori@mongodb.com> Wed, 18 Dec 2013 16:48:24 -0800
Parents: 076e88ea6831213b86ba6500fac101cdb5789a6d
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=279d0f14bf8ccf2ba5a872f5db1d95b15f327a4f
Log:
Only show logout when logged in & use the mainscreen
Changed paths:
M include/functions.inc
Diff:
diff --git a/include/functions.inc b/include/functions.inc
index 7afc233..85b7dda 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -25,7 +25,6 @@ function head($title="") {
array("href" => "/manage/users.php", "text" =>
"Users"),
array("href" => "/manage/user-notes.php", "text" =>
"Notes"),
array("href" => "/manage/github.php", "text" =>
"Github Repos"),
- array("href" => "/login.php?action=logout", "text" =>
"Logout"),
);
$CSS = array();
$SEARCH = array();
@@ -39,8 +38,10 @@ function head($title="") {
}
if (isset($_SESSION['credentials'])) {
array_unshift($LINKS, array("href" => "/manage/users.php?username="
. $_SESSION["credentials"][0], "text" => "My PHP.net Profile"));
+ $LINKS[] = array("href" => "/login.php?action=logout",
"text" => "Logout");
}
include __DIR__ . "/../shared/templates/header.inc";
+ echo '<section class="mainscreen">';
}
function foot() {
@@ -63,6 +64,7 @@ function foot() {
}
?>
+ </section>
<script type="text/javascript" >
$(document).ready(function() {
$('#votesdeleteform').submit(function() {