home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / sambar / sambar51p.exe / sysadmin / control / network / ntp.asp < prev    next >
Encoding:
Text File  |  2001-07-17  |  638 b   |  34 lines

  1. <HTML>
  2. <HEAD><TITLE>Sambar Server Network Control Panel</TITLE>
  3. <% 
  4. #include "../header.asp"
  5. #include "../menu.asp"
  6. area = "clocksync";
  7. #include "submenu.asp"
  8. %>
  9. <BR>
  10. <BLOCKQUOTE><BLOCKQUOTE>
  11. <FORM method=get action=ntp.asp>
  12. <INPUT NAME=host VALUE="<%=getParameter($params, "host"); %>">
  13. <INPUT TYPE=submit VALUE="NTP Clock Sync">
  14. </FORM>
  15. <BR>
  16. <%
  17. host = getParameter($params, "host");
  18. if (host != NULL)
  19. {
  20.     ret = ntpsync(host);
  21.     if (ret == -1)
  22.     {
  23.         printf("Failed to synchronize clock with NTP server: <I>%s</I>",
  24.             host);
  25.     }
  26. }
  27.  
  28. %>
  29. </BLOCKQUOTE></BLOCKQUOTE>
  30. <%
  31. #include "../footer.asp"
  32. %>
  33. </BODY></HTML>
  34.