home *** CD-ROM | disk | FTP | other *** search
- <[
- // WINC - Comments.ap
- // (c) 1997-98 SmartDesk, Inc., All Rights Reserved
-
- _apGenerate( )
-
- websrvr = 0 + param( 1 )
- sessionId = 0 + param( 2 )
-
- session = new( "session", websrvr, sessionId )
-
- channel = 0 + session.var( "channel" )
- if ( channel < 1 )
- channel = 1
- end
-
- alias = session.var( "alias" )
-
- id = session.var( "id" )
- if ( strempty( id ) || strempty( alias ) )
- session._redir( "One Moment Please...", "sdchat.htm?channel=" + channel )
- return( 0 )
- end
-
- channels = new( "iniFile", fileFixPath( webServerHome( websrvr ) + "\\chat\\channels.dat" ) )
- if ( type( channels ) != "O" )
- session.error( "Unable to locate CHANNELS data file.", "FFFFFF", "000000" )
- return( 0 )
- end
-
- file = fileFixPath( webServerHome( websrvr ) + "\\chat\\chan" + channel + ".cfg" )
- if ( ! fileExists( file ) )
- session.error( "Unable to locate CHANNEL data file.", "FFFFFF", "000000" )
- return( 0 )
- end
-
- channelData = new( "iniFile", file )
- if ( type( channelData ) != "O" )
- session.error( "Unable to locate CHANNEL CONFIG data file.", "FFFFFF", "000000" )
- return( 0 )
- end
-
- channelTitle = "<FONT COLOR=\"#FFFF00\">CHANNEL " + channel + "</FONT> " + strextract( channels.getstring( "channels", "" + channel, "" ), "|", 1 )
-
- qstr = "?id=" + id + "&channel=" + channel + "&alias=" + alias
-
- ]>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
- <!-- SmartDesk Active Page, www.smartdesk.com -->
- <HTML>
- <HEAD>
- <TITLE>WINC Chat</TITLE>
- </HEAD>
- <BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#00FFFF" VLINK="#00FFFF" ALINK="#00FFFF">
- <FONT SIZE=1>
- <FORM ACTION="chatcmd.htm" METHOD="GET" TARGET="winc_bottom">
-
- <TABLE BORDER=0 WIDTH=600>
- <TR>
- <TD WIDTH=100 VALIGN="top">
- <A HREF="chatcmd.htm<[ ! qstr ]>&cmd=logoff" TARGET="_top"><IMG SRC="chathdr.jpg" WIDTH=100 HEIGHT=75 BORDER=0></A><BR>
- </TD>
- <TD WIDTH=500 VALIGN="top">
-
- <INPUT TYPE="hidden" NAME="channel" VALUE="<[ ! channel ]>">
- <INPUT TYPE="hidden" NAME="cmd" VALUE="comment">
- <INPUT TYPE="hidden" NAME="id" VALUE="<[ ! id ]>">
- <INPUT TYPE="hidden" NAME="alias" VALUE="<[ ! alias ]>">
-
- <B><[ ! channelTitle ]> - Comments</B><BR>
- <SELECT NAME="comment">
- <OPTION SELECTED> ---------- Comments ----------
- <[
- data = channelData.getItems( "Comments" )
- cnt = chrcount( ";", data ) + 1
- for ( i=1; i<=cnt; i++ )
- item = strextract( data, ";", i )
- if ( strempty( item ) )
- continue
- end
- ! "<OPTION> " + channelData.getString( "Comments", item )
- end
- ]>
- </SELECT>
- <SELECT NAME="action">
- <OPTION SELECTED> ---- Action ----
- <[
- data = channelData.getItems( "Actions" )
- cnt = chrcount( ";", data ) + 1
- for ( i=1; i<=cnt; i++ )
- item = strextract( data, ";", i )
- if ( strempty( item ) )
- continue
- end
- ! "<OPTION> " + channelData.getString( "Actions", item )
- end
- ]>
- </SELECT>
- <SELECT NAME="icon">
- <OPTION SELECTED> - Emoticon -
- <[
- data = channelData.getItems( "Emoticons" )
- cnt = chrcount( ";", data ) + 1
- for ( i=1; i<=cnt; i++ )
- item = strextract( data, ";", i )
- if ( strempty( item ) )
- continue
- end
- ! "<OPTION> " + channelData.getString( "Emoticons", item )
- end
- ]>
- </SELECT>
- <INPUT TYPE="Submit" VALUE=" Send " ><BR>
-
- <CENTER>
- <FONT SIZE=2>
- <B>
- <A HREF="chat1.htm<[ ! qstr ]>" TARGET="winc_top">Chat</A> |
- <A HREF="users.htm<[ ! qstr ]>" TARGET="winc_bottom">Users</A> |
- <A HREF="links.htm<[ ! qstr ]>" TARGET="winc_top">Links</A> |
- <A HREF="images.htm<[ ! qstr ]>" TARGET="winc_top">Images</A> |
- <A HREF="sounds.htm<[ ! qstr ]>" TARGET="winc_top">Sounds</A> |
- <A HREF="sdchat.htm<[ ! qstr ]>&cmd=Preferences" TARGET="_top">Preferences</A> |
- <A HREF="trans.htm<[ ! qstr ]>" TARGET="winc_top">Transcript</A> |
- <A HREF="chatcmd.htm<[ ! qstr ]>&cmd=logoff" TARGET="_top">Logoff</A>
- </B>
- </FONT>
- </CENTER>
- </TD>
- </TR>
- </TABLE>
-
- </FORM>
- </FONT>
- </BODY>
- </HTML>
-