forked from halo-battle/game
Version 1.7b
This commit is contained in:
parent
58928889ed
commit
8a8280758b
716 changed files with 4361 additions and 33524 deletions
22
onyx/hb_game/jeu/admin/prendre_controle.php
Normal file
22
onyx/hb_game/jeu/admin/prendre_controle.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$titre = 'Sanction joueur';
|
||||
$pagea = 'erreur';
|
||||
|
||||
$template->assign('linkpage', 'cjoueurs');
|
||||
|
||||
if ($sess->values['auth_level'] >= 5 && !empty($_GET['id'])) {
|
||||
$sess->values['id'] = $_GET['id'];
|
||||
$sess->put();
|
||||
|
||||
$template->assign('message', 'Vous contrôlez maintenant le joueur '.$_GET['id'].'.<br />Pensez à sélectionner sa planète !');
|
||||
}
|
||||
elseif (!empty($_GET['name'])) {
|
||||
$req = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `pseudo` = '".mysql_real_escape_string($_GET['name'])."';");
|
||||
header('Location: admin.php?p=cjoueurs&id='.$req['id']);
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$pagea = 'print_choixU';
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue