1
0

logout.html 1.1 KB

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