예제 #1
0
?index=vue_parametres"><i class="fa fa-gear fa-fw"></i> Paramètres</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="<?php 
echo INDEX;
?>
?index=deconnexion"><i class="fa fa-sign-out fa-fw"></i> Se Deconnecter</a>
                        </li>
                    </ul>
                </li>
            </ul>

            <?php 
$id = id($_SESSION["pseudo"]);
$verif_blog = blog($id);
$status_blog = status_blog($id);
$verif_star = verif_star($id);
$verif_demande = verif_demande_star($id);
?>
            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="Recherche...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                            </div>
예제 #2
0
            </tr>
        </thead>
        <tbody>
          <?php 
foreach ($results as $result) {
    ?>
          <tr>
            
            <td><?php 
    echo $result['pseudo'];
    ?>
</td>
            <td>
                <?php 
    $status_mail = status_mail($result['id_utilisateur']);
    $status_blog = status_blog($result['id_utilisateur']);
    //echo $status_mail;
    ?>
                <form action="<?php 
    echo INDEX;
    ?>
?index=vue_admin" method="post">
                    <input class="form-control" id="name" type="hidden" name="pseudo" value="<?php 
    echo $result['pseudo'];
    ?>
" required>
                    <input type="submit" value="<?php 
    if ($status_mail != '2') {
        echo 'Désactiver';
    } else {
        echo 'Activer';
예제 #3
0
                      </tr>
                  </thead>
                  <tbody>
                  <?php 
for ($x = 0; $x < count($pseudo); $x++) {
    ?>
                  <tr>
                    
                    <td><?php 
    echo $pseudo[$x];
    ?>
</td>
                    <td>
                        <?php 
    $status_mail = status_mail($id[$x]);
    $status_blog = status_blog($id[$x]);
    //echo $status_mail;
    ?>
                       <form action="<?php 
    echo INDEX;
    ?>
?index=vue_admin" method="post">
                            <input class="form-control" id="name" type="hidden" name="pseudo" value="<?php 
    echo $pseudo[$x];
    ?>
" required>
                            <input type="submit" value="<?php 
    if ($status_mail != '2') {
        echo 'Désactiver';
    } else {
        echo 'Activer';
         } else {
             if ($verif_status_blog == "2") {
                 $alerte = "Votre blog a été désactivé par l'administrateur.";
                 include "./vue/vue_gestion_blog.php";
             } else {
                 $alerte = "Votre blog vient d'être activé.";
                 $status = "1";
                 active_blog($id, $status);
                 exec('sudo /var/script/activation_vhost.sh ' . $pseudo);
                 include "./vue/vue_gestion_blog.php";
             }
         }
     }
     break;
 case "desactiver_blog":
     $verif_status_blog = status_blog($id);
     if ($verif_status_blog == "0") {
         $alerte = "Votre blog est déjà désactivé.";
         include "./vue/vue_gestion_blog.php";
     } else {
         if ($verif_status_blog == "2") {
             $alerte = "Votre blog a déjà été désactivé par l'administrateur.";
             include "./vue/vue_gestion_blog.php";
         } else {
             $alerte = "Votre blog vient d'être désactivé.";
             $status = "0";
             active_blog($id, $status);
             no_star($pseudo);
             no_devenir_star($pseudo);
             date_no_star($pseudo);
             exec('sudo /var/script/unactivation_vhost.sh ' . $pseudo);