Adding defined('MOODLE_INTERNAL') || die in files

Adding the function defined('MOODLE_INTERNAL') || die(); in all files
except update_status.php as this breaks down the block with this
function. Would add the function in that file at a later stage.