sCurrentStatus != CVM_STATUS_STOPPED) { try { $sVps->Stop(); $sVps->sCurrentStatus = CVM_STATUS_STOPPED; $sError .= NewTemplater::Render("{$sTheme}/shared/error/success", $locale->strings, array( 'title' => $locale->strings['error-stop-success-title'], 'message' => $locale->strings['error-stop-success-text'] )); } catch (VpsSuspendedException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-stop-suspended-title'], 'message' => $locale->strings['error-stop-suspended-text'] )); } catch (VpsTerminatedException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-stop-terminated-title'], 'message' => $locale->strings['error-stop-terminated-text'] )); } catch(VpsStopException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-stop-failed-title'], 'message' => $locale->strings['error-stop-failed-text'] )); } } else { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-stop-stopped-title'], 'message' => $locale->strings['error-stop-stopped-text'] )); }