|
MIDAS
|
#include <stdio.h>#include <math.h>#include <assert.h>#include <algorithm>#include <thread>#include <deque>#include <mutex>#include <condition_variable>#include <atomic>#include "midas.h"#include "msystem.h"#include "mxml.h"#include "odbxx.h"#include "mstrlcpy.h"#include "mgd.h"#include "history.h"#include "mjsonrpc.h"#include "mvodb.h"
Go to the source code of this file.
Classes | |
| class | Attachment |
| struct | MimetypeTableEntry |
| class | RequestTrace |
| class | RequestTraceBuf |
| class | Return |
| class | Param |
| struct | search_data |
| struct | CGIF_LABEL |
| struct | CGIF_BAR |
| struct | HistoryData |
| struct | HistVar |
| struct | HistPlot |
| struct | Cookies |
| struct | AuthEntry |
| class | Auth |
Macros | |
| #define | DEFAULT_REFRESH 60 |
| #define | OBSOLETE 1 |
| #define | MAX_GROUPS 32 |
| #define | MAX_VARS 100 |
| #define | HTTP_ENCODING "UTF-8" |
| #define | WEB_BUFFER_SIZE (6*1024*1024) |
| #define | MAX_PARAM 500 |
| #define | PARAM_LENGTH 256 |
| #define | TEXT_SIZE 50000 |
| #define | LN10 2.302585094 |
| #define | LOG2 0.301029996 |
| #define | LOG5 0.698970005 |
| #define | ALLOC(t, n) (t*)calloc(sizeof(t),(n)) |
| #define | DELETE(x) if (x) { free(x); (x)=NULL; } |
| #define | DELETEA(x, n) if (x) { for (int i=0; i<(n); i++) { free((x)[i]); (x)[i]=NULL; }; DELETE(x); } |
| #define | STRDUP(x) strdup(x) |
| #define | READ_HISTORY_DATA 0x1 |
| #define | READ_HISTORY_RUNMARKER 0x2 |
| #define | READ_HISTORY_LAST_WRITTEN 0x4 |
| #define | RESPONSE_SENT 1 |
| #define | RESPONSE_QUEUED 2 |
| #define | RESPONSE_501 3 |
Functions | |
| static std::string | toString (int i) |
| static std::string | GetMimetype (const std::string &ext) |
| static void | SaveMimetypes (MVOdb *odb) |
| void | show_hist_page (MVOdb *odb, Param *p, Return *r, const char *dec_path, char *buffer, int *buffer_size, int refresh) |
| int | vaxis (gdImagePtr im, gdFont *font, int col, int gcol, int x1, int y1, int width, int minor, int major, int text, int label, int grid, double ymin, double ymax, BOOL logaxis) |
| void | haxis (gdImagePtr im, gdFont *font, int col, int gcol, int x1, int y1, int width, int minor, int major, int text, int label, int grid, double xmin, double xmax) |
| void | get_elog_url (char *url, int len) |
| void | show_header (Return *r, const char *title, const char *method, const char *path, int refresh) |
| void | show_navigation_bar (Return *r, const char *cur_page) |
| char * | stristr (const char *str, const char *pattern) |
| static double | GetTimeSec () |
| const char * | mhttpd_revision (void) |
| static std::string | UrlDecode (const char *p) |
| static void | urlDecode (char *p) |
| static void | urlEncode (char *ps, int ps_size) |
| static std::string | urlEncode (const char *text) |
| std::vector< std::string > | get_resource_paths () |
| bool | open_resource_file (const char *filename, std::string *ppath, FILE **pfp) |
| std::string | get_content_type (const char *filename) |
| bool | send_fp (Return *r, const std::string &path, FILE *fp) |
| bool | send_file (Return *r, const std::string &path, bool generate_404=true) |
| bool | send_resource (Return *r, const std::string &name, bool generate_404=true) |
| INT | sendmail (const char *from_host, const char *smtp_host, const char *from, const char *to, const char *subject, const char *text) |
| void | redirect (Return *r, const char *path) |
| void | redirect_307 (Return *r, const char *path) |
| void | redirect2 (Return *r, const char *path) |
| INT | search_callback (HNDLE hDB, HNDLE hKey, KEY *key, INT level, void *info) |
| void | show_help_page (Return *r, const char *dec_path) |
| void | show_text_header (Return *r) |
| void | show_error (Return *r, const char *error) |
| void | show_error_404 (Return *r, const char *error) |
| void | check_obsolete_odb (HNDLE hDB, const char *odb_path) |
| void | init_menu_buttons (MVOdb *odb) |
| void | init_mhttpd_odb (MVOdb *odb) |
| void | init_elog_odb () |
| void | strencode (Return *r, const char *text) |
| std::string | strencode2 (const char *text) |
| void | strencode3 (Return *r, const char *text) |
| void | strencode4 (Return *r, const char *text) |
| void | gen_odb_attachment (Return *r, const char *path, std::string &bout) |
| void | submit_elog (MVOdb *odb, Param *pp, Return *r, Attachment *a) |
| void | show_elog_attachment (Param *p, Return *r, const char *path) |
| BOOL | is_editable (char *eq_name, char *var_name) |
| void | show_eqtable_page (Param *pp, Return *r, int refresh) |
| char * | find_odb_tag (char *p, char *path, char *format, int *edit, char *type, char *pwd, char *tail) |
| void | show_odb_tag (Param *pp, Return *r, const char *path, const char *keypath1, const char *format, int n_var, int edit, char *type, char *pwd, char *tail) |
| int | evaluate_src (char *key, char *src, double *fvalue) |
| std::string | add_custom_path (const std::string &filename) |
| void | show_custom_file (Return *r, const char *name) |
| void | show_custom_gif (Return *rr, const char *name) |
| void | do_jrpc_rev0 (Param *p, Return *r) |
| void | do_jrpc_rev1 (Param *p, Return *r) |
| void | do_jrpc (Param *p, Return *r) |
| void | output_key (Param *p, Return *r, HNDLE hkey, int index, const char *format) |
| bool | starts_with (const std::string &s1, const char *s2) |
| void | javascript_commands (Param *p, Return *r, const char *cookie_cpwd) |
| void | show_custom_page (Param *pp, Return *r, const char *cookie_cpwd) |
| static void | show_cnaf_page (Param *p, Return *rr) |
| void | show_password_page (Return *r, const char *dec_path, const char *password) |
| BOOL | check_web_password (Return *r, HNDLE hDB, const char *dec_path, const char *password, const char *redir) |
| void | show_odb_page (Param *pp, Return *r, const char *dec_path, int write_access) |
| void | show_set_page (Param *pp, Return *r, const char *group, int index, const char *value) |
| void | show_find_page (Return *r, const char *value) |
| void | sec_to_label (char *result, int sec, int base, int force_date) |
| void | taxis (gdImagePtr im, gdFont *font, int col, int gcol, int x1, int y1, int width, int xr, int minor, int major, int text, int label, int grid, double xmin, double xmax) |
| int | time_to_sec (const char *str) |
| time_t | string_to_time (const char *str) |
| std::string | time_to_string (time_t t) |
| static void | history_watch_callback (HNDLE hDB, HNDLE hKey, int index, void *info) |
| static MidasHistoryInterface * | get_history (bool reset=false) |
| static void | LoadHistPlotFromOdb (MVOdb *odb, HistPlot *hp, const char *group, const char *panel) |
| int | read_history (const HistPlot &hp, int index, int flags, time_t tstart, time_t tend, time_t scale, HistoryData *data) |
| int | get_hist_last_written (MVOdb *odb, const char *group, const char *panel, time_t endtime, int index, int want_all, time_t *plastwritten) |
| void | generate_hist_graph (MVOdb *odb, Return *rr, const char *hgroup, const char *hpanel, char *buffer, int *buffer_size, int width, int height, time_t xendtime, int scale, int index, int labels, const char *bgcolor, const char *fgcolor, const char *gridcolor) |
| time_t | mktime_with_dst (const struct tm *ptms) |
| static std::string | add_param_to_url (const char *name, const char *value) |
| void | show_query_page (Param *p, Return *r) |
| static int | cmp_names (const void *a, const void *b) |
| const bool | cmp_events (const std::string &a, const std::string &b) |
| const bool | cmp_events1 (const std::string &a, const std::string &b) |
| const bool | cmp_tags (const TAG &a, const TAG &b) |
| int | xdb_get_data_index (HNDLE hDB, const char *str, void *value, int size, int index, int tid) |
| static int | xdb_find_key (HNDLE hDB, HNDLE dir, const char *str, HNDLE *hKey, int tid, int size) |
| static bool | cmp_vars (const HistVar &a, const HistVar &b) |
| static void | PrintHistPlot (const HistPlot &hp) |
| static std::string | NextHistPlotColour (const HistPlot &hp) |
| static int | NextHistPlotOrder (const HistPlot &hp) |
| static void | SplitEventAndTagNames (std::string var_name, std::string &event_name, std::string &tag_name) |
| static void | LoadHistPlotFromParam (HistPlot *hp, Param *p) |
| static void | AddHistPlotSelectedParam (HistPlot &hp, Param *p) |
| static void | SaveHistPlotToOdb (MVOdb *odb, const HistPlot &hp, const char *group, const char *panel) |
| static void | DeleteHistPlotDeleted (HistPlot &hp) |
| static void | SortHistPlotVars (HistPlot &hp) |
| void | show_hist_config_page (MVOdb *odb, Param *p, Return *r, const char *hgroup, const char *hpanel) |
| void | export_hist (MVOdb *odb, Return *r, const char *group, const char *panel, time_t endtime, int scale, int index, int labels) |
| void | send_icon (Return *r, const char *icon) |
| void | Lock (RequestTrace *t) |
| void | Unlock (RequestTrace *t) |
| void | interprete (Param *p, Return *r, Attachment *a, const Cookies *c, const char *dec_path, RequestTrace *t) |
| void | decode_query (Param *pp, const char *query_string) |
| void | decode_get (Return *rr, char *string, const Cookies *c, const char *url, const char *query_string, RequestTrace *t) |
| void | decode_post (Return *rr, const char *header, const char *string, const char *boundary, int length, const Cookies *c, const char *url, RequestTrace *t) |
| INT | check_odb_records (MVOdb *odb) |
| void | ctrlc_handler (int sig) |
| int | try_file_mg (const char *try_dir, const char *filename, std::string &path, FILE **fpp, bool trace) |
| int | find_file_mg (const char *filename, std::string &path, FILE **fpp, bool trace) |
| static bool | read_passwords (Auth *auth) |
| static void | xmg_mkmd5resp (const char *method, size_t method_len, const char *uri, size_t uri_len, const char *ha1, size_t ha1_len, const char *nonce, size_t nonce_len, const char *nc, size_t nc_len, const char *cnonce, size_t cnonce_len, const char *qop, size_t qop_len, char *resp) |
| static int | xmg_check_nonce (const char *nonce) |
| static void | xmg_http_send_digest_auth_request (struct mg_connection *c, const char *domain) |
| static std::string | check_digest_auth (struct http_message *hm, Auth *auth) |
| static std::string | mgstr (const mg_str *s) |
| static const std::string | find_header_mg (const struct http_message *msg, const char *name) |
| static const std::string | find_cookie_mg (const struct http_message *msg, const char *cookie_name) |
| static void | handle_event_mg (struct mg_connection *nc, int ev, void *ev_data) |
| void | decode_cookies (Cookies *c, const http_message *msg) |
| static int | handle_decode_get (struct mg_connection *nc, const http_message *msg, const char *uri, const char *query_string, RequestTrace *t) |
| static int | handle_decode_post (struct mg_connection *nc, const http_message *msg, const char *uri, const char *query_string, RequestTrace *t) |
| static int | handle_http_get (struct mg_connection *nc, const http_message *msg, const char *uri, RequestTrace *t) |
| static int | handle_http_post (struct mg_connection *nc, const http_message *msg, const char *uri, RequestTrace *t) |
| static void | handle_http_options_cors (struct mg_connection *nc, const http_message *msg, RequestTrace *t) |
| static bool | mongoose_passwords_enabled (const struct mg_connection *nc) |
| static void | handle_http_message (struct mg_connection *nc, http_message *msg) |
| static MJsonNode * | get_http_trace (const MJsonNode *params) |
| static MJsonNode * | set_http_trace (const MJsonNode *params) |
| static void | add_rpc_functions () |
| int | main (int argc, const char *argv[]) |
Variables | |
| static std::mutex | gMutex |
| static MVOdb * | gOdb = NULL |
| static BOOL | elog_mode = FALSE |
| static BOOL | history_mode = FALSE |
| static BOOL | verbose = FALSE |
| const char * | mname [] |
| static const char | default_type_list [20][NAME_LENGTH] |
| static const char | default_system_list [20][NAME_LENGTH] |
| const MimetypeTableEntry | gMimetypeTable [] |
| static MVOdb * | gMimeTypesOdb = NULL |
| const unsigned char | favicon_png [] |
| const unsigned char | favicon_ico [] |
| static int | http_trace = 0 |
| static RequestTraceBuf * | gTraceBuf = NULL |
| static const char * | cgif_label_str [] |
| static const char * | cgif_bar_str [] |
| static bool | gDoSetupHistoryWatch = true |
| static bool | gDoReloadHistory = false |
| static MidasHistoryInterface * | gMh = NULL |
| static HNDLE | gMhkey = 0 |
| std::atomic_bool | _abort {false} |
| static std::vector< std::string > | gAllowedHosts |
| static bool | verbose_mg = false |
| static bool | trace_mg = false |
| static bool | trace_mg_recv = false |
| static bool | trace_mg_send = false |
| static bool | trace_mg_verbose = false |
| static Auth * | gAuthMg = NULL |
Definition at line 8240 of file mhttpd.cxx.
| #define DEFAULT_REFRESH 60 |
Definition at line 39 of file mhttpd.cxx.
| #define DELETE | ( | x | ) | if (x) { free(x); (x)=NULL; } |
Definition at line 8241 of file mhttpd.cxx.
| #define DELETEA | ( | x, | |
| n | |||
| ) | if (x) { for (int i=0; i<(n); i++) { free((x)[i]); (x)[i]=NULL; }; DELETE(x); } |
Definition at line 8242 of file mhttpd.cxx.
| #define HTTP_ENCODING "UTF-8" |
Definition at line 213 of file mhttpd.cxx.
| #define LN10 2.302585094 |
Definition at line 7634 of file mhttpd.cxx.
| #define LOG2 0.301029996 |
Definition at line 7635 of file mhttpd.cxx.
| #define LOG5 0.698970005 |
Definition at line 7636 of file mhttpd.cxx.
| #define MAX_GROUPS 32 |
Definition at line 52 of file mhttpd.cxx.
| #define MAX_PARAM 500 |
Definition at line 697 of file mhttpd.cxx.
| #define MAX_VARS 100 |
Definition at line 53 of file mhttpd.cxx.
| #define OBSOLETE 1 |
Definition at line 45 of file mhttpd.cxx.
| #define PARAM_LENGTH 256 |
Definition at line 698 of file mhttpd.cxx.
| #define READ_HISTORY_DATA 0x1 |
Definition at line 8326 of file mhttpd.cxx.
| #define READ_HISTORY_LAST_WRITTEN 0x4 |
Definition at line 8328 of file mhttpd.cxx.
| #define READ_HISTORY_RUNMARKER 0x2 |
Definition at line 8327 of file mhttpd.cxx.
| #define RESPONSE_501 3 |
Definition at line 14261 of file mhttpd.cxx.
| #define RESPONSE_QUEUED 2 |
Definition at line 14260 of file mhttpd.cxx.
| #define RESPONSE_SENT 1 |
Definition at line 14259 of file mhttpd.cxx.
| #define STRDUP | ( | x | ) | strdup(x) |
Definition at line 8243 of file mhttpd.cxx.
| #define TEXT_SIZE 50000 |
Definition at line 699 of file mhttpd.cxx.
| #define WEB_BUFFER_SIZE (6*1024*1024) |
Definition at line 511 of file mhttpd.cxx.
| std::string add_custom_path | ( | const std::string & | filename | ) |
Definition at line 3575 of file mhttpd.cxx.


