• How do I get a user info to see if a user is logged in or not because My menu (http://r0x0rz.info/) on the right is wrong…so I want it to work right. I want “Register” to appear If the user is not logged in and so on..

Viewing 1 replies (of 1 total)
  • The best way to figure out how to do this is to upload / modify your file and add the following to the top after the header information:

    <div style="display: none;">
    <?php print_r( $GLOBALS ); ?>
    </div>

    Then, upload your file and refresh the page. Check the source and you’ll see a HUGE list of global variables which are available for you to use inside your page. Figure out which ones pertain to logged in users and then simply call them using either $<variable> directly, or reference $GLOBALS["variable"]

    Good luck.

Viewing 1 replies (of 1 total)

The topic ‘User info’ is closed to new replies.