Commit:    279d0f14bf8ccf2ba5a872f5db1d95b15f327a4f
Author:    Hannes Magnusson <[email protected]>         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() {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to