plugins/admin/UserManager.php
changeset 229 b2f985e4cef3
parent 219 96524a56d475
child 256 f8356d9c3481
--- a/plugins/admin/UserManager.php	Fri Nov 23 17:59:24 2007 -0500
+++ b/plugins/admin/UserManager.php	Sat Nov 24 00:53:23 2007 -0500
@@ -68,7 +68,7 @@
         $password = false;
         if ( $_POST['changing_pw'] == 'yes' )
         {
-          $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+          $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
           $key_hex_md5 = $_POST['crypt_key'];
           $key_hex = $session->fetch_public_key($key_hex_md5);
           if ( $key_hex )
@@ -348,7 +348,7 @@
     else
     {
       // Get the current session information so the user doesn't get logged out
-      $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+      $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
       $sk = md5(strrev($session->sid_super));
       $qb = $db->sql_query('SELECT session_key,salt,auth_level,source_ip,time FROM '.table_prefix.'session_keys WHERE session_key=\''.$sk.'\' AND user_id='.$session->user_id.' AND auth_level='.USER_LEVEL_ADMIN);
       if ( !$qb )
@@ -544,21 +544,12 @@
    * Constructor.
    */
   
-  function __construct()
+  function Admin_UserManager_SmartForm()
   {
     $this->uuid = md5( mt_rand() . microtime() );
   }
   
   /**
-   * PHP4 constructor.
-   */
-  
-  function Admin_UserManager_SmartForm()
-  {
-    $this->__construct();
-  }
-  
-  /**
    * Renders and returns the finished form.
    * @return string
    */