You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Courtail/services/actions/ajoutAliasVirtuels.php

26 lines
837 B

<?php
session_start();
require_once($_SERVER["DOCUMENT_ROOT"]."/services/utilisateurs/privileges.php");
testPrivileges();
require_once ($_SERVER["DOCUMENT_ROOT"]."/services/bdd/alias_virtuels.php");
echo "<pre>";
var_dump($_POST);
echo "</pre>";
if (isset($_POST['prefix_alias']) && isset($_POST['nom_alias']) && isset($_POST['choix_domaine_alias']) && !empty($_POST['nom_alias']) && !empty($_POST['choix_domaine_alias'])) {
ajoutAliasVirtuelsPostfix($pdo);
header ("Location: /pages/gestion/administration.php?page=alias&succes=3");
}
else {
header ("Location: /pages/gestion/administration.php?page=alias&erreur=2");
}
/*if(ajoutAliasVirtuelsPostfix($pdo)) {
header ("Location: /pages/gestion/administration.php?page=alias&succes=1");
}
else {
header ("Location: /pages/gestion/administration.php?page=alias&erreur=1");
}*/
?>