home *** CD-ROM | disk | FTP | other *** search
/ WinFiles.com 1998 June / WF0698_3.ISO / servers-websrv / websuite.exe / SERVER.AP_ / SERVER.AP
Text File  |  1998-04-01  |  4KB  |  155 lines

  1. <[
  2. // Personal Web Server - Server Information
  3. // (c) 1997-98 SmartDesk, Inc., All Rights Reserved
  4.  
  5. websrvr = 0 + param( 1 )
  6. sessionId = 0 + param( 2 )
  7.  
  8. session = new( "session", websrvr, sessionId )
  9. stats = webServerStats( websrvr )
  10.  
  11. ]>
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  13. <!5thGEN Active Pages, by www.smartdesk.com>
  14. <HTML>
  15. <TITLE>Personal Web Server Details</TITLE>
  16. <BODY BGCOLOR="#000000" LINK="#FFFFFF" VLINK="#FFFFFF" TEXT="#FFFFFF">
  17.  
  18. <TABLE BORDER=0 WIDTH=600>
  19.  <TR>
  20.   <TD VALIGN="top" WIDTH=120>
  21.    <CENTER>
  22.    <A HREF="/index.htm"><IMG SRC="/image/earth.gif" WIDTH=80 HEIGHT=80 BORDER=0></A><BR>
  23.    <FONT COLOR="#FFFFFF" SIZE=1><FONT COLOR="#00FFFF">©Copyright 1997-98</FONT><BR>by SmartDesk, Inc.<BR>All Rights Reserved<BR></FONT>
  24.    </CENTER>
  25.  
  26.   </TD>
  27.   <TD WIDTH=10>
  28.   </TD>
  29.   <TD WIDTH=465>
  30.  
  31.    <CENTER>
  32.    <P><FONT SIZE=5 COLOR="00FFFF"><B><[ ! session.data( "SERVER_SOFTWARE" ) ]></B></FONT><BR>
  33.    <FONT SIZE=2>
  34.    <A HREF="srvstats.htm">Statistics</A> |
  35.    <A HREF="srvconfg.htm">Configuration</A> |
  36.    <A HREF="loglist.htm">Server Log</A> |
  37.    <A HREF="/index.htm">Home</A></P>
  38.    </FONT>
  39.    </P></CENTER>
  40.  
  41.    <P><BR></P>
  42.  
  43.    <P><FONT SIZE=4 COLOR="00FFFF"><B>Server Details</B></FONT><BR></P>
  44.    <TABLE BORDER=3 WIDTH=460>
  45.     <TR VALIGN="top" ALIGN="left">
  46.      <TD>Server Name</TD>
  47.      <TD><[ ! session.data( "SERVER_NAME" ) ]> </TD>
  48.     </TR>
  49.     <TR>
  50.      <TD>Server Protocol</TD>
  51.      <TD><[ ! session.data( "SERVER_PROTOCOL" ) ]> </TD>
  52.     </TR>
  53.     <TR>
  54.         <TD>Server Port</TD>
  55.        <TD><[ ! session.data( "SERVER_PORT" ) ]> </TD>
  56.     </TR>
  57.     <TR>
  58.        <TD>Server Date</TD>
  59.        <TD><[ ! cdow( jdate( ) ) + " " + date( "MMMM DDDD, YYYY" ) ]> </TD>
  60.     </TR>
  61.     <TR>
  62.        <TD>Server Time</TD>
  63.        <TD><[ ! timetostr( time( ), 0 ) + "m" ]> </TD>
  64.     </TR>
  65.     <TR>
  66.        <TD>Document Root</TD>
  67.        <TD><[ ! session.data( "DOCUMENT_ROOT" ) ]> </TD>
  68.     </TR>
  69.     <TR>
  70.        <TD>Free Space</TD>
  71.        <TD><[ ! strcommas( "" + int( ( drivefree( session.data( "DOCUMENT_ROOT" ) ) / 1000000 ) ) ) + " Megabytes" ]> </TD>
  72.     </TR>
  73.     <TR>
  74.        <TD>Default Document</TD>
  75.        <TD><[ ! webServerDefFile( websrvr ) ]> </TD>
  76.     </TR>
  77.     <TR>
  78.        <TD>Virtual Name Server</TD>
  79.        <TD>
  80.        <[
  81.            data = vnsServer( websrvr )
  82.            if ( strempty( data ) )
  83.                ! lower( filefixpath( webServerHome( websrvr ) + "\\vns\\dirlist.ap" ) )
  84.            else
  85.                ! lower( data )
  86.            end           
  87.        ]> 
  88.        </TD>
  89.     </TR>
  90.     <TR>
  91.        <TD>Configuration File</TD>
  92.        <TD><[ ! lower( webServerConfigFile( websrvr ) ) ]> </TD>
  93.     </TR>
  94.    </TABLE>
  95.  
  96.    <P><BR></P>
  97.    <P><FONT SIZE=4 COLOR="00FFFF"><B>Session Details</B></FONT><BR></P>
  98.    <TABLE BORDER=2 WIDTH=460>
  99.     <TR VALIGN="top" ALIGN="left">
  100.        <TD>Session Id</TD>
  101.         <TD><[ ! "0x" + dec2hex( sessionId ) ]> </TD>
  102.     </TR>
  103.     <TR>
  104.        <TD>User Agent</TD>
  105.         <TD><[ ! session.data( "HTTP_USER_AGENT" ) ]> </TD>
  106.     </TR>
  107.     <TR>
  108.        <TD>Client Host</TD>
  109.         <TD><[ ! session.data( "CLIENT_HOST" ) ]> </TD>
  110.     </TR>
  111.     <TR>
  112.     <TR>
  113.       <TD>Remote Address</TD>
  114.        <TD><[ ! session.data( "REMOTE_ADDR" ) ]> </TD>
  115.     </TR>
  116.     <TR>
  117.        <TD>Request Method</TD>
  118.        <TD><[ ! session.data( "REQUEST_METHOD" ) ]> </TD>
  119.     </TR>
  120.     <TR>
  121.        <TD>Path Info</TD>
  122.        <TD><[ ! session.data( "PATH_INFO" ) ]> </TD>
  123.     </TR>
  124.     <TR>
  125.        <TD>Path Translated</TD>
  126.        <TD><[ ! session.data( "PATH_TRANSLATED" ) ]> </TD>
  127.     </TR>
  128.     <TR>
  129.        <TD>Query String</TD>
  130.        <TD><[ ! session.data( "QUERY_STRING" ) ]> </TD>
  131.     </TR>
  132.     <TR>
  133.        <TD>Browser Accept</TD>
  134.        <TD><[ ! session.data( "HTTP_ACCEPT" ) ]> </TD>
  135.     </TR>
  136.     <TR>
  137.        <TD>Browser Session-Id</TD>
  138.        <TD><[ ! session.data( "SESSION-ID" ) ]> </TD>
  139.     </TR>
  140.     <TR>
  141.        <TD>Content-Id</TD>
  142.        <TD><[ ! session.data( "CONTENT-ID" ) ]> </TD>
  143.     </TR>
  144.    </TABLE>
  145.  
  146.    <P><CENTER><FONT SIZE=2><A HREF="http://www.smartdesk.com/websuite.html">Tell me more about the SmartDesk Personal Web Server</A></FONT></CENTER></P>
  147.  
  148.   </TD>
  149.  </TR>
  150. </TABLE>
  151. <br><br><br><br>
  152.  
  153. <[! webFooter( )]>
  154.  
  155.