First you have to require the library:<br /><br />
// Require the library<br />require ("./includes/main.inc.php"); <br /><br />Then you have to use the authenticate user function:<br /><br />
$userob = new user;<br />$user = $userob -> authenticate();
<br /><br />Then you could do something like this:<br /><br />
isset($user['U_Username']) && $Username = $user['U_Username'];
<br /><br />and that would give you the user name <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Note: The authenticate function will give you: U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn, and U_OC_Userid plus it can accept input from you on a lot of other user data (just take a look at the showflat.php file for an example of what you can pull out of the database).