<%! struct icm_http_subhdl { boolean active; string name; int type; int flags; int param_idx; string param_prefix; string url_prefix; }; struct icm_mod_info_type { boolean active; string file; string format; int maxsize; int switcht; int fsize; int lcount; }; %> <% int i, count, rc; int line_count = 0; string hdlsel, what, browser, lastControlID; string rules[]; boolean is_admin; string tab_hdlsel[]; struct icm_http_subhdl icm_subhdl_tab[]; struct icm_mod_info_type icm_mod_info; is_admin = __icm_get_system_property ("is_admin"); browser = __icm_get_browser_type(); lastControlID = htmlenc(__icm_get_form_field ("lastControlID")); count = __icm_http_hdl (2,icm_subhdl_tab,13); for (i = 0; i < count; i++) { tab_hdlsel[i] = ""; } hdlsel = anumenc(__icm_get_form_field ("hdlsel")); if (hdlsel != "") tab_hdlsel[hdlsel] = "selected"; rc = __icm_mod_hdl (1,hdlsel,icm_mod_info); if (rc == 0) line_count = __icm_mod_hdl (4,hdlsel,rules); %> HTTP Request Modification Handler
<% if (icm_mod_info.active) { %>
Deactivate Handler

Close Menu
<% } else { %>
Activate Handler

Close Menu
<% } %>
for   Refresh
Modification Handler Status <% if (icm_mod_info.active) { if (is_admin) { __output("active"); __output(" \"\""); } else { __output("active"); } __output(" \"green\""); } else { if (is_admin) { __output("inactive"); __output(" \"\""); } else { __output("inactive"); } __output(" \"red\""); } %>  
Name of rule File: <%=icm_mod_info.file%>  
URL Prefix for this Handler: <%=icm_subhdl_tab[hdlsel].url_prefix%>  
 
HTTP Modification Rules
<% for (i = 0; i < line_count; i++) { __output(rules[i],"
"); } %>