Home > CMS Tutorial > PHPCMS > body text

How to determine login in phpcmsv9

Release: 2019-10-31 16:52:18
Original
2581 people have browsed it

How to determine login in phpcmsv9

phpcms v9 determines login:

First get the userid

{php$userid=param::get_cookie('_userid');}
Copy after login

and then determine whether it is empty

{if $userid}。。。这里写已经登录之后的代码。。。{else}。。。这里写已经登录之后的代码。。。{/if}
Copy after login

Complete code:

{php$userid=param::get_cookie('_userid');$forward=trim($url);}
{if$userid}
登录后的内容
{else}
<<span style="">ahref="{APP_PATH}index.php?m=member&c=index&a=login&forward={urlencode($url)}&siteid={$siteid}"target="_top">
Copy after login

The above is the detailed content of How to determine login in phpcmsv9. For more information, please follow other related articles on the PHP Chinese website!

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