oops, forget to remove debug code :(

This commit is contained in:
Gregory Colpart 2017-08-20 05:19:56 +02:00
parent 4dca34f979
commit ee8b8a6437

View file

@ -57,7 +57,7 @@ function web_add($form, $admin_mail) {
$form->getField('domain')->getValue());
//domain_add($form, $_SERVER['SERVER_ADDR'], true);
//sudoexec($exec_cmd, $exec_output, $exec_return);
sudoexec($exec_cmd, $exec_output, $exec_return);
/* Gestion des noms de domaines supplementaires */
if ( $form->getField('domain_alias')->getValue() ) {
@ -66,8 +66,7 @@ function web_add($form, $admin_mail) {
$exec_cmd = 'web-add.sh add-alias '.$form->getField('username')->getValue().' ';
$domain = trim($domain);
$exec_cmd .= $domain.' '.$master.' '.$slave;
//sudoexec($exec_cmd, $exec_output, $exec_return);
print $exec_cmd $exec_output $exec_return ; die;
sudoexec($exec_cmd, $exec_output, $exec_return);
//domain_add($form, gethostbyname($master), false);
}
$exec_return |= $exec_return2; // $exec_return == 0 if $exec_return == 0 && $exec_return2 == 0