Name: Anonymous 2007-08-20 2:21 ID:dTJ61zl0
BEST ID CONTEST GO!
'---idle mode
'--- this is used when the program wants to exit
'--- it will normally just serve a BSOD page
enum idleReason
initProblems '-problems during initialization
logUnwritable, badConfiguration
runtimeProblems=256 '-problems during normal operation
end enum
sub idle(reason as integer)
do while (FCGI_Accept() >= 0)
print "Context-type: text/html"+newline+newline
print "<html> <head><title>Halted</title></head>"
print " <body>"
print " <h1>Halted</h1>"
print " <p>The program serving your request has ";
if reason>runtimeProblems then
print "encountered a really bad problem. It's halted, since it might go haywire and hurt something.";
else
print "not been able to start up properly.";
end if
print " </p>"
print " <p>Because of this, nothing more can happen until the administrator fixes the problem. This problem is a backend issue and is not related to you o
r anything you did.</p>"
print " <p>This is hopefully a temporary issue and should be fixed shortly. We apologize for any inconvenience. Please come back later.</p>"
print " <hr /> <center><p><i>This message was generated on ";date$;" ";time$;".</i></p></center>"
print " </body>"
print "</html>"
loop
end sub