<!--%%INCLUDE "i_defaulthead.incl" ("PolluStop Configuration")-->
   <!--%%IF NOT(requestsecure)-->
   <noscript><div class="errors"><p class="errors">JavaScript is not enabled on your browser.<br />Please enable it before accessing this system.</p></noscript>
   <!--%%ENDIF-->

   <form action="/login" method="post" onsubmit="return preSubmit();">
      <!--%%IF NOT(requestsecure)--><input type="hidden" name="auth" value="" />
      <input type="hidden" name="pk_time" value="%%HTML:pk_time%%" />
      <input type="hidden" name="temp" value="" /><!--%%ENDIF-->

      <fieldset><legend>Access to PolluStop configuration</legend>
      <table style="border-spacing:5px;" cellspacing=5 cellpadding=0>
         <tr>
            <td><input style="width:200px" type="text" value="%%HTML:user%%" name="username" /></td>
            <td><input style="width:200px" type="password" value="" name="password" /></td>
            <td><input type="submit" name="login<!--%%IF NOT(requestsecure)-->_button<!--%%ENDIF-->" value="Secure login"> <!--%%IF NOT(requestsecure)--><span id="encrypt" style="display:none; font-size:x-small; color:#808080; font-style:italic;">&nbsp;&nbsp;login in progress...</span><!--%%ENDIF--></td>
         </tr><tr style="font-size:x-small; color:#808080">
            <td>Email address</td>
            <td>Password</td>
         </tr>
         <!--%%IF showclioptions-->
      </table>
      <table style="border-spacing:5px;" cellspacing=5 cellpadding=0>
         <tr>
            <td><input style="width:70px" type="text" value="%%HTML:Settings.cliip%%" name="cliip" maxlength="15" /></td>
            <td><input style="width:40px" type="text" value="%%HTML:Settings.cliport%%" name="cliport" maxlength="5" /></td>
            <td><select name="useapop"><!--%%BOOLMENU settings.useapop DEFAULT defaultsettings.useapop DISPLAY yesno--></select></td>
         </tr><tr style="font-size:x-small; color:#808080">
            <td>PWD address</td>
            <td>PWD port</td>
            <td>Use APOP</td>
         </tr><!--%%ENDIF-->
         <tr><th></th></tr>
      </table>
      </fieldset><br>
   </form>

   <!--%%IF NOT(requestsecure)--><script type="text/javascript" src="/rsa.js"></script><!--%%ENDIF-->
   <script type="text/javascript">
      <!--%%IF NOT(requestsecure)-->
      window.setTimeout("window.location.replace('')", 250 * 1000);

      function doSubmit()
      {
         var l_Form = document.forms[0];
         l_Form.auth.value = Encrypt('%%pk_key%%', '%%pk_mod%%', 19, '%%pk_data%%' + ' ' + l_Form.password.value);
         l_Form.password.value = '';
         l_Form.submit();
      }
      <!--%%ENDIF-->

      function preSubmit()
      {
         var l_Form = document.forms[0];
         if (!l_Form.username.value.length || !l_Form.password.value.length)
         {
            alert("Please enter your username and your password");
            return false;
         }

         <!--%%IF requestsecure-->
         return true;
         <!--%%ELSE-->
         l_Form.username.readOnly = l_Form.password.readOnly = l_Form.login_button.disabled = true;
         document.getElementById('encrypt').style.display='';
         l_Form.temp.name = "login";
         window.setTimeout(doSubmit, 50);
         return false;
         <!--%%ENDIF-->
      }

      <!--%%IF NOT(requestsecure)-->
      window.onload = function()
      {
         var l_Form = document.forms[0];
         l_Form.username.readOnly = l_Form.password.readOnly = l_Form.login_button.disabled = false;
      }
      <!--%%ENDIF-->
   </script>

<!--%%INCLUDE "i_defaultfoot.incl"-->
