jayjaz
-
Posts
5 -
Joined
-
Last visited
Never
Posts posted by jayjaz
-
-
What specific problem could we encounter with the last few elseif’s if we have a large if/elseif block where a single variable is being checked against multiple different values and what would be a better solution to using the if/elseif block?
-
What could be a potential problem with contact forms that are only protected against SQL injections and have an admin side view for the enquiry ?
-
How would you rewrite URL2 to URL1 (give example rewrite rule).
a. URL1 http://www.foo.com/index.php?id=1&cat=5&name=foo&test=BAR5
b. URL2 http://www.foo.com/foo/BAR5/1/5/
users and priviledge levels in php
in PHP Coding Help
Posted
1. How would we check if a user has a correct permission level to access a section of a page that has a privilege level like (1=Add,2=Move,4=Edit,8=Delete) assigned to various protected sections?
2. What is this type of permissions assignment known as and what group of functions do we use to manipulate these permissions?
3. If my user (in line with the previous example) had a privilege level of 14, which of the privileges would they have access to and how would I check this (give example code)?