Fix sudoexec function.
This commit is contained in:
parent
3b7f2f788d
commit
68fa678589
|
@ -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
|
||||
|
|
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in a new issue