to get boxes like that you'd mostly set directories as secure at the server level rather than writting a page to do the login.
as to how you do it, that'd really depend on your server setup.
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."