Create cklogin.php

Added passive functions to look up login state of user and access rights granted upon user class.