search
HomeCMS TutorialEmpire CMSHow to use Empire CMS to determine whether a member is logged in

How to use Empire CMS to determine whether a member is logged in

The example in this article describes the method of Empire CMS to determine whether a member is logged in. Some content can only be viewed after logging in, and cannot be viewed without logging in. At this time, you can refer to the code:

The code is as follows:

<?php
include("e/class/connect.php");
$lguserid=intval(getcvar(&#39;mluserid&#39;));//登陆用户ID
$lgusername=RepPostVar(getcvar(&#39;mlusername&#39;));//登陆用户
$lggroupid=intval(getcvar(&#39;mlgroupid&#39;));//会员组ID
if($lggroupid) //登陆会员显示菜单
{
?>
//登陆后可以看到的内容。如:欢迎登录……
<?php
}
else //游客显示菜单
{
?>
//没有登陆时可以看到的内容。如:我要注册
<?php
}
?>

Recommended to study "Empire cms tutorial"

Note: You need to set the page to .php before you can use it.

I hope this article will be helpful to everyone’s Imperial CMS website building.

The above is the detailed content of How to use Empire CMS to determine whether a member is logged in. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:www.word666.com. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools