MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
     Site demo
Moderators: mem paulo89 adminik
RSSReply
How can I reverse the security order?
AuthorText
Docwyatt2001
Developer
Avatar

Posts: 87
Contributes: 0

Gender: _MALE_
Online: No
Date: 25/05/2008 11:32
How can I reverse the security order?
#post7407
I have run across a bit of an issue... Not some much a coding or logic one, but one that means I have to use a lesser security option to make it work.

I have created a page under MyPages for my site disclaimer. I also have several other pages under there. The disclaimer has guest access, whislt the others have User access. My issue is that how to I allow access to the disclaimer page and restrict the other to the users, without letting people see the pages that are not allowed to access.

If you drop the page name off the end of the html call (mypage_disclaimer.html becomes mypage.html), a guest can then be able to see all the pages on the site in that section. I know this doesn't sound like much, but I'd rather not let people know what is or isn't there if I can help it.

Would it be as simple as adding a...
code

$myrank=rank();
 

...to the PHP, and then use a select statement that compares the user rank, to that of the particular pages rank? (Not sure what the SQL would even be for that)
"Where is my damn coffee!!!"
Delete Edit Quote
 
JPappi
Senior Member
Avatar

Posts: 292
Contributes: 69

Gender: _MALE_
Online: No
Date: 25/05/2008 12:10
Re: How can I reverse the security order?
#post7408
Use groups for deeper access.
JPappi - have fun with memHT

Project at work: Find-4u.de

Image
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3890
Contributes: 1165

Gender: _MALE_
Online: Yes

Languages: English, Italian, Macedonian, Serbian
Date: 25/05/2008 12:56
Re: How can I reverse the security order?
#post7410
Every page can be set as public or not (to be shown or not) and the required rank that is needed to open the page as JPappy sais. You have full flexibility
Edited: 25/05/2008 12:56
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
Docwyatt2001
Developer
Avatar

Posts: 87
Contributes: 0

Gender: _MALE_
Online: No
Date: 25/05/2008 18:53
Re: How can I reverse the security order?
#post7415
*Blinks* How did I miss that? Thanks guys.
"Where is my damn coffee!!!"
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Search
Users Block
Hi Guest
IP: 38.103.63.60

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo