本文整理汇总了PHP中permissions::verify方法的典型用法代码示例。如果您正苦于以下问题:PHP permissions::verify方法的具体用法?PHP permissions::verify怎么用?PHP permissions::verify使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类permissions
的用法示例。
在下文中一共展示了permissions::verify方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkUserDat
function checkUserDat()
{
global $returnedDBdata;
if (!empty($_GET['Char']) && !empty($_GET['Server'])) {
// First run check for currently searched character
$charTOfetch = $_GET['Char'];
$fromWHATserver = $_GET['Server'];
// Lookup character in local DB
$resp = roster_db::lookup($charTOfetch, $fromWHATserver);
$returnedDBdata = $resp->lookupData;
// If <is || not> in local DB
if ($resp->count == 1) {
viewChar($charTOfetch, $fromWHATserver);
} else {
permissions::verify($functWanted = 'fetchCharDat', $functElse = 'recentlySyncd', $rankWanted = '0');
}
} else {
// Else if no get data to use
nochar();
}
}
示例2: raidOverview
var parent = element.parentNode;
parent.className = parent.className.replace(/\\bloading\\b/,"");
}, 200);
}
});
</script>
';
} else {
echo 'Invalid Raid';
}
}
//End of display functions
//
//
//Nav commands
if (isset($_GET['raid'])) {
raidOverview();
} elseif (isset($_POST['mediaType'])) {
permissions::verify($functWanted = 'mediaUpload', $functElse = 'generalView', $rankWanted = '1');
} elseif (isset($_GET['reviewmedia'])) {
permissions::verify($functWanted = 'reviewmedia', $functElse = 'generalView', $rankWanted = '5');
} elseif (isset($_GET['approvemedia'])) {
permissions::verify($functWanted = 'approveMedia', $functElse = 'generalView', $rankWanted = '5');
} elseif (isset($_GET['delmedia'])) {
permissions::verify($functWanted = 'delMedia', $functElse = 'generalView', $rankWanted = '5');
} else {
generalView();
}
//End of nav commands
//Footer section
require 'inc/footer.php';