Menu

#2 [FIX] Anonymous showing as admin by Drakia

open
nobody
None
5
2004-02-16
2004-02-16
Dude
No

Posted by drakia -
http://phpnet.phpground.net/viewtopic.php?t=777

ok, that wasnt the right fix, I wasnt informed where the
Anonymous user was showing up.

Code:
-------------------------------------------------------
-------------------------

open:
forum.php
find:
$new_user_list .= ($new_user_list !='') ? ', <a href="' .
append_sid("profile.$phpEx?mode=viewprofile&amp;" .
POST_USERS_URL . "=" . $row['user_id']) . '"' .
$style_color .'>' . $row['username'] . '</a>' : '<a href="' .
append_sid("profile.$phpEx?mode=viewprofile&amp;" .
POST_USERS_URL . "=" . $row['user_id']) . '"' .
$style_color .'>' . $row['username'] . '</a>';
replace with:
$new_user_list .= ($new_user_list !='') ? ', <a href="' .
append_sid("profile.$phpEx?mode=viewprofile&amp;" .
POST_USERS_URL . "=" . $row['user_id']) . '">' . $row
['username'] . '</a>' : '<a href="' . append_sid
("profile.$phpEx?mode=viewprofile&amp;" .
POST_USERS_URL . "=" . $row['user_id']) . '">' . $row
['username'] . '</a>';

The user was showing as a new registered user under
the "registered in last 48 hours" box, not the online now
box. It was using $style_color which was set depending
if the current logged in user was an admin or mod (I
think) and therefor was showing Anon as an admin

Discussion


Log in to post a comment.