smr.inc.php: remove globals in smrBBCode
smr.inc.php: remove globals in smrBBCode

Use player and account from the Session instead of using globals.
Checking if a player or account `is_object` is equivalent to checking
if the Session `hasGame` or `hasAccount` respectively.

hemberger/smr,hemberger/smr,hemberger/smr,smrealms/smr,smrealms/smr,hemberger/smr,smrealms/smr