
<a href="${helpuri}Configure+General-0-7" id="help" target="_blank">$T('menu-help')</a><h3>$T('generalConfig')</h3>
<form class="cmxform" id="configGeneral" autocomplete="off">

<fieldset class="EntryFieldSet">
<legend>$T('webServer') <i>($T('restartRequired'))</i></legend>
<hr />
  <label for "host" class="label">$T('opt-host'):</label>
  <input type="text" name="host" value="$host">
  <span class="tips">$T('explain-host')</span>
<br class="clear" />

  <label for "port" class="label">$T('opt-port'):</label>
  <input type="text" name="port" value="$port">
  <span class="tips">$T('explain-port')</span>
<br class="clear" />

  <label for "userinterface" class="label">$T('opt-web_dir'):</label>

  <select name="web_dir" id="webdir" class="select">
    <!--#for $webline in $web_list#-->
      <!--#if $webline.lower() == $web_dir.lower()#-->
        <option value="$webline" selected>$webline</option>
      <!--#else#-->
        <option value="$webline">$webline</option>
      <!--#end if#-->
    <!--#end for#-->
  </select>
  <span class="tips">$T('explain-web_dir')</span>
  <br class="clear" />

  <label for "userinterface" class="label">$T('opt-web_dir2'):</label>
  <select name="web_dir2" id="webdir2" class="select">
    <!--#for $webline in $web_list2#-->
      <!--#if $webline.lower() == $web_dir2.lower()#-->
        <option value="$webline" selected>$webline</option>
      <!--#else#-->
        <option value="$webline">$webline</option>
      <!--#end if#-->
    <!--#end for#-->
  </select>
  <span class="tips">$T('explain-web_dir2')</span>
  <br class="clear" />

  <label for "language" class="label">$T('opt-language'):</label>
  <select name="language" id="language" class="select">
  <!--#for $webline in $lang_list#-->
    <!--#if $webline[0].lower() == $language.lower()#-->
      <option value="$webline[0]" selected>$webline[1]</option>
    <!--#else#-->
      <option value="$webline[0]">$webline[1]</option>
    <!--#end if#-->
  <!--#end for#-->
  </select>
  <span class="tips">$T('explain-language')</span>
  <br class="clear" />

  <label class="label">$T('opt-apikey'):</label> <input type="text" style="width:250px;border:none;" onclick="this.select()" id="apikey" value="$session">
  <span class="tips">$T('explain-apikey')</span>
  <br class="clear" />
  <label class="label">&nbsp;</label>
  <input type="button" style="float:none;display:inline;" size="40" value="$T('button-apikey')" onclick="javascript:generateAPIKey()">
  <br class="clear" />

  <label class="label">$T('opt-nzbkey'):</label> <input type="text" style="width:250px;border:none;" onclick="this.select()" id="nzbkey" value="$nzb_key">
  <span class="tips">$T('explain-nzbkey')</span>
  <br class="clear" />
  <label class="label">&nbsp;</label>
  <input type="button" style="float:none;display:inline;" size="40" value="$T('button-apikey')" onclick="javascript:generateNZBKey()">
  <br class="clear" />

  <label class="label">$T('opt-disableApikey'):</label>
  <input class="radio" type="checkbox" name="disable_api_key" value="1" <!--#if $disable_api_key > 0 then "checked=1" else ""#--> />
  <span class="tips">$T('explain-disableApikey') <a href="${helpuri}cross-site-vulnerability/" target="_blank">$T('explain-disableApikeyWarn')</a></span></label>
  <br class="clear" />

</fieldset>
<fieldset class="EntryFieldSet">
<legend>$T('webAuth')</legend>
<hr />
  <label for "webuser" class="label">$T('opt-web_username'):</label>
  <input type="text" name="username" value="$username">
  <span class="tips">$T('explain-web_username')</span>
  <br class="clear" />

  <label for "webpass" class="label">$T('opt-web_password'):</label>
  <input type="password" name="password" value="$password">
  <span class="tips">$T('explain-web_password')</span>
  <br class="clear" />

</fieldset>
<fieldset class="EntryFieldSet">
<legend>$T('httpsSupport') <i>($T('restartRequired'))</i></legend>
<hr />

  <label><span class="label">$T('opt-enable_https')<!--#if int($have_ssl) == 0 then " "+$T('opt-notInstalled') else ""#-->:</span>
  <input class="radio" type="checkbox" name="enable_https" value="1" <!--#if $enable_https == 1 then 'checked="1"' else ""#--> <!--#if int($have_ssl) == 0 then "disabled" else ""#--> />
  <span class="tips">$T('explain-enable_https')</span></label>
<br class="clear" />

  <label for "https_port" class="label">$T('opt-https_port'):</label>
  <input type="text" name="https_port" value="$https_port">
  <span class="tips">$T('explain-https_port')</span>
<br class="clear" />

  <label for "https_cert" class="label">$T('opt-https_cert'):</label>
  <input type="text" name="https_cert" value="$https_cert">
  <span class="tips">$T('explain-https_cert')</span>
<br class="clear" />

  <label for "https_key" class="label">$T('opt-https_key'):</label>
  <input type="text" name="https_key" value="$https_key">
  <span class="tips">$T('explain-https_key')</span>
<br class="clear" />

</fieldset>

<fieldset class="EntryFieldSet">
<legend>$T('tuning')</legend>
<hr />

  <label for "qrefresh" class="label">$T('opt-refresh_rate'):</label>
  <input type="text" name="refresh_rate" value="$refresh_rate">
  <span class="tips">$T('explain-refresh_rate')</span>
<br class="clear" />

  <label for "bandwidth limit" class="label">$T('opt-bandwidth_limit'):</label>
  <input type="text" name="bandwidth_limit" value="$bandwidth_limit">
  <span class="tips">$T('explain-bandwidth_limit')</span>
<br class="clear" />

  <label for "cachelimit" class="label">$T('opt-cache_limitstr'):</label>
  <input type="text" name="cache_limit" value="$cache_limit">
  <span class="tips">$T('explain-cache_limitstr')</span>
<br class="clear" />

  <label for "cleanuplist" class="label">$T('opt-cleanup_list'):</label>
  <input type="text" name="cleanup_list" value="$cleanup_list">
  <span class="tips">$T('explain-cleanup_list')</span>
<br class="clear" />


</fieldset>


<p>
  <input type="button" size="40" value="$T('button-saveChanges')" onclick="javascript:submitconfig('config/general/saveGeneral', this, 'configGeneral')">
</p>
</form>