|
static |
Definition at line 9786 of file mhttpd.cxx.

|
static |
Definition at line 16216 of file mhttpd.cxx.


Definition at line 10383 of file mhttpd.cxx.


|
static |
Definition at line 13898 of file mhttpd.cxx.


| void check_obsolete_odb | ( | HNDLE | hDB, |
| const char * | odb_path | ||
| ) |
Definition at line 1883 of file mhttpd.cxx.


| INT check_odb_records | ( | MVOdb * | odb | ) |
Definition at line 13394 of file mhttpd.cxx.


| BOOL check_web_password | ( | Return * | r, |
| HNDLE | hDB, | ||
| const char * | dec_path, | ||
| const char * | password, | ||
| const char * | redir | ||
| ) |
Definition at line 6742 of file mhttpd.cxx.


| const bool cmp_events | ( | const std::string & | a, |
| const std::string & | b | ||
| ) |
Definition at line 10039 of file mhttpd.cxx.

| const bool cmp_events1 | ( | const std::string & | a, |
| const std::string & | b | ||
| ) |
Definition at line 10044 of file mhttpd.cxx.

|
static |
Definition at line 9981 of file mhttpd.cxx.

Definition at line 10049 of file mhttpd.cxx.


| void ctrlc_handler | ( | int | sig | ) |
| void decode_cookies | ( | Cookies * | c, |
| const http_message * | msg | ||
| ) |
Definition at line 14212 of file mhttpd.cxx.


