Changed the first couple of lines to only require global.php and professor authentication