poll.asp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <%
  2. Option Explicit
  3. Response.Expires = 0
  4. %>
  5. <!--
  6. * This file is part of the LibreOffice project.
  7. *
  8. * This Source Code Form is subject to the terms of the Mozilla Public
  9. * License, v. 2.0. If a copy of the MPL was not distributed with this
  10. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  11. *
  12. * This file incorporates work covered by the following license notice:
  13. *
  14. * Licensed to the Apache Software Foundation (ASF) under one or more
  15. * contributor license agreements. See the NOTICE file distributed
  16. * with this work for additional information regarding copyright
  17. * ownership. The ASF licenses this file to you under the Apache
  18. * License, Version 2.0 (the "License"); you may not use this file
  19. * except in compliance with the License. You may obtain a copy of
  20. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  21. -->
  22. <!-- #include file = "common.inc" -->
  23. <HTML>
  24. <HEAD>
  25. <META http-equiv="refresh" CONTENT="<% = cnRefreshTime %>">
  26. </HEAD>
  27. <%
  28. ' get current picture id
  29. Dim nGIFID
  30. nGifID = File_getDataVirtual( csFileCurrent, ".", ";" )( 0 )
  31. ' a new picture was chosen ?
  32. if nGIFID <> Session( "GIFID" ) then
  33. ' then store the id of the new picture and show it
  34. Session( "GIFID" ) = nGIFID
  35. %>
  36. <BODY bgcolor="red" onLoad="parent.frame1.location.href='./show.asp?<%= nGIFID %>'">
  37. <%
  38. else
  39. %>
  40. <BODY bgcolor="green">
  41. <%
  42. end if
  43. %>
  44. </BODY>
  45. </HTML>