コード例 #1
0
ファイル: library.php プロジェクト: pzingg/saugus_elgg
function protect($level, $owner = -1)
{
    if (accesslevel($owner) < $level) {
        run("access_denied");
        // run("display:bottomofpage");
        exit;
    }
}
コード例 #2
0
function protect($level, $owner = -1)
{
    global $CFG;
    //error_log($level);
    //error_log($owner);
    if (accesslevel($owner) < $level) {
        echo '<a href="' . $CFG->wwwroot . '">' . __gettext("Access Denied") . '</a>';
        exit;
    }
}
コード例 #3
0
ファイル: userlib.php プロジェクト: pzingg/saugus_elgg
function protect($level, $owner = -1)
{
    if (accesslevel($owner) < $level) {
        run("access_denied");
        exit;
    }
}