home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD><TITLE>Sambar Server Network Control Panel</TITLE>
- <%
- #include "../header.asp"
- #include "../menu.asp"
- area = "ping";
- #include "submenu.asp"
- %>
- <BR>
- <BLOCKQUOTE><BLOCKQUOTE>
- <FORM method=get action=ping.asp>
- <INPUT NAME=host VALUE="<%=getParameter($params, "host"); %>">
- <INPUT TYPE=submit VALUE="Ping Host">
- </FORM>
- <BR>
- <%
- host = getParameter($params, "host");
- if (host != NULL)
- {
- msec = ping(host);
- if (msec == -1)
- {
- printf("Ping <I>%s</I> failed.", host);
- }
- else
- {
- printf("<B>Ping <I>%s</I> responded in %d msec</B>\n",
- host, msec);
- }
- }
-
- %>
- </BLOCKQUOTE></BLOCKQUOTE>
- <%
- #include "../footer.asp"
- %>
- </BODY></HTML>
-