{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=HotlinkPrevention title=$locale->tr("hotlinkprevention_plugin")}
<form name="hotlinkpreventionPluginConfig" method="post">
 <fieldset class="inputField">
 <legend>{$locale->tr("label_configuration")}</legend>
  {include file="$admintemplatepath/successmessage.template"}
  {include file="$admintemplatepath/errormessage.template"}  
  <div class="field">
   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
   <span class="required"></span>
   <div class="formHelp">
    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" {user_cannot_override key=plugin_hotlinkprevention_enabled}disabled="disabled"{/user_cannot_override} />{$locale->tr("hotlinkprevention_plugin_enabled")}
   </div>
  </div>
  
  <div class="field">
   <label for="blankRefererEnabled">{$locale->tr("label_blankrefererenable")}</label>
   <span class="required"></span>
   <div class="formHelp">
    <input class="checkbox" type="checkbox" name="blankRefererEnabled" id="blankRefererEnabled" {if $blankRefererEnabled} checked="checked" {/if} value="1" {user_cannot_override key=plugin_hotlinkprevention_blankrefererenabled}disabled="disabled"{/user_cannot_override} />{$locale->tr("hotlinkprevention_blankrefererenabled")}
   </div>
  </div>

  <div class="field">
   <label for="allowReferers">{$locale->tr("label_allowreferers")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("hotlinkprevention_allowreferers")}</div>
   <textarea rows="5" id="allowReferers" name="allowReferers" style="width:100%">{$allowReferers}
          {user_cannot_override
              key=plugin_hotlinkprevention_allowreferers}readonly="readonly"
          {/user_cannot_override}
   </textarea>
  </div>

  <div class="field">
   <label for="fileExtensions">{$locale->tr("label_fileextensions")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("hotlinkprevention_fileextensions")}</div>
   <input class="text" type="text" name="fileExtensions" id="fileExtensions" 
        {user_cannot_override
          key=plugin_hotlinkprevention_fileextensions}readonly="readonly"
        {/user_cannot_override}
   value="{$fileExtensions}" width="10" />
  </div>   
  
 </fieldset>
 
 <div class="buttons">  
  <input type="hidden" name="op" value="updateHotlinkPreventionConfig" />
  <input type="reset" name="{$locale->tr("reset")}" />  
  <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
 </div>
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}
