MDCode Posted December 9, 2012 Share Posted December 9, 2012 (edited) Is there any reason why I would need to restrict a file containing admin functions, as long as I'm checking if users who access the files that use them are of the administrator class? Edited December 9, 2012 by SocialCloud Quote Link to comment https://forums.phpfreaks.com/topic/271774-restrict-functions-file/ Share on other sites More sharing options...
Christian F. Posted December 9, 2012 Share Posted December 9, 2012 What do you mean with "restrict"? Quote Link to comment https://forums.phpfreaks.com/topic/271774-restrict-functions-file/#findComment-1398332 Share on other sites More sharing options...
MDCode Posted December 9, 2012 Author Share Posted December 9, 2012 Sorry I guess that was pretty vague...restrict by using sessions. I'm already checking that the session group on two files are that of administrator. Both require the functions.php file later on in the script. Is there any reason why I would need a session check on functions.php? Quote Link to comment https://forums.phpfreaks.com/topic/271774-restrict-functions-file/#findComment-1398383 Share on other sites More sharing options...
Jessica Posted December 9, 2012 Share Posted December 9, 2012 If you don't want people to be able to browse to the file, put it outside of the document root. Quote Link to comment https://forums.phpfreaks.com/topic/271774-restrict-functions-file/#findComment-1398397 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.