- do_log($rehash_success);
- $servlist_bullet = "<ol>";
-
- foreach($rehash_success as $serv)
- {
- $servlist_bullet .= "<li>$serv</li>";
- }
- $servlist_bullet .= "</ol>";
- $servlist_err_bullet = "";
- foreach($rehash_errors as $serv => $err)
- {
- $servlist_err_bullet .= "<h6>$serv</h6><ol>";
- foreach($err as $er)
- $servlist_err_bullet .= "<li>$er</li>";
- echo "</ol>";
- }
- $servlist_warn_bullet = "";
- foreach($rehash_warnings as $server => $warning)
- {
- $servlist_warn_bullet .= "<h6>$serv</h6><ol>";
- foreach($warning as $w)
- $servlist_warn_bullet .= "<li>$w</li>";
- $servlist_warn_bullet .= "</ol>";
- }
- if (!empty($rehash_success))
- Message::Success(
- "The following server(s) were successfully rehashed:",
- $servlist_bullet
- );
- if (!empty($rehash_warnings))
- Message::Info(
- "The following warning(s) were encountered:",
- $servlist_warn_bullet
- );
- if (!empty($rehash_errors))
- Message::Fail(
- "The following error(s) were encountered and the server(s) failed to rehash:",
- $servlist_err_bullet
- );
+ Message::Success(
+ "The following server(s) were successfully rehashed:",
+ $servlist_bullet
+ );
+ if (!empty($rehash_warnings))
+ Message::Warning(
+ "The following warning(s) were encountered:",
+ $servlist_warn_bullet
+ );
+ if (!empty($rehash_errors))
+ Message::Fail(
+ "The following error(s) were encountered and the server(s) failed to rehash:",
+ $servlist_err_bullet
+ );
+ }