Version: 1.00, by Hotte
Developer Last Online: Jan 2006
Version: 2.2.x
Rating:
Released: 06-13-2002
Last Update: Never
Installs: 99
No support by the author.
Hi
this hack allows admins to login as any user they want. In the Adminpanel you´ll have a link in the "edit user"-screen which allows you to login as the user. Good for testing and finding errors that the user reports etc
Only 1 File to edit (admin/user.php)
Installationtime: < 5 minutes
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
+-------------------------------------------------------------------------------------------------+
| In admin/user.php, find this code: |
+-------------------------------------------------------------------------------------------------+
<li>\".makelinkcode(\"View the profile for $user[username]\",\"../member.php?s=$session[sessionhash]&action=getinfo&userid=$userid\",1).\"</li>
+-------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------+
| After this, add: |
+-------------------------------------------------------------------------------------------------+
<li>\".makelinkcode(\"View the profile for $user[username]\",\"../member.php?s=$session[sessionhash]&action=getinfo&userid=$userid\",1).\"</li>
<li>\".makelinkcode(\"Login as User\",\"user.php?s=$session[sessionhash]&action=loginas&userid=$user[userid]\",1).\"</li>
+-------------------------------------------------------------------------------------------------+
by
PHP Code:
+-------------------------------------------------------------------------------------------------+
| In admin/user.php, find this code: |
+-------------------------------------------------------------------------------------------------+
<li>".makelinkcode("View the profile for $user[username]","../member.php?s=$session[sessionhash]&action=getinfo&userid=$userid",1)."</li>
+-------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------+
| replace with: |
+-------------------------------------------------------------------------------------------------+
<li>".makelinkcode("View the profile for $user[username]","../member.php?s=$session[sessionhash]&action=getinfo&userid=$userid",1)."</li>
<li>".makelinkcode("Login as User","user.php?s=$session[sessionhash]&action=loginas&userid=$user[userid]",1)."</li>
+-------------------------------------------------------------------------------------------------+
please dont have a go at me here... but i think that this is the worst possible hack someone could have ever made... i would hate someone to be able to login in as me at a board i post at... it ruins the point of having users...
this is just my opinion tho ... i dont like this idea