home *** CD-ROM | disk | FTP | other *** search
- <[
- // WINC - Sounds.ap
- // (c) 1997 SmartDesk, Inc., All Rights Reserved
-
- _apGenerate( )
-
- websrvr = 0 + param( 1 )
- sessionId = 0 + param( 2 )
-
- session = new( "session", websrvr, sessionId )
-
- name = session.data( "winc_name" )
- alias = session.data( "winc_alias" )
- email_addr = session.data( "winc_email_addr" )
- pword = session.data( "winc_pword" )
- if ( strempty( name ) || strempty( alias ) || strempty( email_addr ) || strempty( pword ) )
- session.redir( "One Moment Please...", "logon.ap" )
- return( 0 )
- end
-
- channel = session.data( "winc_channel" )
- 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 )
-
- ]>
- <!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.ap" METHOD="GET" TARGET="winc_bottom">
-
- <TABLE BORDER=0 WIDTH=600>
- <TR>
- <TD WIDTH=100 VALIGN="top">
- <A HREF="index.ap"><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="sound">
-
- <B><[ ! channelTitle ]> - Sounds</B><BR>
- <SELECT NAME="sound">
- <OPTION SELECTED> --------- Select a sound to attach to the current discussion ---------
- <[
- data = channelData.getItems( "Sounds" )
- cnt = chrcount( ";", data ) + 1
- for ( i=1; i<=cnt; i++ )
- item = strextract( data, ";", i )
- if ( strempty( item ) )
- continue
- end
- line = channelData.getString( "Sounds", item )
- ! "<OPTION> " + strextract( line, "|", 1 )
- end
- ]>
- </SELECT>
- <INPUT TYPE="Submit" VALUE=" Send " ><BR>
-
- <CENTER>
- <FONT SIZE=2>
- <B>
- <A HREF="chat1.ap" TARGET="winc_top">Chat</A> |
- <A HREF="comments.ap" TARGET="winc_top">Comments</A> |
- <A HREF="users.ap" TARGET="winc_bottom">Users</A> |
- <A HREF="links.ap" TARGET="winc_top">Links</A> |
- <A HREF="images.ap" TARGET="winc_top">Images</A> |
- <A HREF="prefer.ap" TARGET="winc_top">Preferences</A> |
- <A HREF="trans.ap" TARGET="winc_top">Transcript</A> |
- <A HREF="chatcmd.ap?cmd=logoff" TARGET="_top">Leave</A>
- </B>
- </FONT>
- </CENTER>
-
- </TD>
- </TR>
- </TABLE>
- </FORM>
- </FONT>
- </BODY>
- </HTML>
-