basic authorization script to protect pages like administration, upload etc. put this code at the beginning of the page you want to protect.

download options for sessions and co / basic authorization

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.