WebSite X5Help Center

 
Peter Lewis
Peter Lewis
User

Display login name and logout button  en

Автор: Peter Lewis
Просмотрено 2410, Подписчики 3, Размещенный 0  

Hi All

How do I display the login name as well as putting a logout button

Размещено
1 Ответы - 1 Полезно
John S.
John S.
User

Hello Peter

You could try :

<?php
$pa = new imPrivateArea();
$user = $pa->who_is_logged();
echo $user['realname'];
?>

And the logout button you get by using the login/logout object and set this to logout.

Hope you are helped by this

Kind regards

John S.

Читать больше
Размещено От John S.