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
26
onyx/hb_game/jeu/admin/sanction_joueur.php
Normal file
26
onyx/hb_game/jeu/admin/sanction_joueur.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
if(!defined('INDEX')) { header('Location: ../'); exit; }
|
||||
$titre = 'Sanction joueur';
|
||||
$pagea = 'erreur';
|
||||
|
||||
$template->assign('linkpage', 'sjoueurs');
|
||||
|
||||
if (!empty($_GET['id']) && !empty($_GET['sanc']) && !empty($_GET['raisonmv'])) {
|
||||
$id_plan = $_GET['id'];
|
||||
$sanc = $_GET['sanc'];
|
||||
$raisonmv = $_GET['raisonmv'];
|
||||
$chapeau->escape($raisonmv);
|
||||
$time = time() + $_GET['sanc'] * 86400 - 259200;
|
||||
$chapeau->query("UPDATE `user` SET `mv` = '2', `last_visite` = '$time', `raisonmv` = '$raisonmv' WHERE `id` = '$id_plan';");
|
||||
|
||||
$template->assign('message', 'Le joueur a été placé en mode vacances !');
|
||||
}
|
||||
elseif (!empty($_GET['name']) && !empty($_GET['sanc']) && isset($_GET['raisonmv'])) {
|
||||
$req = $chapeau->unique_query("SELECT * FROM `$table_user` WHERE `pseudo` = '".mysql_real_escape_string($_GET['name'])."';");
|
||||
header('Location: admin.php?p=sjoueurs&sanc='.$_GET['sanc'].'&raisonmv='.$_GET['raisonmv'].'&id='.$req['id']);
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
$pagea = 'sanctionU_choix';
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue