broke share
Revert bc8ee4b..292fb38

This rolls back to commit bc8ee4bc6e91a3d84ec40ec5fa85e7bc5acc101b.
Revert 33dd53f..679ee9e

This rolls back to commit 33dd53f96f10223cc8b6b191b30dec8f1b8a7605.
fixed sharing issue FOR REAL and some redirection

redirection fixed in share.php and unshare.php
more fixes to sharing

added php tags where they were missing in sharing.php