Security error! The file you tried to include is not on the approved file list. To include this file you must edit Gallery's index.php and add view_photo. php to the $safe_to_include array