$hote = 'localhost';
$utilisateur = 'root';
$mdp = '';
echo '
<link rel="stylesheet" type="text/css" media="screen" href="css/GeekZone.css"/>
	';
$page = "Acceuil";
include 'inc/titre.php';
include 'inc/fonction2.php';
echo '
	<body>
	';
include 'inc/border.php';
if (!isset($_SESSION['login'])) {
    if (isset($_POST['identifiant']) && !empty($_POST['identifiant']) && isset($_POST['mdp']) && !empty($_POST['mdp'])) {
        if (verifLogin($_POST['identifiant'], $_POST['mdp'], $base, $hote, $utilisateur, $mdp)) {
            echo '<meta http-equiv="refresh" content="0; URL=test.php">';
            exit;
        }
    }
    echo '
	<div class = "content">
	<form class="produitFT"; action="gestionProduits.php" method="get">
	
		<div class="produitTri">
			Trier les produits : <SELECT class="produitFilter" name="tri" size="">
				<OPTION ';
    if (isset($_GET['tri']) && $_GET['tri'] == "numero") {
        echo "selected";
    }
    echo '>numero
if (!$post_login || !$post_password || !is_email($post_login)) {
    if ($post_submit) {
        if (!$post_login) {
            $msg .= "&rarr; Login obligatoire";
        } else {
            if (!is_email($post_login)) {
                $msg .= "&rarr; Login non valide";
            }
        }
        if (!$post_password) {
            $msg .= "&rarr; Mot-de-passe obligatoire";
        }
    }
    $page = "login";
} else {
    $result = verifLogin($post_login, $post_password);
    if (is_array($result) && sizeof($result) > 0) {
        $l_user_id = convertFromDB($result[0]["user_id"]);
        $user_pseudo = convertFromDB($result[0]["user_pseudo"]);
        $_SESSION["admin_user_id"] = $l_user_id;
        $_SESSION["admin_login"] = $post_login;
        $_SESSION["admin_password"] = md5($post_password);
        $_SESSION["admin_pseudo"] = $user_pseudo;
        $msg .= "<i class='fa fa-thumbs-o-up'></i> Connexion établie avec succès.\n";
        $page = "admin_accueil";
    } else {
        $msg .= "<i class='fa fa-exclamation-triangle'></i> Oupsss... utilisateur non valide....\n";
        $page = "login";
    }
}
switch ($get_action) {