Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 15:10:39
Original
1289 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!