plugins/SpecialUserFuncs.php
changeset 304 e2cb5f1432c8
parent 271 f088805540ae
parent 292 b3cfaf0a505c
child 326 ab66d6d1f1f4
--- a/plugins/SpecialUserFuncs.php	Sun Dec 02 15:27:21 2007 -0500
+++ b/plugins/SpecialUserFuncs.php	Sun Dec 02 16:00:10 2007 -0500
@@ -525,7 +525,7 @@
         
         if ( $_POST['use_crypt'] == 'yes' )
         {
-          $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+          $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
           $crypt_key = $session->fetch_public_key($_POST['crypt_key']);
           if ( !$crypt_key )
           {
@@ -1235,7 +1235,7 @@
     
     if ( isset($_POST['do_stage2']) )
     {
-      $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+      $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
       if($_POST['use_crypt'] == 'yes')
       {
         $crypt_key = $session->fetch_public_key($_POST['crypt_key']);