private function install_admin_user()
 {
     $user_salt = ipm_rand_str(64);
     $password = $this->session_data('admin_password');
     $salt = $this->session_data('site_salt');
     $hashed_password = hash_hmac('sha512', $password . $user_salt, $salt);
     $stmt = $this->db->prepare("INSERT INTO `users` (\n\t\t\t`name`, `username`, `password`, `salt`, `email`, `authentication_id`, `user_level`, `allow_login`, `site_id`\n\t\t\t) VALUES (:name, :username, :password, :salt, :email, 1, 2, 1, 1)");
     $name = $this->session_data('admin_name');
     $username = $this->session_data('admin_username');
     $email = $this->session_data('admin_email');
     $stmt->bindParam(':name', $name, PDO::PARAM_STR);
     $stmt->bindParam(':username', $username, PDO::PARAM_STR);
     $stmt->bindParam(':password', $hashed_password, PDO::PARAM_STR);
     $stmt->bindParam(':salt', $user_salt, PDO::PARAM_STR);
     $stmt->bindParam(':email', $email, PDO::PARAM_STR);
     try {
         $stmt->execute();
     } catch (Exception $e) {
         die($e->getMessage());
     }
 }
" size="50" /></p>		
				<p>Database Name<br /><input autocomplete="off" type="text" name="dbname" value="<?php 
    echo ipm_htmlentities($ipm_install->form_data('dbname'));
    ?>
" size="50" /></p>		
				<p>Database Username<br /><input autocomplete="off" type="text" name="dbusername" value="<?php 
    echo ipm_htmlentities($ipm_install->form_data('dbusername'));
    ?>
" size="50" /></p>		
				<p>Database Password<br /><input autocomplete="off" type="password" name="dbpassword" value="<?php 
    echo ipm_htmlentities($ipm_install->form_data('dbpassword'));
    ?>
" size="50" /></p>		
				
				<p>Site Salt<br /><input autocomplete="off" type="text" name="site_salt" value="<?php 
    echo ipm_htmlentities($ipm_install->form_data('site_salt', ipm_rand_str()));
    ?>
" size="50" /></p>		
				<div class="right">
					<p class="seperator"><button type="submit" name="next">Next</button></p>
				</div>
			</form>
			<?php 
}
?>
			
			<br />
			<p><a href="check_system.php" class="button">Back</a></p>
			
		</div>
	</div>