| void decode_get | ( | Return * | rr, |
| char * | string, | ||
| const Cookies * | c, | ||
| const char * | url, | ||
| const char * | query_string, | ||
| RequestTrace * | t | ||
| ) |
Definition at line 13200 of file mhttpd.cxx.


| void decode_post | ( | Return * | rr, |
| const char * | header, | ||
| const char * | string, | ||
| const char * | boundary, | ||
| int | length, | ||
| const Cookies * | c, | ||
| const char * | url, | ||
| RequestTrace * | t | ||
| ) |
Definition at line 13238 of file mhttpd.cxx.


| void decode_query | ( | Param * | pp, |
| const char * | query_string | ||
| ) |
Definition at line 13175 of file mhttpd.cxx.


|
static |
Definition at line 10487 of file mhttpd.cxx.

Definition at line 4325 of file mhttpd.cxx.


Definition at line 4019 of file mhttpd.cxx.


Definition at line 4144 of file mhttpd.cxx.


| int evaluate_src | ( | char * | key, |
| char * | src, | ||
| double * | fvalue | ||
| ) |
Definition at line 3502 of file mhttpd.cxx.


| void export_hist | ( | MVOdb * | odb, |
| Return * | r, | ||
| const char * | group, | ||
| const char * | panel, | ||
| time_t | endtime, | ||
| int | scale, | ||
| int | index, | ||
| int | labels | ||
| ) |
Definition at line 11031 of file mhttpd.cxx.


