<commit_before><?php
if (file_exists('root.php'))
  include_once('root.php');

include_once(root.'haut.php');

$joueur = new perso($_SESSION['ID']);
$choix = $_GET['choix'];

if($choix == 1)
{
	$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
	$db->query($requete);
	//Fort
	verif_mort(20, 2, 43200, 2);
}
elseif($choix == 2)
{
	if(array_key_exists('rez', $_GET))
	{
		$requete = "SELECT pourcent, duree, malus FROM rez WHERE id = '".sSQL($_GET['rez'])."' AND id_perso = ".$joueur->get_id();
		$req = $db->query($requete);
		$row = $db->read_assoc($req);
		if(is_array($row))
		{
			$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
			$db->query($requete);
			//Rez
			verif_mort($row['pourcent'], 3, $row['duree'], $row['malus']);
		}
	}
}
elseif($choix == 3)
{
	$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
	$db->query($requete);
	$R = new royaume($Trace[$joueur->get_race()]['numrace']);
	$R->verif_hp();
	if($R->get_capitale_hp() > 0) $malus = 15;
	else $malus = 5;
	//Ville
	verif_mort($malus, 4, 43200, 2);
}
 
?>
<img src="image/pixel.gif" onload="window.location = 'jeu2.php';" />
<commit_msg>correction des liens qui pointaient encore sur jeu2.php<commit_after><?php
if (file_exists('root.php'))
  include_once('root.php');

include_once(root.'haut.php');

$joueur = new perso($_SESSION['ID']);
$choix = $_GET['choix'];

if($choix == 1)
{
	$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
	$db->query($requete);
	//Fort
	verif_mort(20, 2, 43200, 2);
}
elseif($choix == 2)
{
	if(array_key_exists('rez', $_GET))
	{
		$requete = "SELECT pourcent, duree, malus FROM rez WHERE id = '".sSQL($_GET['rez'])."' AND id_perso = ".$joueur->get_id();
		$req = $db->query($requete);
		$row = $db->read_assoc($req);
		if(is_array($row))
		{
			$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
			$db->query($requete);
			//Rez
			verif_mort($row['pourcent'], 3, $row['duree'], $row['malus']);
		}
	}
}
elseif($choix == 3)
{
	$requete = "DELETE FROM rez WHERE id_perso = ".$joueur->get_id();
	$db->query($requete);
	$R = new royaume($Trace[$joueur->get_race()]['numrace']);
	$R->verif_hp();
	if($R->get_capitale_hp() > 0) $malus = 15;
	else $malus = 5;
	//Ville
	verif_mort($malus, 4, 43200, 2);
}
 
?>
<img src="image/pixel.gif" onload="window.location = 'interface.php';" />

{'fraction_non_alphanumeric': 0.23781263247138618, 'fraction_numerical': 0.0211954217888936, 'mean_word_length': 4.714285714285714, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3759725', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1026, 'n_words': 187}