Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * * * @author David Mellot <[email protected]> * @copyright 201..
Decoded Output download
<?php
/**
*
*
* @author David Mellot <[email protected]>
* @copyright 2015-2016 David Mellot
* @license
* @version
* @link http://www.synhcrolivescore.com
*
*/
?>
<?php session_start(); ?>
<?php require("../template/header.php");require("../conf/config.php");
$m->exec("Update fn_users set on_line = (now()) WHERE id_users = ".$_SESSION["id_users"].""); ?>
<script language="JavaScript">
// gestions des remplaantes
function surligne(remplac, erreur)
{
if(erreur)
remplac.style.backgroundColor = "#fba";
else
remplac.style.backgroundColor = "";
}
function verifnageuse(remplac)
{
if(remplac.value == "T" || remplac.value =="R")
{
surligne(remplac, false);
return true;
}
else
{
surligne(remplac, true);
return false;
}
}
function verifForm(f)
{
var nageOk = verifnageuse(f.remplac);
if(nageOk)
{
return true;
}
else
{
alert("Veuillez indiquer T pour titulaire ou R pour remplaante");
return false;
}
}
//gestion des forfaits
function surligne(forf, erreur)
{
if(erreur)
forf.style.backgroundColor = "#fba";
else
forf.style.backgroundColor = "";
}
function veriforfait(forf)
{
if(forf.value == "F" || forf.value == "")
{
surligne(forf, false);
return true;
}
else
{
surligne(forf, true);
return false;
}
}
function verifForf(f)
{
var forfaitOk = veriforfait(f.forf);
if(forfaitOk)
{
return true;
}
else
{
alert("Veuillez indiquer F pour les nageuses forfaits ou vide pour supprimer les forfaits");
return false;
}
}
</script>
<?php
if(isset($_SESSION["id_users"]) == "") : ?>
Vous devez vous connecter pour accder cette page.
<?php
else :
if(isset($_SESSION["id_users"]) AND($_SESSION["id_groupe"] == 1 OR $_SESSION["id_groupe"] == 3 OR $_SESSION["id_groupe"] == 4)): ?>
<div class="container" >
<?php if(isset($_GET["tri"])) :
$b = $_GET["tri"];
else :
$b = "club";endif;
if(isset($_GET["club"])) :
$j = $_GET["club"];$i = $m->query("SELECT * FROM fn_competition_1 where club ='" . $j ."' order BY club");
else :
$i = $m->query("SELECT * FROM fn_competition_1 order BY " . $b . "");
endif;
?>
<table class="list_nag" border=1>
<tr><td colspan="5" style="border:solid 0px;"class="lien_tri"> <a href="listenageuses.php?tri=nom">Trier par nageuses</a> | <a href="listenageuses.php?tri=club">Trier par clubs</a> | <a href="listenageuses.php?tri=naissance">Trier par anne naissance</a>
<form method="GET" action="#">
<p>Filtrer par club : <select name="club" id="club">
<?php
$z = $m->query("SELECT DISTINCT club FROM fn_competition_1 order by club");
echo "<option value="">CHOISISSEZ UN CLUB</option>";
while($fy = $z->fetch()){echo "<option value="".$fy["club"]."">".$fy["club"]."</option>";
}
?>
</select>
<input type="submit" value="Envoyer">
</form></td>
<tr>
<td class="title"> Nom prnom de la nageuse</td>
<td class="title">Anne de <br />naissance</td>
<td class="title">Clubs</td>
<td class="title">Fonction</td>
<td class="title">Forfait</td>
</tr>
<?php $fc = array("impaire", "paire");$fk = count($fc);
$fm = 0; ?>
<?php while($h = $i->fetch())
{ ?>
<tr class="<?php echo $fc[$fm % $fk] ?>">
<td>
<?php echo $h["nom"]; ?> <?php echo $h["prenom"]; ?>
</td>
<td>
<?php echo $h["naissance"]; ?>
</td>
<td>
<?php echo $h["club"];
if($h["num_equipe"] !=1) :
echo " " . $h["num_equipe"] . "";endif;
?>
</td>
<td width="30px" align="center">
<?php echo $h["id_fonction"]; ?>
</td>
<td width="30px" align="center"><?php echo $h["forfait"]; ?>
</td>
<?php
if(isset($_SESSION["id_users"]) AND $_SESSION["id_groupe"] != 4): ?>
<td width="30px" style="border:solid 0px; background-color:white;"></td>
<td style="background-color:white;">
Gestion des remplaantes<br />
<form method="post" name="gestion" action="update_sql/update_rempla.php" onsubmit="return verifForm(this)">
<input type="hidden" name="id" value="<?php echo $h["id"]; ?>" />
<input type="hidden" name="tri" value="<?php echo $b; ?>" />
<input type="hidden" name="club" value="<?php echo $j; ?>" />
<select name="remplac" onblur="verifnageuse(this)">
<option value="">Slect.</option>
<option value="T"> T </option>
<option value="R"> R</option>
</select>
<input type="submit" value="Modifier" />
</form>
<td style="background-color:white;">
forfait<br />
<form method="post" name="forfait" action="update_sql/update_forfait.php" onsubmit="return verifForf(this)">
<input type="hidden" name="id" value="<?php echo $h["id"]; ?>" />
<input type="hidden" name="tri" value="<?php echo $b; ?>" />
<input type="hidden" name="club" value="<?php echo $j; ?>" />
<select name="forf" onblur="veriforfait(this)">
<option value="1">Slect.</option>
<option value=""> </option>
<option value="F"> F </option>
</select>
<input type="submit" value="Modifier" />
</form>
</td>
<?php
endif ?>
</tr>
<?php $fm++;
} ?>
</table>
</div>
<?php
endif;endif;require("../template/footer.php");
?>
Did this file decode correctly?
Original Code
<?php
/**
*
*
* @author David Mellot <[email protected]>
* @copyright 2015-2016 David Mellot
* @license
* @version
* @link http://www.synhcrolivescore.com
*
*/
?>
<?php session_start(); ?>
<?php require("\x2e\x2e\x2f\x74\x65\x6d\x70\x6c\x61\x74\x65\x2f\x68\x65\x61\x64\x65\x72\x2e\x70\x68\x70");require("\x2e\x2e\x2f\x63\x6f\x6e\x66\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x70\x68\x70");
$m->exec("\x55\x70\x64\x61\x74\x65\x20\x66\x6e\x5f\x75\x73\x65\x72\x73\x20\x73\x65\x74\x20\x6f\x6e\x5f\x6c\x69\x6e\x65\x20\x3d\x20\x28\x6e\x6f\x77\x28\x29\x29\x20\x57\x48\x45\x52\x45\x20\x69\x64\x5f\x75\x73\x65\x72\x73\x20\x3d\x20".$_SESSION["\x69\x64\x5f\x75\x73\x65\x72\x73"].""); ?>
<script language="JavaScript">
// gestions des remplaantes
function surligne(remplac, erreur)
{
if(erreur)
remplac.style.backgroundColor = "#fba";
else
remplac.style.backgroundColor = "";
}
function verifnageuse(remplac)
{
if(remplac.value == "T" || remplac.value =="R")
{
surligne(remplac, false);
return true;
}
else
{
surligne(remplac, true);
return false;
}
}
function verifForm(f)
{
var nageOk = verifnageuse(f.remplac);
if(nageOk)
{
return true;
}
else
{
alert("Veuillez indiquer T pour titulaire ou R pour remplaante");
return false;
}
}
//gestion des forfaits
function surligne(forf, erreur)
{
if(erreur)
forf.style.backgroundColor = "#fba";
else
forf.style.backgroundColor = "";
}
function veriforfait(forf)
{
if(forf.value == "F" || forf.value == "")
{
surligne(forf, false);
return true;
}
else
{
surligne(forf, true);
return false;
}
}
function verifForf(f)
{
var forfaitOk = veriforfait(f.forf);
if(forfaitOk)
{
return true;
}
else
{
alert("Veuillez indiquer F pour les nageuses forfaits ou vide pour supprimer les forfaits");
return false;
}
}
</script>
<?php
if(isset($_SESSION["\x69\x64\x5f\x75\x73\x65\x72\x73"]) == "") : ?>
Vous devez vous connecter pour accder cette page.
<?php
else :
if(isset($_SESSION["\x69\x64\x5f\x75\x73\x65\x72\x73"]) AND($_SESSION["\x69\x64\x5f\x67\x72\x6f\x75\x70\x65"] == 1 OR $_SESSION["\x69\x64\x5f\x67\x72\x6f\x75\x70\x65"] == 3 OR $_SESSION["\x69\x64\x5f\x67\x72\x6f\x75\x70\x65"] == 4)): ?>
<div class="container" >
<?php if(isset($_GET["\x74\x72\x69"])) :
$b = $_GET["\x74\x72\x69"];
else :
$b = "\x63\x6c\x75\x62";endif;
if(isset($_GET["\x63\x6c\x75\x62"])) :
$j = $_GET["\x63\x6c\x75\x62"];$i = $m->query("\x53\x45\x4cE\x43\x54\x20*\x20\x46\x52\x4fM\x20\x66\x6e_\x63\x6f\x6dp\x65\x74i\x74\x69\x6f\x6e\x5f1\x20w\x68e\x72e\x20c\x6c\x75b\x20=\x27" . $j ."\x27\x20\x6fr\x64\x65\x72 \x42\x59\x20\x63l\x75\x62");
else :
$i = $m->query("\x53\x45\x4cE\x43\x54\x20*\x20\x46\x52\x4fM\x20\x66\x6e_\x63\x6f\x6dp\x65\x74i\x74\x69\x6f\x6e\x5f1\x20o\x72d\x65r\x20B\x59\x20" . $b . "");
endif;
?>
<table class="list_nag" border=1>
<tr><td colspan="5" style="border:solid 0px;"class="lien_tri"> <a href="listenageuses.php?tri=nom">Trier par nageuses</a> | <a href="listenageuses.php?tri=club">Trier par clubs</a> | <a href="listenageuses.php?tri=naissance">Trier par anne naissance</a>
<form method="GET" action="#">
<p>Filtrer par club : <select name="club" id="club">
<?php
$z = $m->query("\x53\x45\x4cE\x43\x54\x20D\x49\x53\x54\x49N\x43\x54\x20c\x6c\x75\x62 \x46\x52O\x4d\x20\x66\x6e\x5fc\x6fm\x70e\x74i\x74i\x6f\x6e_\x31 \x6fr\x64\x65\x72\x20b\x79 \x63l\x75b");
echo "\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x22\x3e\x43\x48\x4f\x49\x53\x49\x53\x53\x45\x5a\x20\x55\x4e\x20\x43\x4c\x55\x42\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e";
while($fy = $z->fetch()){echo "\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22".$fy["\x63\x6c\x75\x62"]."\x22\x3e".$fy["\x63\x6c\x75\x62"]."\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e";
}
?>
</select>
<input type="submit" value="Envoyer">
</form></td>
<tr>
<td class="title"> Nom prnom de la nageuse</td>
<td class="title">Anne de <br />naissance</td>
<td class="title">Clubs</td>
<td class="title">Fonction</td>
<td class="title">Forfait</td>
</tr>
<?php $fc = array("\x69\x6d\x70\x61\x69\x72\x65", "\x70\x61\x69\x72\x65");$fk = count($fc);
$fm = 0; ?>
<?php while($h = $i->fetch())
{ ?>
<tr class="<?php echo $fc[$fm % $fk] ?>">
<td>
<?php echo $h["\x6e\x6f\x6d"]; ?> <?php echo $h["\x70\x72\x65\x6e\x6f\x6d"]; ?>
</td>
<td>
<?php echo $h["\x6e\x61\x69\x73\x73\x61\x6e\x63\x65"]; ?>
</td>
<td>
<?php echo $h["\x63\x6c\x75\x62"];
if($h["\x6e\x75\x6d\x5f\x65\x71\x75\x69\x70\x65"] !=1) :
echo "\x20" . $h["\x6e\x75\x6d\x5f\x65\x71\x75\x69\x70\x65"] . "";endif;
?>
</td>
<td width="30px" align="center">
<?php echo $h["\x69\x64\x5f\x66\x6f\x6e\x63\x74\x69\x6f\x6e"]; ?>
</td>
<td width="30px" align="center"><?php echo $h["\x66\x6f\x72\x66\x61\x69\x74"]; ?>
</td>
<?php
if(isset($_SESSION["\x69\x64\x5f\x75\x73\x65\x72\x73"]) AND $_SESSION["\x69\x64\x5f\x67\x72\x6f\x75\x70\x65"] != 4): ?>
<td width="30px" style="border:solid 0px; background-color:white;"></td>
<td style="background-color:white;">
Gestion des remplaantes<br />
<form method="post" name="gestion" action="update_sql/update_rempla.php" onsubmit="return verifForm(this)">
<input type="hidden" name="id" value="<?php echo $h["\x69\x64"]; ?>" />
<input type="hidden" name="tri" value="<?php echo $b; ?>" />
<input type="hidden" name="club" value="<?php echo $j; ?>" />
<select name="remplac" onblur="verifnageuse(this)">
<option value="">Slect.</option>
<option value="T"> T </option>
<option value="R"> R</option>
</select>
<input type="submit" value="Modifier" />
</form>
<td style="background-color:white;">
forfait<br />
<form method="post" name="forfait" action="update_sql/update_forfait.php" onsubmit="return verifForf(this)">
<input type="hidden" name="id" value="<?php echo $h["\x69\x64"]; ?>" />
<input type="hidden" name="tri" value="<?php echo $b; ?>" />
<input type="hidden" name="club" value="<?php echo $j; ?>" />
<select name="forf" onblur="veriforfait(this)">
<option value="1">Slect.</option>
<option value=""> </option>
<option value="F"> F </option>
</select>
<input type="submit" value="Modifier" />
</form>
</td>
<?php
endif ?>
</tr>
<?php $fm++;
} ?>
</table>
</div>
<?php
endif;endif;require("\x2e\x2e\x2f\x74\x65\x6d\x70\x6c\x61\x74\x65\x2f\x66\x6f\x6f\x74\x65\x72\x2e\x70\x68\x70");
?>
Function Calls
| session_start | 1 |
Stats
| MD5 | 221b3400c43fa8f3d4605df67cf993d9 |
| Eval Count | 0 |
| Decode Time | 78 ms |