|
static |
Definition at line 14160 of file mhttpd.cxx.


| int find_file_mg | ( | const char * | filename, |
| std::string & | path, | ||
| FILE ** | fpp, | ||
| bool | trace | ||
| ) |
Definition at line 13677 of file mhttpd.cxx.


|
static |
Definition at line 14147 of file mhttpd.cxx.


| char * find_odb_tag | ( | char * | p, |
| char * | path, | ||
| char * | format, | ||
| int * | edit, | ||
| char * | type, | ||
| char * | pwd, | ||
| char * | tail | ||
| ) |
Definition at line 3096 of file mhttpd.cxx.


| void gen_odb_attachment | ( | Return * | r, |
| const char * | path, | ||
| std::string & | bout | ||
| ) |
Definition at line 2137 of file mhttpd.cxx.


| void generate_hist_graph | ( | MVOdb * | odb, |
| Return * | rr, | ||
| const char * | hgroup, | ||
| const char * | hpanel, | ||
| char * | buffer, | ||
| int * | buffer_size, | ||
| int | width, | ||
| int | height, | ||
| time_t | xendtime, | ||
| int | scale, | ||
| int | index, | ||
| int | labels, | ||
| const char * | bgcolor, | ||
| const char * | fgcolor, | ||
| const char * | gridcolor | ||
| ) |
Definition at line 8610 of file mhttpd.cxx.


