ID:2031642
 
I'm not very good at PHP, but I was wondering if this is an okay way of handling an array that allows recursive page authorization.

The snippet is currently incomplete, and does not work with sub-directories. The initial array will also be generated from a database down the road so that page restrictions can be added via a administrative webpage.

You can view my snippet on pastebin.