plugins/SpecialUserFuncs.php
changeset 58 8f532d8ab5f5
parent 57 b354deeaa4c4
child 60 71b50f8c8f85
equal deleted inserted replaced
48:fc9762553a3c 58:8f532d8ab5f5
   851           </tr>
   851           </tr>
   852         </table>
   852         </table>
   853       </div>
   853       </div>
   854     </form>
   854     </form>
   855     <script type="text/javascript">
   855     <script type="text/javascript">
   856     disableJSONExts();
   856     if ( !KILL_SWITCH )
       
   857     {
       
   858       disableJSONExts();
   857       str = '';
   859       str = '';
   858       for(i=0;i<keySizeInBits/4;i++) str+='0';
   860       for(i=0;i<keySizeInBits/4;i++) str+='0';
   859       var key = hexToByteArray(str);
   861       var key = hexToByteArray(str);
   860       var pt = hexToByteArray(str);
   862       var pt = hexToByteArray(str);
   861       var ct = rijndaelEncrypt(pt, key, "ECB");
   863       var ct = rijndaelEncrypt(pt, key, "ECB");
   887           alert('The key is messed up\nType: '+typeof(cryptkey)+len);
   889           alert('The key is messed up\nType: '+typeof(cryptkey)+len);
   888         }
   890         }
   889       }
   891       }
   890       function runEncryption()
   892       function runEncryption()
   891       {
   893       {
       
   894         var frm = document.forms.resetform;
   892         pass1 = frm.pass.value;
   895         pass1 = frm.pass.value;
   893         pass2 = frm.pass_confirm.value;
   896         pass2 = frm.pass_confirm.value;
   894         if ( pass1 != pass2 )
   897         if ( pass1 != pass2 )
   895         {
   898         {
   896           alert('The passwords you entered do not match.');
   899           alert('The passwords you entered do not match.');
   915           frm.pass.value = "";
   918           frm.pass.value = "";
   916           frm.pass_confirm.value = "";
   919           frm.pass_confirm.value = "";
   917         }
   920         }
   918         return true;
   921         return true;
   919       }
   922       }
       
   923     }
   920     </script>
   924     </script>
   921     <?php
   925     <?php
   922     $template->footer();
   926     $template->footer();
   923     return true;
   927     return true;
   924   }
   928   }