| std::string get_content_type | ( | const char * | filename | ) |
Definition at line 1135 of file mhttpd.cxx.


| void get_elog_url | ( | char * | url, |
| int | len | ||
| ) |

| int get_hist_last_written | ( | MVOdb * | odb, |
| const char * | group, | ||
| const char * | panel, | ||
| time_t | endtime, | ||
| int | index, | ||
| int | want_all, | ||
| time_t * | plastwritten | ||
| ) |
Definition at line 8527 of file mhttpd.cxx.


|
static |
Definition at line 8163 of file mhttpd.cxx.


|
static |
Definition at line 16189 of file mhttpd.cxx.


| std::vector< std::string > get_resource_paths | ( | ) |
Definition at line 991 of file mhttpd.cxx.


|
static |
Definition at line 181 of file mhttpd.cxx.

|
static |
Definition at line 376 of file mhttpd.cxx.


|
static |
Definition at line 14263 of file mhttpd.cxx.


|
static |
Definition at line 14733 of file mhttpd.cxx.


|
static |
Definition at line 14178 of file mhttpd.cxx.

|
static |
Definition at line 14806 of file mhttpd.cxx.


|
static |
Definition at line 15085 of file mhttpd.cxx.

|
static |
Definition at line 15015 of file mhttpd.cxx.


