com web/bugs: this is how you do it. stupid me.: include/functions.php
| From: | Ferenc Kovacs | Date: | Wed, 23 Jan 2013 23:57:16 +0000 |
| Subject: | com web/bugs: this is how you do it. stupid me.: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15369@lists.php.net to get a copy of this message | ||
Commit: dc3a9960e822229b518b3c3a267eb63cc6f204d3
Author: Ferenc Kovacs <tyra3l@gmail.com> Thu, 24 Jan 2013 00:57:16 +0100
Parents: f095feecf294a2c0af19a7233ce5e660d55dc7d8
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=dc3a9960e822229b518b3c3a267eb63cc6f204d3
Log:
this is how you do it. stupid me.
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 162cf24..2603c1a 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1718,21 +1718,12 @@ function response_header($title, $extraHeaders = '')
if ($logged_in === 'developer') {
$is_logged = true;
+ $username = $auth_user->handle;
} else if (!empty($_SESSION['user'])) {
$is_logged = true;
+ $username = $_SESSION['user'];
}
- if ($logged_in) {
- $username = false;
- if (!empty($auth_user->handle)) {
- $username = $auth_user->handle;
- }
- elseif (!empty($_SESSION['user']->handle)) {
- $username = $_SESSION['user']->handle;
- }
- }
-
-
$_header_done = true;
header('Content-Type: text/html; charset=UTF-8');