Topic: Website Integration if() in PHP
Hi!
I am working on website integration and read your article on it at http://www.punbb.org/docs/dev.html.
However, I would like to know if there is an IF statement possible to be used to switch text from "Welcome, username!" to "Welcome, you are not logged in." and link them to the login page etc.
For example, is there something like:
if($punbb['session_logged_in']) {
// Functions if they are logged in
}
else {
// Functions if they're not
}
If this code is possible, will someone please give it to me? It would be greatly appreciated.
Also, on a side note, is anything used within the $pun_user exactly what is in the punbb_users table structure in MySQL?
Thank you!