|
static |
Definition at line 14889 of file mhttpd.cxx.


| void haxis | ( | gdImagePtr | im, |
| gdFont * | font, | ||
| int | col, | ||
| int | gcol, | ||
| int | x1, | ||
| int | y1, | ||
| int | width, | ||
| int | minor, | ||
| int | major, | ||
| int | text, | ||
| int | label, | ||
| int | grid, | ||
| double | xmin, | ||
| double | xmax | ||
| ) |
Definition at line 7638 of file mhttpd.cxx.


Definition at line 8151 of file mhttpd.cxx.


| void init_elog_odb | ( | ) |
Definition at line 1981 of file mhttpd.cxx.


| void init_menu_buttons | ( | MVOdb * | odb | ) |
Definition at line 1892 of file mhttpd.cxx.


| void init_mhttpd_odb | ( | MVOdb * | odb | ) |
Definition at line 1933 of file mhttpd.cxx.


| void interprete | ( | Param * | p, |
| Return * | r, | ||
| Attachment * | a, | ||
| const Cookies * | c, | ||
| const char * | dec_path, | ||
| RequestTrace * | t | ||
| ) |
Definition at line 12256 of file mhttpd.cxx.


| BOOL is_editable | ( | char * | eq_name, |
| char * | var_name | ||
| ) |
Definition at line 2534 of file mhttpd.cxx.


Definition at line 4454 of file mhttpd.cxx.


|
static |
Definition at line 10201 of file mhttpd.cxx.


Definition at line 10306 of file mhttpd.cxx.


| void Lock | ( | RequestTrace * | t | ) |
Definition at line 12242 of file mhttpd.cxx.


| int main | ( | int | argc, |
| const char * | argv[] | ||
| ) |
Definition at line 16224 of file mhttpd.cxx.

|
static |
| const char * mhttpd_revision | ( | void | ) |
Definition at line 836 of file mhttpd.cxx.


| time_t mktime_with_dst | ( | const struct tm * | ptms | ) |
Definition at line 9751 of file mhttpd.cxx.


|
static |

|
static |
Definition at line 10122 of file mhttpd.cxx.

|
static |
| bool open_resource_file | ( | const char * | filename, |
| std::string * | ppath, | ||
| FILE ** | pfp | ||
| ) |
Definition at line 1031 of file mhttpd.cxx.


Definition at line 4379 of file mhttpd.cxx.


|
static |
Definition at line 10112 of file mhttpd.cxx.
| int read_history | ( | const HistPlot & | hp, |
| int | index, | ||
| int | flags, | ||
| time_t | tstart, | ||
| time_t | tend, | ||
| time_t | scale, | ||
| HistoryData * | data | ||
| ) |
Definition at line 8362 of file mhttpd.cxx.


|
static |
Definition at line 13802 of file mhttpd.cxx.


| void redirect | ( | Return * | r, |
| const char * | path | ||
| ) |
Definition at line 1409 of file mhttpd.cxx.


| void redirect2 | ( | Return * | r, |
| const char * | path | ||
| ) |
Definition at line 1446 of file mhttpd.cxx.


| void redirect_307 | ( | Return * | r, |
| const char * | path | ||
| ) |
Definition at line 1433 of file mhttpd.cxx.


|
static |
Definition at line 10411 of file mhttpd.cxx.


|
static |
Definition at line 203 of file mhttpd.cxx.

Definition at line 1459 of file mhttpd.cxx.


| void sec_to_label | ( | char * | result, |
| int | sec, | ||
| int | base, | ||
| int | force_date | ||
| ) |
Definition at line 7756 of file mhttpd.cxx.


| bool send_file | ( | Return * | r, |
| const std::string & | path, | ||
| bool | generate_404 = true |
||
| ) |
Definition at line 1212 of file mhttpd.cxx.


| bool send_fp | ( | Return * | r, |
| const std::string & | path, | ||
| FILE * | fp | ||
| ) |
Definition at line 1166 of file mhttpd.cxx.


| void send_icon | ( | Return * | r, |
| const char * | icon | ||
| ) |
Definition at line 12190 of file mhttpd.cxx.


