Various fixes

This commit is contained in:
nemunaire 2015-01-16 23:53:13 +01:00 committed by Nemunaire
commit e1abba602a
3 changed files with 8 additions and 3 deletions

View file

@ -87,12 +87,13 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
$output .= new_client($team->team_name, $misc_dir);
}
}
$template->assign("output", $output);
if (file_exists("$misc_dir/PKI/teams.pass"))
{
$output .= file_get_contents("$misc_dir/PKI/teams.pass");
shell_exec("sync");
$template->assign("pass", file_get_contents("$misc_dir/PKI/teams.pass"));
unlink("$misc_dir/PKI/teams.pass");
}
$template->assign("output", $output);
}
else
$error = "Aucune team trouvée";