Fixed CSS indents
Minor changes to upload.php
Fixed inline JS in public template
Fixed one line if {} in core share.js