Topic: Log-in implementation
Hello reader,
i'm currently working on a website for my guild. It looks really sweet and is working pretty properly aswell, i editted the punbb forum to my style etc.
However, i want to add login functionality to all my pages. I have a widget that has member functionality in it, such as uploading screenshots and other private information. To achieve this i want to link this login-div to the punbb forum/user accounts.
I figured out that i had to add
define('FORUM_ROOT', './forum/');
require FORUM_ROOT.'include/common.php';
to my pages in order to achieve that. But i can't figure out where i can find the user informations. I saw that it was stored in an array in 1.2, but i can't figure out how it works now.
could anyone help me out?
I just want a simple login/logoff function on a random page, the define/require works properly. Also this includes having the check if the user is allready logged in.
thanks in advance.
(When it's done i can link the webpage don't want to spoil )