Пример #1
0
function checkAccess()
{
    $username = getAccessUsername();
    if ($username == false) {
        header("Location: ../login.php");
    } else {
        setAccess($username);
    }
}
Пример #2
0
function checkAccess()
{
    $username = getAccessUsername();
    if ($username != '') {
        setAccess($username);
    } else {
        header("location: login.php?usercookie");
    }
}
Пример #3
0
function checkAccess($link)
{
    $login = "";
    $username = getAccessUsername($link);
    setSession($username, $link, $login);
}
Пример #4
0
function checkAccess()
{
    $username = getAccessUsername();
    setSession($username);
}