Changeset 1029
- Timestamp:
- 01/02/10 11:01:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/monitor-improvement/oscam-http.c
r1028 r1029 106 106 tpl_printf(vars, 0, "PASSIVE", "%d", cfg->c33_passive); 107 107 108 for (i = 0; i < sizeof(cfg->c33_key); ++i) tpl_printf(vars, 1, "KEY", "%02X",cfg->c33_key[i]); 108 for (i = 0; i < sizeof(cfg->c33_key); ++i) tpl_printf(vars, 1, "KEY", "%02X",cfg->c33_key[i]); 109 109 struct s_ip *cip; 110 110 char *dot=""; … … 149 149 tpl_addVar(vars, 1, "MESSAGE", "<BR><BR><B>Configuration newcamd *DONE*</B><BR><BR>"); 150 150 refresh_oscam(REFR_SERVER); 151 } 151 } 152 152 int j; 153 153 char *dot1, *dot2; … … 185 185 tpl_addVar(vars, 1, "MESSAGE", "<BR><BR><B>Configuration Radegast *DONE*</B><BR><BR>"); 186 186 refresh_oscam(REFR_SERVER); 187 } 187 } 188 188 tpl_printf(vars, 0, "PORT", "%d", cfg->rad_port); 189 189 tpl_addVar(vars, 0, "SERVERIP", inet_ntoa(*(struct in_addr *)&cfg->rad_srvip)); … … 265 265 tpl_addVar(vars, 0, "HTTPCSS", cfg->http_css); 266 266 tpl_printf(vars, 0, "HTTPREFRESH", "%d", cfg->http_refresh); 267 tpl_addVar(vars, 0, "HTTPTPL", cfg->http_tpl); 267 tpl_addVar(vars, 0, "HTTPTPL", cfg->http_tpl); 268 268 269 269 struct s_ip *cip; … … 278 278 tpl_printf(vars, 0, "TMP", "MONSELECTED%d", cfg->mon_level); 279 279 tpl_addVar(vars, 0, tpl_getVar(vars, "TMP"), "selected"); 280 280 281 281 fputs(tpl_getTpl(vars, "CONFIGMONITOR"), f); 282 282 } … … 667 667 void send_oscam_entitlement(struct templatevars *vars, FILE *f, struct uriparams *params) { 668 668 /* build entitlements from reader init history */ 669 #ifdef CS_RDR_INIT_HIST 669 670 int ridx; 670 671 char *p; 671 672 char *reader_ = getParam(params, "reader"); 672 673 if(strlen(reader_) > 0){ 673 #ifdef CS_RDR_INIT_HIST674 674 for (ridx=0; ridx<CS_MAXREADER && strcmp(reader_, reader[ridx].label) != 0; ridx++); 675 675 if(ridx<CS_MAXREADER){ … … 678 678 } 679 679 } 680 tpl_addVar(vars, 0, "READERNAME", reader_); 680 681 #else 681 682 tpl_addVar(vars, 0, "LOGHISTORY", "The flag CS_RDR_INIT_HIST is not set in your binary<BR>\n"); 682 683 #endif 683 tpl_addVar(vars, 0, "READERNAME", reader_);684 684 } 685 685 fputs(tpl_getTpl(vars, "ENTITLEMENTS"), f); … … 730 730 tpl_printf(vars, 0, "CLIENTIDLESECS", "%d", isec); 731 731 tpl_printf(vars, 0, "CLIENTCON", "%d", con); 732 733 732 tpl_printf(vars, 0, "CWOK", "%d", client[i].cwfound); 733 tpl_printf(vars, 0, "CWNOK", "%d", client[i].cwnot); 734 734 tpl_addVar(vars, 1, "CLIENTSTATUS", tpl_getTpl(vars, "CLIENTSTATUSBIT")); 735 735 }
Note:
See TracChangeset
for help on using the changeset viewer.