function DisableAlias($id, $alias_full, $email)
{
    global $dbco;
    if ($id == null) {
        $selectcmd = $dbco->prepare("SELECT id,status FROM " . DBTABLEPREFIX . "alias WHERE email = :email AND alias = :alias_full");
        $selectcmd->bindParam('email', $email, PDO::PARAM_STR);
    } else {
        $selectcmd = $dbco->prepare("SELECT id,status FROM " . DBTABLEPREFIX . "alias WHERE id = :id AND alias = :alias_full");
        $selectcmd->bindParam('id', $id, PDO::PARAM_INT);
    }
    $selectcmd->bindParam('alias_full', $alias_full, PDO::PARAM_STR);
    $selectcmd->execute();
    $alias_fetch = $selectcmd->fetch();
    if (!$alias_fetch) {
        echo '<div class="highlight-1">Erreur : impossible de trouver cet email poubelle</div>';
    } else {
        if ($alias_fetch['status'] == 5) {
            UpdateStatusAlias($alias_fetch['id'], $alias_full, 3);
            echo '<div class="highlight-3">La réception sur <b>' . $alias_full . '</b> est maintenant suspendu.</div>';
        } else {
            if ($alias_fetch['status'] == 3) {
                echo '<div class="highlight-2">La réception sur <b>' . $alias_full . '</b> est déjà suspendu.</div>';
            } else {
                if ($alias_fetch['status'] == 0) {
                    echo '<div class="highlight-1">La réception sur <b>' . $alias_full . '</b> ne peut être suspendu car elle n\'a pas encore été activé.</div>';
                } else {
                    echo '<div class="highlight-1">Erreur : status inconnu</div>';
                }
            }
        }
    }
    UpdateVirtualDB();
}
     if (DEBUG) {
         $e->getMessage();
     }
     echo '</div>';
     die;
 }
 //////////////////
 // Start program
 //////////////////
 // get process "act" (action)
 $action = isset($_GET['act']) ? $_GET['act'] : '';
 switch ($action) {
     case "validemail":
         $get_value = urlUnGen($_GET['value']);
         if ($dbco->query("SELECT COUNT(*) FROM " . DBTABLEPREFIX . "alias WHERE id = '" . $get_value['id'] . "' AND status = 0")->fetchColumn() != 0) {
             UpdateStatusAlias($get_value['id'], $get_value['alias_full'], 5);
             echo '<div class="highlight-3">Votre email poubelle <b>' . $get_value['alias_full'] . '</b> est maintenant actif</div>';
         } else {
             echo '<div class="highlight-1">Erreur : ID introuvable ou déjà validé</div>';
         }
         break;
     case "disable":
         $get_value = urlUnGen($_GET['value']);
         DisableAlias($get_value['id'], $get_value['alias_full'], null);
         break;
     case "enable":
         $get_value = urlUnGen($_GET['value']);
         EnableAlias($get_value['id'], $get_value['alias_full'], null);
         break;
     case "delete":
         $get_value = urlUnGen($_GET['value']);