1

Topic: admin password to login on a member profile?

Probably this function is not integrated but it might be handy.
Because now as admin:
- I cannot add events or pictures in name of a member.
- Some functions are only accessible as member

Where can I start digging to change that code?

2

Re: admin password to login on a member profile?

Not possible at this time.

Developer

3

Re: admin password to login on a member profile?

In what field does it need to be changed?

if $password = $password_id[1] then
ACCESS...

4

Re: admin password to login on a member profile?

It is very annoying that Admin can't access member's information at time.

Godyn, in /cp/index.php we have this line of code at line~166:

if (($SESSION->login()  ||  $SESSION->is_loggedin())  &&  isset($SESSION->conf['can_access_cp'])  &&  $SESSION->conf['can_access_cp'])

That essentially validates you as a Admin, and if you pass those tests, then do whatever you like to the user's information.

I would suggest running that test once, and if it passes, then setting some new $_SESSION variable, then later, all you have to do is check the $_SESSION variable, rather than the whole line of code every time you want to do something.

Instead of calling that whole line again somewhere, just edit /cp/index.php to set a new $_SESSION variable.

Just remember to un-set the $_SESSION variable when you log out.

What about $_SESSION['is_godyn'] for the variable? smile
Then all you need to do is ask IF ($_SESSION['is_godyn']) .....

Last edited by fatlizard (2010-07-17 08:09:59)

5

Re: admin password to login on a member profile?

Did anyone ever got this to work, admin login as member?

VPS & Dedicated Hosting Servint