Added accept to input validation.
Added photo types for gallery, changed db, added in add_photo.php.
Gallery was destroyed.
All pages with showing information was changed - added sorting by columns.