diff --git a/source/lv2/httpd/httpd_html.h b/source/lv2/httpd/httpd_html.h index a8ff6b1..3502633 100644 --- a/source/lv2/httpd/httpd_html.h +++ b/source/lv2/httpd/httpd_html.h @@ -9,7 +9,9 @@ char *INDEX_HTML[] = { "", @@ -211,12 +215,11 @@ char *INDEX_HTML[] = { "
", "
", "", - "www.free60.org
", - "www.libxenon.org
", - "www.xboxhacker.net
", - "www.logic-sunrise.com
", - "www.xbox-scene.com
", - "www.homebrew-connection.org
", + "Free60 Wiki
", + "Free60 GitHub
", + "Libxenon Homebrew GitHub
", + "ConsoleMods.org Xbox 360 Wiki
", + "Libxenon Forum Archive
", "
", "
", "
", diff --git a/source/lv2/httpd/httpd_index.c b/source/lv2/httpd/httpd_index.c index a3d3755..3b16074 100644 --- a/source/lv2/httpd/httpd_index.c +++ b/source/lv2/httpd/httpd_index.c @@ -19,6 +19,8 @@ #include "httpd.h" #include "httpd_index.h" +#include + unsigned char cpukey[0x10]; unsigned char dvdkey[0x10]; @@ -118,6 +120,18 @@ int response_index_do_data(struct http_state *http) else if(strcmp((char *) INDEX_HTML[i], "DVD_KEY")==0){ sprintf(buffer, "%016llX%016llX",ld(&dvdkey[0x0]),ld(&dvdkey[0x8])); } + else if(strcmp((char *) INDEX_HTML[i], "BGCOLOR")==0){ + sprintf(buffer, "#%02X%02X%02X", + (console_color[0] >> 8) & 0xFF, // R + (console_color[0] >> 16) & 0xFF, // G + (console_color[0] >> 24) & 0xFF); // B + } + else if(strcmp((char *) INDEX_HTML[i], "FGCOLOR")==0){ + sprintf(buffer, "#%02X%02X%02X", + (console_color[1] >> 8) & 0xFF, // R + (console_color[1] >> 16) & 0xFF, // G + (console_color[1] >> 24) & 0xFF); // B + } else{ sprintf(buffer,"%s",INDEX_HTML[i]); }