apps/examples/thttpd: Need to use a different Front Page is CONFIG_THTTPD_BINFS=y

This commit is contained in:
Gregory Nutt 2015-06-02 15:19:17 -06:00
parent bd8459d839
commit 980f5a3675
4 changed files with 16 additions and 4 deletions

View File

@ -66,7 +66,11 @@ int main(int argc, char *argv[])
"</head>\r\n"
"<body bgcolor=\"#fffeec\" text=\"black\">\r\n"
"<div class=\"menu\">\r\n"
#ifdef CONFIG_THTTPD_BINFS
"<div class=\"menubox\"><a href=\"/index.cgi\">Front page</a></div>\r\n"
#else
"<div class=\"menubox\"><a href=\"/index.html\">Front page</a></div>\r\n"
#endif
"<div class=\"menubox\"><a href=\"hello\">Say Hello</a></div>\r\n"
"<div class=\"menubox\"><a href=\"tasks\">Tasks</a></div>\r\n"
"<div class=\"menubox\"><a href=\"netstat\">Network status</a></div>\r\n"

View File

@ -121,7 +121,11 @@ int main(int argc, char *argv[])
"</head>\r\n"
"<body bgcolor=\"#fffeec\" text=\"black\">\r\n"
"<div class=\"menu\">\r\n"
#ifdef CONFIG_THTTPD_BINFS
"<div class=\"menubox\"><a href=\"/index.cgi\">Front page</a></div>\r\n"
#else
"<div class=\"menubox\"><a href=\"/index.html\">Front page</a></div>\r\n"
#endif
"<div class=\"menubox\"><a href=\"hello\">Say Hello</a></div>\r\n"
"<div class=\"menubox\"><a href=\"tasks\">Tasks</a></div>\r\n"
"<div class=\"menubox\"><a href=\"netstat\">Network status</a></div>\r\n"

View File

@ -45,7 +45,7 @@
#include <sched.h>
/****************************************************************************
* pre-processor Definitions
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@ -182,7 +182,11 @@ int main(int argc, char *argv[])
"</head>\r\n"
"<body bgcolor=\"#fffeec\" text=\"black\">\r\n"
"<div class=\"menu\">\r\n"
#ifdef CONFIG_THTTPD_BINFS
"<div class=\"menubox\"><a href=\"/index.cgi\">Front page</a></div>\r\n"
#else
"<div class=\"menubox\"><a href=\"/index.html\">Front page</a></div>\r\n"
#endif
"<div class=\"menubox\"><a href=\"hello\">Say Hello</a></div>\r\n"
"<div class=\"menubox\"><a href=\"tasks\">Tasks</a></div>\r\n"
"<div class=\"menubox\"><a href=\"netstat\">Network status</a></div>\r\n"

View File

@ -215,9 +215,9 @@
/* Memory debug instrumentation depends on other debug options */
#if (!defined(CONFIG_DEBUG) || !defined(CONFIG_DEBUG_NET)) && defined(CONFIG_THTTPD_MEMDEBUG)
# undef CONFIG_THTTPD_MEMDEBUG
#endif
# if (!defined(CONFIG_DEBUG) || !defined(CONFIG_DEBUG_NET)) && defined(CONFIG_THTTPD_MEMDEBUG)
# undef CONFIG_THTTPD_MEMDEBUG
# endif
/* Tilde mapping. Many URLs use ~username to indicate a user's home directory. thttpd
* provides two options for mapping this construct to an actual filename.