Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
The "boot.php" script validates both $OekakiU and $OekakiPass. If they don't match up to what's in the database, then they are both set as "empty". So, if either one is empty, then that person is a guest.
The "proper" way to tell if someone is a member is to test the boolean member flag, as follows:
if ($flags['member']) {
The $flags array contains a lot of useful information on the member or guest currently viewing the board. Take a closer look at "boot.php" to see what options are available.
Be careful about using a generic $oekakiu because if a bad person sets a fake cookie it will still consider it as set, even if its not a valid user in the database
I am in the process of switching my Wax board over to the new Wac. Almost ready to go, but need help with one menu item.
I have a link to a gallery which is available to visitors without having to be logged in. I also have a link to a gallery registration page become available when members log in.
I have this in my header file:
$left_menu[] = '<link to/gallery>'.$langop_gallery.'</a>';
if ($flags['D']) {
$left_menu[] = '<link to registration>'.$langop_gallery_register.'</a>';
}
What I would like to do is remove the separator between these two items (sorry, don't know PHP):
Never mind - I did this:
if (!empty ($OekakiU)) {
// Logged in
$left_menu[] = '<a href="http://eh.dannyssong.org/gallery/">'.$langop_gallery_register.'</a>';
} else {
// Logged out
$left_menu[] = '<a href="http://eh.dannyssong.org/gallery/">'.$langop_gallery.'</a>';
}