コード例 #1
0
ファイル: auth.php プロジェクト: nsmr0604/pukiwiki
function check_readable($page, $auth_flag = true, $exit_flag = true)
{
    return read_auth($page, $auth_flag, $exit_flag);
}
コード例 #2
0
ファイル: auth.php プロジェクト: aterai/pukiwiki-plus-i18n
function check_readable($page, $auth_flag = TRUE, $exit_flag = TRUE)
{
    global $_title, $defaultpage;
    if (read_auth($page, $auth_flag, $exit_flag)) {
        return true;
    }
    if ($exit_flag) {
        // 無応答
        header('Location: ' . get_page_location_uri($defaultpage));
        die;
    }
    return false;
}