com web/bugs: Show the admin menu item for developers who are logged in: include/functions.php
| From: | Kalle Sommer Nielsen | Date: | Sat, 19 Nov 2016 11:54:45 +0000 |
| Subject: | com web/bugs: Show the admin menu item for developers who are logged in: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25336@lists.php.net to get a copy of this message | ||
Commit: 5c6ec7d00b326c87a30c5b444aa47b87386282b4
Author: Kalle Sommer Nielsen <kalle@php.net> 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> |
<?php if ($is_logged) { ?>
<a href="search.php?cmd=display&assign=<?php echo $username;?>">my
bugs</a> |
+<?php if ($logged_in === 'developer') { ?>
+ <a href="/admin/">admin</a> |
+<?php } ?>
<a href="logout.php">logout</a>
<?php } else { ?>
<a href="login.php">login</a>