| bool send_resource | ( | Return * | r, |
| const std::string & | name, | ||
| bool | generate_404 = true |
||
| ) |
Definition at line 1231 of file mhttpd.cxx.


| INT sendmail | ( | const char * | from_host, |
| const char * | smtp_host, | ||
| const char * | from, | ||
| const char * | to, | ||
| const char * | subject, | ||
| const char * | text | ||
| ) |
Definition at line 1255 of file mhttpd.cxx.


|
static |
Definition at line 16202 of file mhttpd.cxx.


Definition at line 5660 of file mhttpd.cxx.


| void show_custom_file | ( | Return * | r, |
| const char * | name | ||
| ) |
Definition at line 3614 of file mhttpd.cxx.


| void show_custom_gif | ( | Return * | rr, |
| const char * | name | ||
| ) |
Definition at line 3677 of file mhttpd.cxx.


Definition at line 5426 of file mhttpd.cxx.


Definition at line 2486 of file mhttpd.cxx.


Definition at line 2562 of file mhttpd.cxx.


| void show_error | ( | Return * | r, |
| const char * | error | ||
| ) |
Definition at line 1841 of file mhttpd.cxx.


| void show_error_404 | ( | Return * | r, |
| const char * | error | ||
| ) |
Definition at line 1856 of file mhttpd.cxx.


| void show_find_page | ( | Return * | r, |
| const char * | value | ||
| ) |
Definition at line 7573 of file mhttpd.cxx.


| void show_header | ( | Return * | r, |
| const char * | title, | ||
| const char * | method, | ||
| const char * | path, | ||
| int | refresh | ||
| ) |
Definition at line 1781 of file mhttpd.cxx.


| void show_help_page | ( | Return * | r, |
| const char * | dec_path | ||
| ) |
Definition at line 1542 of file mhttpd.cxx.


| void show_hist_config_page | ( | MVOdb * | odb, |
| Param * | p, | ||
| Return * | r, | ||
| const char * | hgroup, | ||
| const char * | hpanel | ||
| ) |
Definition at line 10525 of file mhttpd.cxx.


| void show_hist_page | ( | MVOdb * | odb, |
| Param * | p, | ||
| Return * | r, | ||
| const char * | dec_path, | ||
| char * | buffer, | ||
| int * | buffer_size, | ||
| int | refresh | ||
| ) |
Definition at line 11268 of file mhttpd.cxx.


| void show_navigation_bar | ( | Return * | r, |
| const char * | cur_page | ||
| ) |
Definition at line 1869 of file mhttpd.cxx.


Definition at line 6799 of file mhttpd.cxx.


| void show_odb_tag | ( | Param * | pp, |
| Return * | r, | ||
| const char * | path, | ||
| const char * | keypath1, | ||
| const char * | format, | ||
| int | n_var, | ||
| int | edit, | ||
| char * | type, | ||
| char * | pwd, | ||
| char * | tail | ||
| ) |
Definition at line 3280 of file mhttpd.cxx.


| void show_password_page | ( | Return * | r, |
| const char * | dec_path, | ||
| const char * | password | ||
| ) |
Definition at line 6708 of file mhttpd.cxx.


Definition at line 9797 of file mhttpd.cxx.


Definition at line 7439 of file mhttpd.cxx.


| void show_text_header | ( | Return * | r | ) |
Definition at line 1829 of file mhttpd.cxx.


|
static |
Definition at line 10504 of file mhttpd.cxx.


|
static |
Definition at line 10157 of file mhttpd.cxx.

| bool starts_with | ( | const std::string & | s1, |
| const char * | s2 | ||
| ) |
Definition at line 4438 of file mhttpd.cxx.

| void strencode | ( | Return * | r, |
| const char * | text | ||
| ) |
Definition at line 2022 of file mhttpd.cxx.


| std::string strencode2 | ( | const char * | text | ) |
Definition at line 2050 of file mhttpd.cxx.

| void strencode3 | ( | Return * | r, |
| const char * | text | ||
| ) |
Definition at line 2081 of file mhttpd.cxx.


| void strencode4 | ( | Return * | r, |
| const char * | text | ||
| ) |
Definition at line 2106 of file mhttpd.cxx.

| time_t string_to_time | ( | const char * | str | ) |
| char * stristr | ( | const char * | str, |
| const char * | pattern | ||
| ) |
Definition at line 341 of file mhttpd.cxx.
| void submit_elog | ( | MVOdb * | odb, |
| Param * | pp, | ||
| Return * | r, | ||
| Attachment * | a | ||
| ) |
Definition at line 2251 of file mhttpd.cxx.


