$pseudo = $_SESSION["pseudo"];
                $alerte = "Votre compte mail vient d'être désactivé.";
                exec('sudo /var/script/desactivation_mail_account.sh ' . $pseudo);
                desactive_mail($id);
                include "./vue/vue_gestion_mail.php";
            } else {
                if ($verif_status_mail == "2") {
                    $alerte = "Votre compte mail a déjà été désactivé par l'administrateur.";
                    include "./vue/vue_gestion_mail.php";
                } else {
                    $alerte = "Votre compte mail est déjà désactivé.";
                    include "./vue/vue_gestion_mail.php";
                }
            }
            break;
        case "supprimer_mail":
            $id = $_SESSION["id"];
            $verif_mail = mail_open($id);
            if ($verif_mail != "") {
                $pseudo = $_SESSION["pseudo"];
                $alerte = "Votre compte mail vient d'être définitivement fermé.";
                exec('sudo /var/script/del_mail_account.sh ' . $pseudo);
                del_mail($id);
                desactive_mail($id);
                include "./vue/vue_gestion_mail.php";
            }
            break;
    }
} else {
    include "./vue/vue_gestion_mail.php";
}
Пример #2
0
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Bienvenue <?php 
echo strtoupper($_SESSION["pseudo"]);
?>
</h1>
                </div>
            </div>

            <div class="row">

                <?php 
//$id = id($_SESSION['pseudo']);
$mail_open = mail_open($id);
$status_mail = status_mail($id);
?>
            
                <div class="col-lg-3 col-md-6">
                    <div class="<?php 
if ($mail_open == '' || $status_mail == '0' || $status_mail == '2') {
    echo 'disabled';
} else {
    echo 'panel panel-primary';
}
?>
">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-3">
Пример #3
0
        echo 'btn btn-warning btn-xs';
    } else {
        echo 'btn btn-success btn-xs';
    }
    ?>
" 
                            name="<?php 
    if ($status_mail != '2') {
        echo 'desactiver_mail';
    } else {
        echo 'activer_mail';
    }
    ?>
" 
                            <?php 
    $verif_mail = mail_open($id[$x]);
    if ($verif_mail == "") {
        echo "disabled='disabled'";
    }
    ?>
>
                        </form>  
                    </td>
                    <td>
                        <?php 
    //echo $status_blog;
    ?>
                        <form action="<?php 
    echo INDEX;
    ?>
?index=vue_admin" method="post">
Пример #4
0
        echo 'btn btn-warning btn-xs';
    } else {
        echo 'btn btn-success btn-xs';
    }
    ?>
" 
                    name="<?php 
    if ($status_mail != '2') {
        echo 'desactiver_mail';
    } else {
        echo 'activer_mail';
    }
    ?>
" 
                    <?php 
    $verif_mail = mail_open($result['id_utilisateur']);
    if ($verif_mail == "") {
        echo "disabled='disabled'";
    }
    ?>
>
                </form>  
            </td>
            <td>
                <?php 
    //echo $status_blog;
    ?>
                <form action="<?php 
    echo INDEX;
    ?>
?index=vue_admin" method="post">