// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2014-2015 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // // BOINC is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . #ifdef _WIN32 #include "boinc_win.h" #include "win_util.h" #else #include #include #include #include #include #include #include #include #endif #include "browserlog.h" #include "mongoose.h" #include "webstatic.h" static const char* index_html = "" "" "" " " " " "" "" "
" " " " " " " " " " " "
" " " " " " " " " " " " " "
Initializing...
" "
" "
" " " "" ""; int handle_static_index_html(struct mg_connection *conn) { mg_send_status(conn, 200); mg_send_header(conn, "Content-Type", "text/html"); mg_send_header(conn, "Cache-Control", "max-age=0, post-check=0, pre-check=0, no-store, no-cache, must-revalidate"); mg_send_header(conn, "Access-Control-Allow-Origin", "*"); mg_printf_data( conn, "%s", index_html ); return MG_TRUE; }