MDCode Posted December 9, 2012 Share Posted December 9, 2012 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? 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"? 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? 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. Link to comment https://forums.phpfreaks.com/topic/271774-restrict-functions-file/#findComment-1398397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.