include ('../libs/forums/includes/user.inc.php');
include ('../libs/forums/includes/user_auth.inc.php');
$muhaha = new user_auth(); $yarp = new user();
if( $muhaha->is_logged_in ) {
if( $muhaha->is_banned ) {
echo "*cough* be gone, " . $muhaha->fields['USER_DISPLAY_NAME'];
}
else {
echo "Waaazzaaaap, " . $muhaha->fields['USER_DISPLAY_NAME'];
}
} else { echo "Please register<br />";
}
echo "Veni, vidi, vici!! <br />";
if (!$yarp->check_access('forum','READ_TOPICS',$board)) {
echo 'Ciao bella!';
exit;
}
if ($yarp->check_access('site','CAN_USE_ARCADE')) {
echo 'w00t! and arcade :)';
}
?>