Changed method for logging user IP.
Fixed user icon on index.php.