Commit:    5c6ec7d00b326c87a30c5b444aa47b87386282b4
Author:    Kalle Sommer Nielsen <[email protected]>         Sat, 19 Nov 2016 
12:54:45 +0100
Parents:   b26ad823e768a9f0aa14623bdd29e43e5b6a8286
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=5c6ec7d00b326c87a30c5b444aa47b87386282b4

Log:
Show the admin menu item for developers who are logged in

Changed paths:
  M  include/functions.php


Diff:
diff --git a/include/functions.php b/include/functions.php
index 4c0ef54..78490cb 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1749,6 +1749,9 @@ function response_header($title, $extraHeaders = '')
                        <a href="random">random bug</a>&nbsp;|&nbsp;
 <?php if ($is_logged) { ?>
                        <a href="search.php?cmd=display&amp;assign=<?php echo 
$username;?>">my bugs</a>&nbsp;|&nbsp;
+<?php if ($logged_in === 'developer') { ?>
+                       <a href="/admin/">admin</a>&nbsp;|&nbsp;
+<?php } ?>
                        <a href="logout.php">logout</a>
 <?php } else { ?>
                        <a href="login.php">login</a>


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

Reply via email to