' . $var . "
";
if ( isset($_GET[$var]) )
{
//echo '$_get -> $var =>' . $var . "
";
return $_GET[$var];
}
elseif ( isset($_POST[$var]) )
{
//echo '$_POST -> $var =>' . $var . "
";
return $_POST[$var];
}else
{
return null;
}
}
// MET LA PREMIÈRE LETTRE D'UN MOT EN MAJUSCULE ( utf8 compliant )
function mb_ucfirst($str)
{
$char = mb_substr($str,0,1,"UTF8");
$str = mb_substr( $str, 1, NULL, "UTF8");
$char = mb_strtoupper( $char, "UTF8");
return $char . $str;
}
function choixVote($path, $idVotation, $confirm=false)
{
global $base_url, $action;
$db = new db();
$query = "SELECT * FROM liste_votes WHERE idVotation=" . $idVotation;
$result = $db->query($query);
$votes = $db->result->fetch_all(MYSQLI_ASSOC);
print ('