Added moodle or die code to top of non-view files