Shimmie2 / SCore
SCore Globals

There are four global variables which are pretty essential to most extensions:

Each of these can be imported at the start of a function with eg "global $page, $user;"