[:en]nimba[:]

[:en]This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.

[insert_php]
if ( is_user_logged_in() ) {
echo ‘Welcome, registered user!’;
echo ‘Logout
‘;
} else {
echo ‘Welcome, visitor!’;
echo ‘Members Area‘;
}

$current_user = wp_get_current_user();
/**
* @example Safe usage:
* $current_user = wp_get_current_user();
* if ( ! $current_user->exists() ) {
* return;
* }
*/
echo ‘Username: ‘ . $current_user->user_login . ‘
‘;
echo ‘User email: ‘ . $current_user->user_email . ‘
‘;
echo ‘User first name: ‘ . $current_user->user_firstname . ‘
‘;
echo ‘User last name: ‘ . $current_user->user_lastname . ‘
‘;
echo ‘User display name: ‘ . $current_user->display_name . ‘
‘;
echo ‘User ID: ‘ . $current_user->ID . ‘
‘;

// K.jt*qYLi3[@0J(jNY.38[)5
global $wpdb;
$results = $wpdb->get_results(“SELECT * FROM wp_posts;”);
foreach ( $results as $result ) {
echo $result->post_title.’
‘;
}

//print_r($customers);

if ( is_user_logged_in() ) echo ‘Members Area‘;

[/insert_php]

see?[:]