home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
SRVCONF2.AP_
/
SRVCONF2.AP
Wrap
Text File
|
1998-04-01
|
1KB
|
39 lines
<[
// Personal Web Server - Configuration Update 2
// (c) 1997-98 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.htm\">Continue...</A>", "FFFFFF", "000000", "00FFFF" )
return( 1 )
]>