home *** CD-ROM | disk | FTP | other *** search
- <[
- // Personal Web Server - Configuration Update 2
- // (c) 1997 SmartDesk, Inc., All Rights Reserved
-
- _apGenerate( )
-
- websrvr = 0 + param( 1 )
- sessionId = 0 + param( 2 )
-
- session = new( "session", websrvr, sessionId )
- if ( ! session.secure( "Server.Modify" ) )
- return( 0 )
- end
-
- file = webServerConfigFile( websrvr )
- ini = new( "inifile", file )
- if ( type( ini ) != "O" )
- session.error( "Unable to locate the " + file + "data file.", "FFFFFF", "000000" )
- return( 0 )
- end
- ini.SetString( "Config", "Name", session.var( "NAME" ) )
- ini.SetString( "Config", "Port", session.var( "PORT" ) )
- ini.SetString( "Config", "Queue_size", session.var( "QUEUE_SIZE" ) )
- ini.SetString( "Config", "Read_size", session.var( "READ_SIZE" ) )
- ini.SetString( "Config", "Write_size", session.var( "WRITE_SIZE" ) )
- ini.SetString( "Config", "Options", session.var( "OPTIONS" ) )
- // ini.SetString( "Config", "Home", session.var( "HOME" ) )
- // ini.SetString( "Config", "defFile", session.var( "DEFFILE" ) )
-
- apCache( strempty( session.var( "apcache" ) ) ? 0 : 1 )
-
- webTransServer( session.var( "TransServer" ) == "on" ? 1 : 0 )
- webGlobalMonitor( session.var( "GlobalMonitor" ) == "on" ? 1 : 0 )
-
- session.response( "<H2>Server Configuration Updated!</H2><A HREF=\"srvconfg.ap\">Continue...</A>", "FFFFFF", "000000", "00FFFF" )
-
- return( 1 )
- ]>
-