Home  >  Article  >  Web Front-end  >  How to get the example code of member status on dedecms page_javascript skills

How to get the example code of member status on dedecms page_javascript skills

WBOY
WBOYOriginal
2016-05-16 15:10:391307browse

Example code of how to get member status on dedecms page

I made a corporate website a few days ago, and added member information to the navigation bar, such as:
Logged in: Display: Welcome Not logged in Display: Please log in

The code is as follows:

Copy code The code is as follows:

{dede:php}

require_once(DEDEMEMBER."/config.php");

$uid = $cfg_ml->M_LoginID;

if(!$uid){

echo '


';

}else{

echo '

|Logout

';

}

{/dede:php}


The above example code of how to obtain the membership status on the dedecms page is all the content shared by the editor. I hope it can give you a reference, and I hope you will support Script Home more.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn