includes/sessions.php
changeset 13 fdd6b9dd42c3
parent 1 fe660c52c48f
child 16 64e0d3d4cf14
equal deleted inserted replaced
12:c96a9b56f16c 13:fdd6b9dd42c3
  1285    * @param string $password This should be unencrypted.
  1285    * @param string $password This should be unencrypted.
  1286    * @param string $email
  1286    * @param string $email
  1287    * @param string $real_name Optional, defaults to ''.
  1287    * @param string $real_name Optional, defaults to ''.
  1288    */
  1288    */
  1289    
  1289    
  1290   function create_user($username, $password, $email, $real_name = '') {
  1290   function create_user($username, $password, $email, $real_name = '')
       
  1291   {
  1291     global $db, $session, $paths, $template, $plugins; // Common objects
  1292     global $db, $session, $paths, $template, $plugins; // Common objects
  1292     
  1293     
  1293     // Initialize AES
  1294     // Initialize AES
  1294     $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
  1295     $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
  1295     
  1296