fixed isadmin so that it checks once on each page view if the user is an admin
fixed isadmin so that it checks once on each page view if the user is an admin

fixed check_gd_version to properly identify bundled gd versions (old
check_gd_version was returning 0 instead of 2 for bundled gd).

dilawar/moodle