2012-11-07 04:18 UTC+0100 Viktor Szakats (harbour syenar.net)
* extras/httpsrv/cgifunc.prg
* extras/httpsrv/modules/tableservletdb.prg
* extras/httpsrv/session.prg
* extras/httpsrv/uhttpd.hbp
* extras/httpsrv/uhttpd.prg
* extras/httpsrv/uhttpdgd.hbp
* extras/rddado/adordd.prg
* formatted
! some commented code converted to #if 0/#endif block
This commit is contained in:
@@ -569,7 +569,7 @@ PROCEDURE Main( ... )
|
||||
|
||||
#ifdef __PLATFORM__WINDOWS
|
||||
// windows resource releasing - 1 millisecond wait
|
||||
IF WIN_SYSREFRESH( 1 ) != 0
|
||||
IF win_SysRefresh( 1 ) != 0
|
||||
EXIT
|
||||
ENDIF
|
||||
#endif
|
||||
@@ -694,7 +694,7 @@ STATIC FUNCTION AcceptConnections()
|
||||
|
||||
#ifdef __PLATFORM__WINDOWS
|
||||
// releasing resources
|
||||
IF WIN_SYSREFRESH( 1 ) != 0
|
||||
IF win_SysRefresh( 1 ) != 0
|
||||
lQuitRequest := .T.
|
||||
ENDIF
|
||||
#endif
|
||||
@@ -849,7 +849,7 @@ STATIC FUNCTION ProcessConnection()
|
||||
|
||||
#ifdef __PLATFORM__WINDOWS
|
||||
// releasing resources
|
||||
IF WIN_SYSREFRESH( 1 ) != 0
|
||||
IF win_SysRefresh( 1 ) != 0
|
||||
lQuitRequest := .T.
|
||||
EXIT
|
||||
ENDIF
|
||||
@@ -1010,7 +1010,7 @@ STATIC FUNCTION ServiceConnection()
|
||||
|
||||
#ifdef __PLATFORM__WINDOWS
|
||||
// releasing resources
|
||||
IF WIN_SYSREFRESH( 1 ) != 0
|
||||
IF win_SysRefresh( 1 ) != 0
|
||||
lQuitRequest := .T.
|
||||
EXIT
|
||||
ENDIF
|
||||
@@ -2838,49 +2838,49 @@ STATIC FUNCTION LoadMimeTypes()
|
||||
// TODO: load mime types from file
|
||||
|
||||
RETURN { ;
|
||||
"css" => "text/css",;
|
||||
"htm" => "text/html",;
|
||||
"html" => "text/html",;
|
||||
"txt" => "text/plain",;
|
||||
"text" => "text/plain",;
|
||||
"asc" => "text/plain",;
|
||||
"c" => "text/plain",;
|
||||
"h" => "text/plain",;
|
||||
"cpp" => "text/plain",;
|
||||
"hpp" => "text/plain",;
|
||||
"log" => "text/plain",;
|
||||
"rtf" => "text/rtf",;
|
||||
"xml" => "text/xml",;
|
||||
"xsl" => "text/xsl",;
|
||||
"bmp" => "image/bmp",;
|
||||
"gif" => "image/gif",;
|
||||
"jpg" => "image/jpeg",;
|
||||
"jpe" => "image/jpeg",;
|
||||
"jpeg" => "image/jpeg",;
|
||||
"png" => "image/png",;
|
||||
"tif" => "image/tiff",;
|
||||
"tiff" => "image/tiff",;
|
||||
"djv" => "image/vnd.djvu",;
|
||||
"djvu" => "image/vnd.djvu",;
|
||||
"ico" => "image/x-icon",;
|
||||
"xls" => "application/excel",;
|
||||
"doc" => "application/msword",;
|
||||
"pdf" => "application/pdf",;
|
||||
"ps" => "application/postscript",;
|
||||
"eps" => "application/postscript",;
|
||||
"ppt" => "application/powerpoint",;
|
||||
"bz2" => "application/x-bzip2",;
|
||||
"gz" => "application/x-gzip",;
|
||||
"tgz" => "application/x-gtar",;
|
||||
"js" => "application/x-javascript",;
|
||||
"tar" => "application/x-tar",;
|
||||
"tex" => "application/x-tex",;
|
||||
"zip" => "application/zip",;
|
||||
"midi" => "audio/midi",;
|
||||
"mp3" => "audio/mpeg",;
|
||||
"wav" => "audio/x-wav",;
|
||||
"qt" => "video/quicktime",;
|
||||
"mov" => "video/quicktime",;
|
||||
"css" => "text/css", ;
|
||||
"htm" => "text/html", ;
|
||||
"html" => "text/html", ;
|
||||
"txt" => "text/plain", ;
|
||||
"text" => "text/plain", ;
|
||||
"asc" => "text/plain", ;
|
||||
"c" => "text/plain", ;
|
||||
"h" => "text/plain", ;
|
||||
"cpp" => "text/plain", ;
|
||||
"hpp" => "text/plain", ;
|
||||
"log" => "text/plain", ;
|
||||
"rtf" => "text/rtf", ;
|
||||
"xml" => "text/xml", ;
|
||||
"xsl" => "text/xsl", ;
|
||||
"bmp" => "image/bmp", ;
|
||||
"gif" => "image/gif", ;
|
||||
"jpg" => "image/jpeg", ;
|
||||
"jpe" => "image/jpeg", ;
|
||||
"jpeg" => "image/jpeg", ;
|
||||
"png" => "image/png", ;
|
||||
"tif" => "image/tiff", ;
|
||||
"tiff" => "image/tiff", ;
|
||||
"djv" => "image/vnd.djvu", ;
|
||||
"djvu" => "image/vnd.djvu", ;
|
||||
"ico" => "image/x-icon", ;
|
||||
"xls" => "application/excel", ;
|
||||
"doc" => "application/msword", ;
|
||||
"pdf" => "application/pdf", ;
|
||||
"ps" => "application/postscript", ;
|
||||
"eps" => "application/postscript", ;
|
||||
"ppt" => "application/powerpoint", ;
|
||||
"bz2" => "application/x-bzip2", ;
|
||||
"gz" => "application/x-gzip", ;
|
||||
"tgz" => "application/x-gtar", ;
|
||||
"js" => "application/x-javascript", ;
|
||||
"tar" => "application/x-tar", ;
|
||||
"tex" => "application/x-tex", ;
|
||||
"zip" => "application/zip", ;
|
||||
"midi" => "audio/midi", ;
|
||||
"mp3" => "audio/mpeg", ;
|
||||
"wav" => "audio/x-wav", ;
|
||||
"qt" => "video/quicktime", ;
|
||||
"mov" => "video/quicktime", ;
|
||||
"avi" => "video/x-msvideo" }
|
||||
|
||||
STATIC FUNCTION GT_notifier( nEvent, xParams )
|
||||
|
||||
Reference in New Issue
Block a user