SetRootPassword($_POST['password']); $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/success", $locale->strings, array( 'title' => $locale->strings['error-password-success-title'], 'message' => $locale->strings['error-password-success-text'] )); } else { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-password-nomatch-title'], 'message' => $locale->strings['error-password-nomatch-text'] )); } } else { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-password-missing-title'], 'message' => $locale->strings['error-password-missing-text'] )); } } catch (ContainerSuspendedException $e) { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-password-suspended-title'], 'message' => $locale->strings['error-password-suspended-text'] )); } catch (ContainerTerminatedException $e) { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-password-terminated-title'], 'message' => $locale->strings['error-password-terminated-text'] )); } catch (SshExitException $e) { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-password-invalid-title'], 'message' => $locale->strings['error-password-invalid-text'] )); } } if($display_form === true) { $sPageContents .= NewTemplater::Render("{$sTheme}/shared/error/warning", $locale->strings, array( 'title' => $locale->strings['warning-password-title'], 'message' => $locale->strings['warning-password-text'] )); $sPageContents .= Templater::AdvancedParse("{$sTheme}/client/vps/password", $locale->strings, array( 'id' => $sContainer->sId )); }