本文整理汇总了PHP中Members::s_perms方法的典型用法代码示例。如果您正苦于以下问题:PHP Members::s_perms方法的具体用法?PHP Members::s_perms怎么用?PHP Members::s_perms使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Members
的用法示例。
在下文中一共展示了Members::s_perms方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sqlesc
}
if ($TriModif != '') {
if ($TriModif == 1) {
$Order = ' ORDER BY `Date`';
} else {
$Order = ' ORDER BY `Date` DESC';
}
} else {
$TriModif = '0';
}
$where = '';
if ($_GET['Joueur'] != '') {
$where = ' AND m.`Joueur`=\'' . sqlesc($_GET['Joueur']) . '\'';
}
$axx = array();
foreach (Members::s_perms() as $k => $v) {
if ($k == AXX_DISABLED) {
continue;
}
if (Members::CurrentPerms() > $k || Members::CurrentPerms() == AXX_ROOTADMIN) {
$axx[$k] = $v;
}
}
require_once TEMPLATE_PATH . 'editmembres.tpl.php';
$tpl = tpl_editmembres::getinstance();
$mysql_result = DataEngine::sql('SELECT m.`Joueur`, m.`Points`, m.`Date`, m.`Economie`, m.`Commerce`, m.`Recherche`, m.`Combat`, m.`Construction`, m.`Navigation`, m.`Grade`, m.`Race`, m.`ship`, u.`Permission` from `SQL_PREFIX_Membres` m, `SQL_PREFIX_Users` u WHERE (m.`Joueur`=u.`Login`)' . $where . $Order);
if (mysql_num_rows($mysql_result) == 0) {
output::Boink('Membres.php');
}
$tpl->header(Get_string(), $TriMembre, $triPermission, $TriPoints, $TriRace, $TriShip, $TriModif);
$i = 0;
示例2: while
$tpl->map_color_footer();
}
///---
///---
if ($_REQUEST['act'] == 'logs' && Members::CheckPerms('MEMBRES_ADMIN_LOG')) {
$tpl->page_title = $lng['logs_title'];
$tpl->log_header();
$mysql_result = DataEngine::sql('SELECT `DATE`, `log`, `IP` from `SQL_PREFIX_Log` ORDER BY `ID` DESC LIMIT 40');
while ($ligne = mysql_fetch_array($mysql_result)) {
$tpl->log_row($ligne);
}
$tpl->log_footer();
}
if ($_REQUEST['act'] == 'perms' && Members::CheckPerms(AXX_ROOTADMIN)) {
$cxx_name = Members::s_cperms();
$axx_name = Members::s_perms();
$cxx_conf = DataEngine::config('perms');
$axx_num = count($axx_name);
$tpl->page_title = $lng['perms_title'];
$tpl->perms_header();
$i = 0;
// Loop par CXX
foreach ($cxx_name as $cxx_k => $cxx_v) {
$class = 'color_row' . $i % 2;
if (is_numeric($cxx_k)) {
$tpl->perms_category($cxx_v);
continue;
} else {
$tpl->perms_row($cxx_k, $cxx_v, $axx_name, $cxx_conf);
}
$tpl->PushOutput('</tr>');