2015-08-25 16:54:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gestion des comptes utilisateurs
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009 Evolix - Tous droits reserves
|
|
|
|
*
|
|
|
|
* vim: expandtab softtabstop=4 tabstop=4 shiftwidth=4 showtabline=2
|
|
|
|
*
|
|
|
|
* @author Gregory Colpart <reg@evolix.fr>
|
|
|
|
* @author Thomas Martin <tmartin@evolix.fr>
|
|
|
|
* @author Sebastien Palma <spalma@evolix.fr>
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
if(!empty($exec_info)) {
|
|
|
|
print '<pre>';
|
|
|
|
if ($conf['debug'] == TRUE)
|
|
|
|
printf("Exécution de : %s\n", $exec_info[0]);
|
|
|
|
|
|
|
|
if ($exec_info[1]) {
|
|
|
|
print "La commande a <strong>échoué</strong>\n";
|
2019-03-26 16:59:12 +01:00
|
|
|
print_r($exec_info);
|
2015-08-25 16:54:13 +02:00
|
|
|
}
|
|
|
|
else print "Le compte a été créé avec succès\n";
|
|
|
|
|
|
|
|
if ($conf['debug'] == TRUE)
|
|
|
|
foreach($exec_info[2] as $exec_line) {
|
|
|
|
printf("%s\n", $exec_line);
|
|
|
|
}
|
|
|
|
|
|
|
|
print '</pre>';
|
|
|
|
} else {
|
|
|
|
|
2019-03-26 16:59:12 +01:00
|
|
|
// If there is validation errors, display them
|
2019-03-25 14:37:44 +01:00
|
|
|
if (isset($errors_check)) {
|
2019-03-26 16:59:12 +01:00
|
|
|
print '<p class="form-error"><strong>Erreur(s) : </strong><br>';
|
|
|
|
foreach ($errors_check as $error) {
|
|
|
|
printf('%s<br>', $error);
|
|
|
|
}
|
|
|
|
print '</p>';
|
2019-03-25 14:37:44 +01:00
|
|
|
}
|
|
|
|
?>
|
2019-03-26 16:59:12 +01:00
|
|
|
|
2015-08-25 16:54:13 +02:00
|
|
|
<form name="form-add" id="form-add" action="" method="POST">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Ajout d'un compte</legend>
|
2019-03-26 16:59:12 +01:00
|
|
|
<?= $form ?>
|
2015-08-25 16:54:13 +02:00
|
|
|
<p><input type="submit" value="Créer"/></p>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php } ?>
|