applyreboot.htm 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <html>
  7. <head>
  8. <title><%=luci.sys.hostname()%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %></title>
  9. <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
  10. <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
  11. <script type="text/javascript">//<![CDATA[
  12. var interval = window.setInterval(function() {
  13. var img = new Image();
  14. img.onload = function() {
  15. window.clearInterval(interval);
  16. location.href = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%>/';
  17. };
  18. img.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random();
  19. }, 5000);
  20. //]]></script>
  21. </head>
  22. <body>
  23. <div id="maincontainer">
  24. <div id="maincontent">
  25. <h2 name="content"><%:System%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %></h2>
  26. <fieldset class="cbi-section">
  27. <p>
  28. <% if msg then %><%=msg%><% else %><%:Changes applied.%><% end %>
  29. </p>
  30. <p>
  31. <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
  32. <%:Waiting for changes to be applied...%>
  33. </p>
  34. </fieldset>
  35. </div>
  36. </div>
  37. </body>
  38. </html>