Fix sudoexec function.

This commit is contained in:
Benoît S. 2015-09-04 10:03:09 +02:00
parent 3b7f2f788d
commit 68fa678589
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ function is_superadmin() {
} }
} }
function sudoexec($cmd, $output, $return_var) { function sudoexec($cmd, &$output, &$return_var) {
global $conf; global $conf;
/* -H The -H (HOME) option sets the HOME environment variable to the /* -H The -H (HOME) option sets the HOME environment variable to the

View file

@ -57,7 +57,7 @@ function web_add($form, $admin_mail) {
$form->getField('domain')->getValue()); $form->getField('domain')->getValue());
//domain_add($form, $_SERVER['SERVER_ADDR'], true); //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 */ /* Gestion des noms de domaines supplementaires */
if ( $form->getField('domain_alias')->getValue() ) { if ( $form->getField('domain_alias')->getValue() ) {