} //Gravatar $url = get_gravatar($user["mail"]); //Select comms $nbcomms = selectComms($user["pseudo"]); //Select posts $nbposts = selectPosts($user["pseudo"]); //Select comms G $nbcommstempG = selectCommsGlobal(); //comms autres $nbcommsG = $nbcommstempG - $nbcomms; //Select posts G $nbpoststempG = selectPostsGlobal(); //Posts autres $nbpostsG = $nbpoststempG - $nbposts; //Ranking $rank = Ranking($user["pseudo"]); //Date inscription $date = $user["date_i"]; } else { $title = "Merci de renseigner un pseudo !"; } //Connexion/déconnexion if (isset($_SESSION["pseudo"])) { //Affichage "Bienvenue, pseudo" + déco $menu = true; } else { //Affichage co $menu = false; } include_once "vue/profil.php";
} //Session checker 3000 if (empty($_SESSION)) { header("Location: connexion.php"); } //Gravatar $url = get_gravatar($_SESSION["mail"]); //Select comms $nbcomms = selectComms($_SESSION["pseudo"]); //Select posts $nbposts = selectPosts($_SESSION["pseudo"]); //Select comms G $nbcommstempG = selectCommsGlobal(); //comms autres $nbcommsG = $nbcommstempG - $nbcomms; //Select posts G $nbpoststempG = selectPostsGlobal(); //Posts autres $nbpostsG = $nbpoststempG - $nbposts; //Ranking $rank = Ranking($_SESSION["pseudo"]); //Connexion/déconnexion if (isset($_SESSION["pseudo"])) { //Affichage "Bienvenue, pseudo" + déco $menu = true; } else { //Affichage co $menu = false; } $title = "Bienvenue, " . $_SESSION["pseudo"] . " - voici votre profil."; include_once "vue/membre.php";
<p style="text-align: center" class="help-block">NOUVELLE MàJ du 30/12/15 : ajout de fonctionnalités importantes ! <a href="updatenotes.php">Lisez les notes !</a></p> <h3 style="text-align: center">Liste des utilisateurs inscrits</h3> <table class="table"> <thead> <tr> <th>Pseudonyme :</th> <th>Inscrit depuis le :</th> <th>Rang :</th> </tr> </thead> <tbody> <?php $latest = "set"; foreach ($users as $user) { if ($latest != $user["pseudo"]) { echo "<tr><td><a href='profil.php?pseudo=" . urlencode($user["pseudo"]) . "'>" . $user["pseudo"] . "</a></td><td>" . $user["date_inscription"] . "</td><td>Rang actuel : " . Ranking($user["pseudo"]) . " - <a href='edit_rank.php?id=" . $user["id"] . "'>Editer le rang</a></td></tr>"; $latest = $user["pseudo"]; } } ?> </tbody> </table> <br /> <h3 style="text-align: center">Gestion du carrousel</h3> <p style="text-align: center" class="help-block">ATTENTION : cette option peut dégrader l'expérience de navigation sur certains périphériques.<br />A utiliser uniquement si elle s'avère utile.</p> <?php if (isset($outputCarrousel)) { echo "<div class=\"alert alert-success\" role=\"alert\"><i class=\"fa fa-check\"></i> " . $outputCarrousel . "</div>"; } ?> <form method="post" action="admin.php">
<!--<th>Ban chat :</th> INDEV - COMING SOON--> </tr> </thead> <tbody> <tr> <td><?php echo $user["pseudo"]; ?> </td> <td> <select name='rank' id='rankedit'> <option value='<?php echo utf8_encode($user["rank"]); ?> '>Rang actuel : <?php echo Ranking($user["pseudo"]); ?> </option> <option value='1'>Banni</option> <option value='2'>Utilisateur standard / pas de permission</option> <option value='3'>Membre</option> <option value='4'>Rédacteur/Modérateur</option> <option value='5'>Administrateur</option> </select> </td> <!--<td><input type="checkbox" name="banchat" id="banchat" <?php if ($user["banchat"] == "1") { echo "checked"; } ?> /> <label for="banchat">Bannir du chat</label></td> INDEV - COMING SOON-->