removed closing php tags from non-view files

avoid generating output that can destroy for example image data.
Closing PHP tags are not necessary and it is good practice to avoid them in files that contain only PHP code.
For the graph.php this is already done in #1