Review the webpage content field permissions. my requirement is that visitors cannot see the permissions [! -- Ic --] content in the field, which can be viewed after logon. The following code can still be viewed by visitors [! -- Ic --] content in the field, you can also see [! -- Goneng --] the content in the field is to prevent visitors from viewing the content in my restricted field! Original post: bbs.phome.netshowthread-13-104245-0.html re-organize Web content field permissions
My requirement is that visitors cannot see [! -- Ic --] content in the field, which can be viewed after logon.
The following code can still be viewed by visitors [! -- Ic --] content in the field, you can also see [! -- Goneng --] content in the field
I mean, I don't want visitors to view the content in my restricted fields!
According to the original stickers: http://bbs.phome.net/showthread-13-104245-0.html third floor stickers do.
?
If ($ _ COOKIE [mvupamlgroupid])
{
Echo "[! -- Ic --] ";
}
Elseif ($ _ COOKIE [mvupamlgroupid] = 1)
{
Echo "[! -- Goneng --] ";
}
?
---------------------------------------------------
$ Phome_cookievarpre = "mvupa"; // prefix of the foreground cookie variable
$ Phome_cookieadminvarpre = "tbslm"; // background cookie variable prefix
The variable "mvupa" is randomly generated during installation.
How can this problem be solved? The above code is not visible on the generated page, and cannot be controlled. visitors do not need to log on to anything to see it.
------ Solution --------------------
The landlord is not careful
If ($ _ COOKIE [mvupamlgroupid])
{
Echo "[! -- Ic --] ";
Missing "! "
------ Solution --------------------
?
If (! $ _ COOKIE [mvupamlgroupid])
{
Echo "[! -- Ic --] ";
}
Elseif ($ _ COOKIE [mvupamlgroupid] = 1)
{
Echo "[! -- Goneng --] ";
}
?