📄 http_fs.c
字号:
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics Europe GmbH */
/*---------------------------------------------------------------------------
HTTP_FS.H
/*---------------------------------------------------------------------------*/
#include "../inet/http/http_fs.h"
// http-fs Filesystem
/** \brief File not found message
*
* Message that will be displayed if a file with appropriate name (hash
* value) was not found.
*/
/* File: error.html
* Desc: The complete FME Main Page.
*/
const char https_not_found_page[] = "HTTP/1.0 200 OK\r\n
Last-modified: Fri, 18 Oct 2002 12:04:32 GMT\r\n
Server: ESERV-10/1.0\nContent-type: text/html\r\n
Content-length: 10000\r\n
\r\n
<html>\n
<head>\n
<title>Error, File not found!</title>\n
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n
</head>\n
<body bgcolor=\"#ffffff\" text=\"black\">\n
<div align=\"center\">\n
<div class=\"logo\">\n
<img src=\"logo.gif\" width=\"301\" height=\"50\">\n
</div>\n
<div class=\"menu\">\n
<div class=\"menubox\"><a href=\"/\">Front page</a></div>\n
<div class=\"menubox\"><a href=\"mcustatus.html\">MCU status</a></div>\n
<div class=\"menubox\"><a href=\"files.html\">File statistics</a></div>\n
<div class=\"menubox\"><a href=\"stats.html\">Network statistics</a></div>\n
<br>\n
</div>\n
<div class=\"contentblock\">\n
<p>\n
<H2>404 Error. File Not Found</H2>\n
The requested URL was not found on this server.\n
<HR>\n
<BR>\n
<I>\n
Fujitsu Systems Embedded WEB Server 2.0, 2002\n
<BR>\n
Web Server for Embedded Applications\n
<BR>\n
Running on MB96F348HS\n
</I>\n
<BR>\n
<A HREF=http://mcu.emea.fujitsu.com/>
mcu.emea.fujitsu.com - Embedding The Internet</A>\n
</p>\n
</div>\n
</body></html>";
/*
* File: no file
* Desc: template for mcustatus page
*/
const char mcustatstabletemp[] = {"<BR><h2>Port Status</h2>\n<BR><table width=\"100%\"><tr><th>Pin #</th><th>Port 0</th><th>Port 1</th><th>Port 2</th><th>Port 3</th><th>Port 4</th><th>Port 5</th><th>Port 6</th><th>Port 7</th><th>Port 8</th><th>Port 9</th></tr>"};
const char mcustatstemplate1[] = {"<tr><th>%u</th><th bgcolor='%s'><a href=\"mcustatus.html?LED=0%u\">%s</a></th>\n<th bgcolor='%s'><a href=\"mcustatus.html?LED=1%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=2%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=3%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=4%u\">%s</a>\n"};
const char mcustatstemplate2[] = {"</th><th bgcolor='%s'><a href=\"mcustatus.html?LED=5%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=6%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=7%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=8%u\">%s</a></th><th bgcolor='%s'><a href=\"mcustatus.html?LED=9%u\">%s</a></th></tr>\r\n"};
/*
* File: no file
* Desc: descriptor for sprintf
*/
const char tablestart[] = "<table border=\"0\">\n";
const char tablestop[] = "</table><BR>\n";
/* File: no file
* Desc: The header to transmit html Pages.
*/
const char https_startsession[] = "HTTP/1.0 200 OK\r\n
Last-modified: Fri, 18 Oct 2008 12:04:32 GMT\r\n
Server: ESERV-10/1.0\nContent-type: text/html\r\n
Content-length: 33000\r\n\r\n";
/* File: main.html
* Desc: The complete FME Main Page.
*/
const char https_main_html[] = "HTTP/1.0 200 OK\r\n
Last-modified: Fri, 18 Oct 2002 12:04:32 GMT\r\n
Server: ESERV-10/1.0\nContent-type: text/html\r\n
Content-length: 10000\r\n
\r\n
<html>\n
<head>\n
<title>Welcome to the OpenTCP web server!</title>\n
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n
</head>\n
<body bgcolor=\"#ffffff\" text=\"black\">\n
<div align=\"center\">\n
<div class=\"logo\">\n
<img src=\"logo.gif\" width=\"301\" height=\"50\">\n
</div>\n
<div class=\"menu\">\n
<div class=\"menubox\"><a href=\"/\">Front page</a></div>\n
<div class=\"menubox\"><a href=\"mcustatus.html\">MCU status</a></div>\n
<div class=\"menubox\"><a href=\"files.html\">File statistics</a></div>\n
<div class=\"menubox\"><a href=\"stats.html\">Network statistics</a></div>\n
<br>\n
</div>\n
<div class=\"contentblock\">\n
<p>\n
<H2>Congratulations!</H2>\n
<BR>\n
You are running the OpenTCP Stack on the MB96F348HS.\n
</p>\n
<p>\n
Click on the links above for web server statistics.\n
</p>\n
</div>\n
</body></html>";
/* File: header.html
* Desc: The Fujitsu Header to build your own dynamic docs at runtime.
*/
const char https_header_html[] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n
<html>\n
<head>\n
<title>Welcome to the OpenTCP web server!</title>\n
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n
</head>\n
<body bgcolor=\"#ffffff\" text=\"black\">\n
<div align=\"center\">\n
<div class=\"logo\">\n
<img src=\"logo.gif\" width=\"301\" height=\"50\">\n
</div>\n
<div class=\"menu\">\n
<div class=\"menubox\"><a href=\"/\">Front page</a></div>\n
<div class=\"menubox\"><a href=\"mcustatus.html\">MCU status</a></div>\n
<div class=\"menubox\"><a href=\"files.html\">File statistics</a></div>\n
<div class=\"menubox\"><a href=\"stats.html\">Network statistics</a></div>\n
<br>\n
</div>\n
<div class=\"contentblock\">";
/* File: footer.html
* Desc: the footer of the FME website
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -