[ // WINC - Sounds.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 = "CHANNEL " + channel + " " + strextract( channels.getstring( "channels", "" + channel, "" ), "|", 1 ) qstr = "?id=" + id + "&channel=" + channel + "&alias=" + alias ]>