function checkAccess() { $username = getAccessUsername(); if ($username == false) { header("Location: ../login.php"); } else { setAccess($username); } }
function checkAccess() { $username = getAccessUsername(); if ($username != '') { setAccess($username); } else { header("location: login.php?usercookie"); } }
function checkAccess($link) { $login = ""; $username = getAccessUsername($link); setSession($username, $link, $login); }
function checkAccess() { $username = getAccessUsername(); setSession($username); }