コード例 #1
0
}
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
0
ファイル: EAdmin.php プロジェクト: google-code-backups/eude
    $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>');