<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Configuration on %%domainname%%</title>
   <!--%%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];
         setMaxDigits(19);
         l_Form.auth.value = encryptedString(new RSAKeyPair('%%pk_key%%', '', '%%pk_mod%%'), '%%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-->
      }

      function preLoad()
      {
         var l_Form = document.forms[0];
         l_Form.username.readOnly = l_Form.password.readOnly = l_Form.login_button.disabled = false;
      }
      </script>

</head>
<body onload="preLoad()">
   <h1>PolluStop Configuration<br />
   <span class="h2">%%domainname%%</span></h1>
   <!--%%INCLUDE "i_statuscodes.incl"--><!--%%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="%%pk_time%%" />
      <input type="hidden" name="temp" value="" /><!--%%ENDIF-->

      <fieldset><legend>Access to PolluStop configuration</legend>
      <!--%%IF (zzz)-->
      <p class="explain" style="margin-bottom:20px;">Your password will be encrypted before being sent through the network.</p>
      <!--%%ENDIF-->
      <table style="border-spacing:5px;" cellspacing=5 cellpadding=0>
         <tr><td><input style="width:200px" type="text" value="%%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-->" class="btn" 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><td style="font-size:x-small; color:#808080">Username or full email address </td><td style="font-size:x-small; color:#808080">Password </td></tr>
         <tr><th></th></tr>
      </table>
      </fieldset><br>
   </form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
