1

Topic: Where gets $cur_user['id'] set?

Hello!
I have a problem.
I'm trying to combine your login with my own, but $cur_user['id'] gets not set when someone logs in through my login-system.
I need to know where $cur_user['id'] gets set.

Could you please help me?

Re: Where gets $cur_user['id'] set?

In the function check_cookie() in include/functions.php. The function is called from include/common.php.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Where gets $cur_user['id'] set?

Hm, maybe I should tell you that I use 1.0 RC2..

I guess you'll recommend me to upgrade to the latest version, but all my members is ofcource stored in the pun_users-table.
If I install a newer version, can I keep on using my old table with members?

Re: Where gets $cur_user['id'] set?

Yes. You will however have to upgrade in steps. First to 1.0, then to 1.1 and then to 1.1.1 :) Just be sure to make backups and read the upgrade instructions in install.html.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: Where gets $cur_user['id'] set?

Ok, thank you!