Changeset 1037


Ignore:
Timestamp:
01/02/10 21:15:46 (12 years ago)
Author:
alno
Message:

WebIf:

  • httphideidleclients in Configuration/monitor replaced by a checkbox
Location:
branches/monitor-improvement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.c

    r1036 r1037  
    266266    tpl_printf(vars, 0, "HTTPREFRESH", "%d", cfg->http_refresh);
    267267    tpl_addVar(vars, 0, "HTTPTPL", cfg->http_tpl);
    268     tpl_printf(vars, 0, "HTTPHIDEIDLECLIENTS", "%d", cfg->http_hide_idle_clients);
     268    if (cfg->http_hide_idle_clients > 0) tpl_addVar(vars, 0, "CHECKED", "checked");
    269269
    270270      struct s_ip *cip;
     
    317317    }
    318318    if (cfg->ac_enabled > 0) tpl_addVar(vars, 0, "CHECKED", "checked");
    319     tpl_printf(vars, 0, "NUMUSERS", "%d", "checked");
     319    tpl_printf(vars, 0, "NUMUSERS", "%d", cfg->ac_users);
    320320    tpl_printf(vars, 0, "SAMPLETIME", "%d", cfg->ac_stime);
    321321    tpl_printf(vars, 0, "SAMPLES", "%d", cfg->ac_samples);
  • branches/monitor-improvement/oscam-http.h

    r1036 r1037  
    472472    <input name=\"part\" type=\"hidden\" value=\"monitor\">\n\
    473473    <input name=\"action\" type=\"hidden\" value=\"execute\">\n\
     474  <input name=\"httphideidleclients\" type=\"hidden\" value=\"0\">\n\
    474475    <TABLE cellspacing=\"0\">\n\
    475476        <TR><TH>&nbsp;</TH><TH>Edit Monitor Config</TH></TR>\n\
     
    495496        <TR><TD>Httprefresh:</TD><TD><input name=\"httprefresh\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##HTTPREFRESH##\"></TD></TR>\n\
    496497        <TR><TD>Httptpl:</TD><TD><input name=\"httptpl\" type=\"text\" size=\"50\" maxlength=\"100\" value=\"##HTTPTPL##\"></TD></TR>\n\
    497     <TR><TD>HttpHideIdleClients:</TD><TD><input name=\"httphideidleclients\" type=\"text\" size=\"5\" maxlength=\"1\" value=\"##HTTPHIDEIDLECLIENTS##\"></TD></TR>\n\
     498    <TR><TD>HttpHideIdleClients:</TD><TD><input name=\"httphideidleclients\" type=\"checkbox\" value=\"1\" ##CHECKED##>\n\
    498499    <TR><TD colspan=\"2\" align=\"right\"><input type=\"submit\" value=\"OK\">\n</TD></TR>\n\
    499500    </TABLE>\n\
Note: See TracChangeset for help on using the changeset viewer.