Exemplo n.º 1
0
if (isset($_POST['pwd']) && !($_SESSION['_login'] == 'test' && DE_DEMO)) {
    $query = 'UPDATE `SQL_PREFIX_Users` SET `Password`=md5(\'' . sqlesc($_POST['pwd'], false) . '\') WHERE `Login`=\'' . $_SESSION['_login'] . '\'';
    DataEngine::sql($query);
}
$mysql_result = DataEngine::sql('Select m.`Joueur`, m.`Points`, m.`Economie`, m.`Commerce`, m.`Recherche`, m.`Combat`, m.`Construction`, m.`Navigation`, m.`Race`, m.`ship`, m.`Titre`, m.`GameGrade`, m.`pts_architecte`, m.`pts_mineur`, m.`pts_science`, m.`pts_commercant`, m.`pts_amiral`, m.`pts_guerrier`, g.`Grade` from `SQL_PREFIX_Membres` m, `SQL_PREFIX_Grade` g WHERE m.`Joueur`=\'' . $_SESSION['_login'] . '\' AND (m.`Grade`=g.`GradeId`)');
$ligne = mysql_fetch_assoc($mysql_result);
require_once TEMPLATE_PATH . 'mafiche.tpl.php';
$tpl = tpl_mafiche::getinstance();
$tpl->page_title = $lng['page_title'];
$tpl->header($ligne);
$tpl->add_row($lng['POINTS'], 'Points', $ligne['Points']);
$tpl->add_row($lng['pts_architecte'], 'pts_architecte', $ligne['pts_architecte']);
$tpl->add_row($lng['pts_mineur'], 'pts_mineur', $ligne['pts_mineur']);
$tpl->add_row($lng['pts_science'], 'pts_science', $ligne['pts_science']);
$tpl->add_row($lng['pts_commercant'], 'pts_commercant', $ligne['pts_commercant']);
$tpl->add_row($lng['pts_amiral'], 'pts_amiral', $ligne['pts_amiral']);
$tpl->add_row($lng['pts_guerrier'], 'pts_guerrier', $ligne['pts_guerrier']);
$tpl->add_row($lng['Commerce'], 'Commerce', $ligne['Commerce']);
$tpl->add_row($lng['Recherche'], 'Recherche', $ligne['Recherche']);
$tpl->add_row($lng['Combat'], 'Combat', $ligne['Combat']);
$tpl->add_row($lng['Construction'], 'Construction', $ligne['Construction']);
$tpl->add_row($lng['Economie'], 'Economie', $ligne['Economie']);
$tpl->add_row($lng['Navigation'], 'Navigation', $ligne['Navigation']);
$tpl->add_row($lng['Race'], '', $ligne['Race']);
//$tpl->add_row_select($lng['Race'], '', $tabrace, $ligne['Race']);
$tpl->add_row_select($lng['lastship'], 'ship', DataEngine::a_shiplist(), $ligne['ship']);
$tpl->add_row($lng['Titre'], '', $ligne['Titre']);
$tpl->add_row($lng['grade_ingame'], '', $ligne['GameGrade']);
$tpl->add_row($lng['grade_eude'], '', $ligne['Grade']);
$tpl->footer();
$tpl->doOutput();