diff --git a/htdocs/common.php b/htdocs/common.php index c59e84b..449b8ad 100644 --- a/htdocs/common.php +++ b/htdocs/common.php @@ -49,7 +49,7 @@ function is_superadmin() { } } -function sudoexec($cmd, $output, $return_var) { +function sudoexec($cmd, &$output, &$return_var) { global $conf; /* -H The -H (HOME) option sets the HOME environment variable to the diff --git a/inc/accounts.php b/inc/accounts.php index 683258a..f6b4474 100644 --- a/inc/accounts.php +++ b/inc/accounts.php @@ -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() ) {