I want to set up an little travel blog for a friend of mine. He wants to protect the complete site with a password. Because I don't want to use .htaccess method, I'm looking for a solution with php.
I tried surround the index.php with my own code:
See attached file.