| void taxis | ( | gdImagePtr | im, |
| gdFont * | font, | ||
| int | col, | ||
| int | gcol, | ||
| int | x1, | ||
| int | y1, | ||
| int | width, | ||
| int | xr, | ||
| int | minor, | ||
| int | major, | ||
| int | text, | ||
| int | label, | ||
| int | grid, | ||
| double | xmin, | ||
| double | xmax | ||
| ) |
Definition at line 7791 of file mhttpd.cxx.


| int time_to_sec | ( | const char * | str | ) |
Definition at line 8098 of file mhttpd.cxx.

| std::string time_to_string | ( | time_t | t | ) |
Definition at line 8139 of file mhttpd.cxx.

|
static |
| int try_file_mg | ( | const char * | try_dir, |
| const char * | filename, | ||
| std::string & | path, | ||
| FILE ** | fpp, | ||
| bool | trace | ||
| ) |
Definition at line 13644 of file mhttpd.cxx.

| void Unlock | ( | RequestTrace * | t | ) |
Definition at line 12248 of file mhttpd.cxx.


|
static |
Definition at line 882 of file mhttpd.cxx.

|
static |
Definition at line 843 of file mhttpd.cxx.

|
static |
Definition at line 921 of file mhttpd.cxx.

|
static |
Definition at line 957 of file mhttpd.cxx.
| int vaxis | ( | gdImagePtr | im, |
| gdFont * | font, | ||
| int | col, | ||
| int | gcol, | ||
| int | x1, | ||
| int | y1, | ||
| int | width, | ||
| int | minor, | ||
| int | major, | ||
| int | text, | ||
| int | label, | ||
| int | grid, | ||
| double | ymin, | ||
| double | ymax, | ||
| BOOL | logaxis | ||
| ) |
Definition at line 7912 of file mhttpd.cxx.


|
static |
Definition at line 10084 of file mhttpd.cxx.

| int xdb_get_data_index | ( | HNDLE | hDB, |
| const char * | str, | ||
| void * | value, | ||
| int | size, | ||
| int | index, | ||
| int | tid | ||
| ) |
Definition at line 10068 of file mhttpd.cxx.

|
static |
Definition at line 13781 of file mhttpd.cxx.

|
static |
Definition at line 13792 of file mhttpd.cxx.


|
static |
Definition at line 13760 of file mhttpd.cxx.


| std::atomic_bool _abort {false} |
Definition at line 13456 of file mhttpd.cxx.
|
static |
Definition at line 3473 of file mhttpd.cxx.
|
static |
Definition at line 3433 of file mhttpd.cxx.
|
static |
Definition at line 116 of file mhttpd.cxx.
|
static |
Definition at line 101 of file mhttpd.cxx.
Definition at line 94 of file mhttpd.cxx.
| const unsigned char favicon_ico[] |
Definition at line 282 of file mhttpd.cxx.
| const unsigned char favicon_png[] |
Definition at line 217 of file mhttpd.cxx.
|
static |
Definition at line 13468 of file mhttpd.cxx.
|
static |
Definition at line 13758 of file mhttpd.cxx.
|
static |
Definition at line 8149 of file mhttpd.cxx.
|
static |
Definition at line 8148 of file mhttpd.cxx.
|
static |
Definition at line 8158 of file mhttpd.cxx.
|
static |
Definition at line 8159 of file mhttpd.cxx.
|
static |
Definition at line 179 of file mhttpd.cxx.
| const MimetypeTableEntry gMimetypeTable[] |
Definition at line 130 of file mhttpd.cxx.
|
static |
Definition at line 47 of file mhttpd.cxx.
|
static |
Definition at line 48 of file mhttpd.cxx.
|
static |
Definition at line 506 of file mhttpd.cxx.
Definition at line 95 of file mhttpd.cxx.
|
static |
Definition at line 435 of file mhttpd.cxx.
|
extern |
|
static |
Definition at line 13710 of file mhttpd.cxx.
|
static |
Definition at line 13711 of file mhttpd.cxx.
|
static |
Definition at line 13712 of file mhttpd.cxx.
|
static |
Definition at line 13713 of file mhttpd.cxx.
Definition at line 96 of file mhttpd.cxx.
|
static |
Definition at line 13709 of file mhttpd.cxx.