mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
demo -> index
This commit is contained in:
@@ -93,10 +93,10 @@ static int HttpGetIndexPage(httpd_request_t *req)
|
|||||||
{
|
{
|
||||||
OSStatus err = kNoErr;
|
OSStatus err = kNoErr;
|
||||||
|
|
||||||
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_demo_html), HTTP_CONTENT_HTML_ZIP);
|
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_index_html), HTTP_CONTENT_HTML_ZIP);
|
||||||
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
|
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
|
||||||
|
|
||||||
err = httpd_send_body(req->sock, web_demo_html, sizeof(web_demo_html));
|
err = httpd_send_body(req->sock, web_index_html, sizeof(web_index_html));
|
||||||
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
|
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
@@ -106,10 +106,10 @@ exit:
|
|||||||
static int HttpGetDemoPage(httpd_request_t *req)
|
static int HttpGetDemoPage(httpd_request_t *req)
|
||||||
{
|
{
|
||||||
OSStatus err = kNoErr;
|
OSStatus err = kNoErr;
|
||||||
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_demo_html), HTTP_CONTENT_HTML_ZIP);
|
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_index_html), HTTP_CONTENT_HTML_ZIP);
|
||||||
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
|
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
|
||||||
|
|
||||||
err = httpd_send_body(req->sock, web_demo_html, sizeof(web_demo_html));
|
err = httpd_send_body(req->sock, web_index_html, sizeof(web_index_html));
|
||||||
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
|
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
|
||||||
exit:
|
exit:
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const unsigned char js_pack[0xd2f9] = {
|
const unsigned char js_pack[0xd2f9] = {
|
||||||
0x1f,0x8b,0x08,0x00,0xdc,0xd3,0x57,0x5e,0x02,0xff,0xd4,0xbd,0xfb,0x92,0xdb,0x36,
|
0x1f,0x8b,0x08,0x00,0x98,0xa2,0x64,0x5e,0x02,0xff,0xd4,0xbd,0xfb,0x92,0xdb,0x36,
|
||||||
0xd2,0x38,0xfa,0xff,0x56,0xed,0x3b,0x8c,0xb8,0x59,0x85,0x1c,0x41,0x1a,0x69,0x1c,
|
0xd2,0x38,0xfa,0xff,0x56,0xed,0x3b,0x8c,0xb8,0x59,0x85,0x1c,0x41,0x1a,0x69,0x1c,
|
||||||
0x3b,0x31,0x65,0x8c,0xca,0xb1,0x9d,0x8d,0xf7,0x8b,0x93,0x6c,0x9c,0xcb,0x66,0x35,
|
0x3b,0x31,0x65,0x8c,0xca,0xb1,0x9d,0x8d,0xf7,0x8b,0x93,0x6c,0x9c,0xcb,0x66,0x35,
|
||||||
0x4a,0x8a,0x57,0x89,0x1a,0x49,0xd4,0xe8,0xe2,0x19,0x65,0xa4,0x7d,0x9f,0xdf,0x6b,
|
0x4a,0x8a,0x57,0x89,0x1a,0x49,0xd4,0xe8,0xe2,0x19,0x65,0xa4,0x7d,0x9f,0xdf,0x6b,
|
||||||
@@ -3376,7 +3376,7 @@ const unsigned char js_pack[0xd2f9] = {
|
|||||||
0xbf,0x4c,0x3e,0x46,0xd2,0xfd,0x34,0x78,0x48,0x96,0xc1,0x2f,0xe4,0xf2,0x79,0xfc,
|
0xbf,0x4c,0x3e,0x46,0xd2,0xfd,0x34,0x78,0x48,0x96,0xc1,0x2f,0xe4,0xf2,0x79,0xfc,
|
||||||
0x0f,0x08,0xad,0x74,0xc2,0xee,0xee,0x02,0x00};
|
0x0f,0x08,0xad,0x74,0xc2,0xee,0xee,0x02,0x00};
|
||||||
const unsigned char css_pack[0x619e] = {
|
const unsigned char css_pack[0x619e] = {
|
||||||
0x1f,0x8b,0x08,0x00,0xdc,0xd3,0x57,0x5e,0x02,0xff,0xed,0xbd,0x79,0x73,0xdb,0xc8,
|
0x1f,0x8b,0x08,0x00,0x98,0xa2,0x64,0x5e,0x02,0xff,0xed,0xbd,0x79,0x73,0xdb,0xc8,
|
||||||
0xf5,0x28,0xfa,0x7f,0xaa,0xf2,0x1d,0x70,0x9d,0x9a,0x1a,0x6b,0x42,0xc8,0xd8,0x49,
|
0xf5,0x28,0xfa,0x7f,0xaa,0xf2,0x1d,0x70,0x9d,0x9a,0x1a,0x6b,0x42,0xc8,0xd8,0x49,
|
||||||
0x4a,0x95,0x54,0xbc,0x8f,0x26,0x96,0x9c,0x78,0x19,0x8f,0x9d,0x5f,0x9e,0x0b,0x04,
|
0x4a,0x95,0x54,0xbc,0x8f,0x26,0x96,0x9c,0x78,0x19,0x8f,0x9d,0x5f,0x9e,0x0b,0x04,
|
||||||
0x9a,0x24,0x24,0x90,0x60,0x00,0x50,0x1b,0x4b,0xb7,0xee,0x07,0xb9,0xef,0xcb,0xbd,
|
0x9a,0x24,0x24,0x90,0x60,0x00,0x50,0x1b,0x4b,0xb7,0xee,0x07,0xb9,0xef,0xcb,0xbd,
|
||||||
@@ -4938,8 +4938,8 @@ const unsigned char css_pack[0x619e] = {
|
|||||||
0xd5,0x0c,0x4f,0x91,0x6e,0x84,0x03,0xe5,0xec,0x72,0x46,0x37,0xd4,0xda,0x17,0x95,
|
0xd5,0x0c,0x4f,0x91,0x6e,0x84,0x03,0xe5,0xec,0x72,0x46,0x37,0xd4,0xda,0x17,0x95,
|
||||||
0x45,0x1b,0xdf,0x14,0xc5,0x31,0xb4,0xca,0xe1,0x68,0x6c,0x8c,0x03,0x4a,0xf5,0xd5,
|
0x45,0x1b,0xdf,0x14,0xc5,0x31,0xb4,0xca,0xe1,0x68,0x6c,0x8c,0x03,0x4a,0xf5,0xd5,
|
||||||
0x24,0x5f,0x2d,0xc1,0xff,0x0f,0x70,0xaf,0x7e,0x76,0x64,0xba,0x02,0x00};
|
0x24,0x5f,0x2d,0xc1,0xff,0x0f,0x70,0xaf,0x7e,0x76,0x64,0xba,0x02,0x00};
|
||||||
const unsigned char web_demo_html[0x2477] = {
|
const unsigned char web_index_html[0x2477] = {
|
||||||
0x1f,0x8b,0x08,0x00,0xdc,0xd3,0x57,0x5e,0x02,0xff,0xed,0x7d,0x6b,0x8f,0xe3,0x46,
|
0x1f,0x8b,0x08,0x00,0x99,0xa2,0x64,0x5e,0x02,0xff,0xed,0x7d,0x6b,0x8f,0xe3,0x46,
|
||||||
0x76,0xe8,0xf7,0x00,0xf9,0x0f,0x65,0x7a,0x91,0x56,0xdf,0x11,0x29,0xbe,0x25,0xf5,
|
0x76,0xe8,0xf7,0x00,0xf9,0x0f,0x65,0x7a,0x91,0x56,0xdf,0x11,0x29,0xbe,0x25,0xf5,
|
||||||
0x74,0x77,0xee,0x6c,0xcf,0xac,0xc7,0xd9,0x1e,0xcf,0xac,0x7b,0x76,0xf2,0xb0,0x0d,
|
0x74,0x77,0xee,0x6c,0xcf,0xac,0xc7,0xd9,0x1e,0xcf,0xac,0x7b,0x76,0xf2,0xb0,0x0d,
|
||||||
0x81,0x2d,0x51,0x12,0x67,0x28,0x51,0x26,0xa9,0x7e,0x8c,0x33,0x40,0xee,0x97,0xc5,
|
0x81,0x2d,0x51,0x12,0x67,0x28,0x51,0x26,0xa9,0x7e,0x8c,0x33,0x40,0xee,0x97,0xc5,
|
||||||
|
|||||||
Reference in New Issue
Block a user