2009-01-27 10:14 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)

* harbour/contrib/examples/uhttpd/uhttpd.prg
    * Fixed APP_NAME that causes wrong ini file name and than error 
      loading aliases from uhttpd.ini
This commit is contained in:
Francesco Saverio Giudice
2009-01-27 09:15:49 +00:00
parent 5e5fd08863
commit da65eb8526
2 changed files with 11 additions and 2 deletions

View File

@@ -8,6 +8,11 @@
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2009-01-27 10:14 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
* Fixed APP_NAME that causes wrong ini file name and than error
loading aliases from uhttpd.ini
2009-01-27 09:38 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbssl/sslctx.c
* contrib/hbssl/ssl.c

View File

@@ -102,8 +102,8 @@
#define APP_INET_SUPPORT ""
#endif
#define APP_NAME "uhttpd_inet"
#define APP_VER_NUM "0.3"
#define APP_NAME "uhttpd"
#define APP_VER_NUM "0.4"
#define APP_VERSION APP_VER_NUM + APP_GD_SUPPORT + APP_INET_SUPPORT
#define AF_INET 2
@@ -269,6 +269,8 @@ LOCAL cCmdPort, cCmdDocumentRoot, lCmdIndexes, nCmdStartThreads, nCmdMaxThreads
// ----------------- Parse ini file ----------------------------------------
//hb_toOutDebug( "cConfig = %s\n\r", cConfig )
hDefault := ParseIni( cConfig )
// ------------------- Parameters changeable from ini file ----------------
@@ -1518,6 +1520,8 @@ LOCAL cExt, xResult, pHRB, oError
cFileName := _SERVER[ "DOCUMENT_ROOT" ] + hb_hGet( s_hFileAliases, _SERVER[ "SCRIPT_NAME" ] )
ENDIF
//hb_toOutDebug( "cFileName = %s, uOSFileName( cFileName ) = %s,\n\r s_hFileAliases = %s\n\r", cFileName, uOSFileName( cFileName ), hb_ValToExp( s_hFileAliases ) )
IF Upper( _SERVER[ "SCRIPT_NAME" ] ) == "/SERVERSTATUS"
ShowServerStatus()
ELSEIF HB_FileExists( uOSFileName( cFileName ) )