[% USE CPList -%] [% USE JSON -%] [%- SET bgimg = MagicRevision('/yui/slider/assets/bg-fader.gif'); WRAPPER 'master_templates/master.tmpl' theme="yui" app_key='configure_security_policies' extrastyle=" .form_action { border:8px solid #ddd; margin:5px 0 20px; width:600px; } .config { margin: 0 0 0 25px; } ul, ol { list-style: none; } #content fieldset ul, #content fieldset ol, #content fieldset ul li { margin: 0; padding: 0; border: 0; border-top: 0; } /* Security Form ----------------------------------------------------------------------------------------------------*/ form#securityform span { border:1px solid #aaa; display: block; } form#securityform fieldset { border: 0 none; margin:0; padding:10px 15px; } form#securityform legend { color:#4C5355; font-size:12px; font-weight: bold; margin: 0; padding: 10px 0 0; } .slider-bg { position: relative; background:url($bgimg) 5px 0 no-repeat; height:28px; width:228px; } .slider-thumb { cursor:default; position: absolute; top: 4px; } .warning{color:#ff0000; font-weight:bold;} .status { margin-left: 1em; color: #888; } .error { margin-left: 1em; color: #f00; } " %]

[% locale.maketext('This interface provides the configuration settings of the Security Policy that apply to cPanel, cPanel webmail, and WHM on your server.') %]

[% SET slider_fields = [] -%] [% FOREACH err IN data.error -%]
[% err %]
[% END -%] [% IF data.status %]
[% data.status %]
[% END -%]
[% locale.maketext("Security Policy Items") %]
    [%- FOREACH p = data.policies %]
  • [% FOREACH field = p.fields -%] [% SET is_slider = field.type == 'slider' -%] [% SET html_style = p.enabled ? '' : is_slider ? ' style="position:absolute;visibility:hidden"' : ' style="display:none"' -%]
    [% SWITCH field.type -%] [% CASE 'slider' -%] [% slider_fields.push(field) -%]
    [% CASE 'msg' -%] [% field.text %]

    [% CASE -%] [% END -%]
    [% END -%]
  • [% END -%]
[% locale.maketext("Security Policy Extensions") %]

[% locale.maketext('In addition to cPanel, cPanel webmail, and WHM interfaces, enable Security Policies for the following request types:') %]

[% locale.maketext('Warning: When you enable the Security Policy Extensions for the remote APIs and DNS cluster requests, incompatibilities will become difficult to diagnose. We recommend you do not enable these extensions unless you have an in-depth understanding of your remote API usage and DNS cluster configuration.') %]

[% locale.maketext('You may need to reset your password or provide other information immediately after you click Save.') %]

[% END #wrapper -%]