logout.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html;" />
  4. <link rel="stylesheet" type="text/css" href="/white.css">
  5. <meta charset="utf-8" />
  6. <title>Выход</title>
  7. <script language="javascript" type="text/javascript">
  8. try{
  9. var agt=navigator.userAgent.toLowerCase();
  10. if (agt.indexOf("msie") != -1) {
  11. // IE clear HTTP Authentication
  12. document.execCommand("ClearAuthenticationCache");
  13. }
  14. else {
  15. var xmlhttp = createXMLObject();
  16. xmlhttp.open("GET",".force_logout_offer_login_mozilla",true,"logout","");
  17. xmlhttp.send("");
  18. xmlhttp.abort();
  19. }
  20. // window.location = "/rest/";
  21. } catch(e) {
  22. // There was an error
  23. alert("there was an error");
  24. }
  25. function createXMLObject() {
  26. try {
  27. if (window.XMLHttpRequest) {
  28. xmlhttp = new XMLHttpRequest();
  29. }
  30. // code for IE
  31. else if (window.ActiveXObject) {
  32. xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  33. }
  34. } catch (e) {
  35. xmlhttp=false
  36. }
  37. return xmlhttp;
  38. }
  39. </script>
  40. </head>
  41. <body>
  42. <div align=center>
  43. <table>
  44. <tr>
  45. <td align="center" valign="middle"><p><font size="+1">Welcome</font></p><p><font size="+1"><a href="/admin/">Войти</a></font></p><p>&nbsp;</p>*</td>
  46. </tr>
  47. </table>
  48. </div>
  49. </body>
  50. </html>