Skip to content

Changelogs up to v3.0.9

by Ryan Reed on November 8th, 2010
    v3.0.9
    Special Thanks to Oliver Wichert for the bug fixes/reports, suggestions, and code additions. Oliver provided great support during this versions

  • Fixed an issue where the cookie should have been escaped AFTER the database connection and not before
  • Fixed “value” for theme selection
  • Modified how inc/protect.php redirects to inc/login.php
  • Modified how the image links are displayed to fix an animation issue with FancyBox
  • Added an admin.css used only in the admin panel
  • Added a resize ability. This will cut down on having to load large original size images, speeding up the gallery. This will require more processing time by PHP (Thanks to Oliver Wichert)
  • Added the imageID in the alt of the current templates
  • Added the variables $albumIcon, $albumLink, $originalImage, $resizedImage, $thumbnailImagefor use in templates
  • Added htmlHead.php in templates for adding custom javascript, css, etc.
  • Files Modified: admin.php, inc/includes.php, inc/protect.php, install.php, template/admin.css, template/darkum/albumEntry.php, template/darkum/imageEntry.php, template/default/albumEntry.php, template/default/imageEntry.php


    v3.0.8

    Important Note: This upgrade is renaming the main gallery file, gallery.php, to index.php. If you’ve modified index.php previously or have a pre-existing index.php file, you will need to backup the file

  • Closed an SQL injection exploit. Special thanks to Salvatore Fresta for the information (http://www.salvatorefresta.net/)
  • Cleaned up the admin panel code a bit
  • Added a template system, replacing the old css system. See http://www.thephig.com/forums/viewtopic.php?f=8&t=4 for theme specific information
  • Added an imageID view for viewing specific images rather then a gallery, providing more information about the image (ie index.php?imageID=20). Opens possibility of comments in future
  • Added a check if the gallery_images directory has no albums from the admin panel
  • Fixed an issue with displaying the number of images per page and albums per page in the “General Administration” of the admin panel
  • Fixed the tag search, was not correctly showing an action of self
  • Fixed the value of the selected theme dropdown in General Administration
  • Fixed AlbumsPerPage missing the > end of the tag
  • Updated install.php so the user is not required to put in the gallery path, it is determined by the script itself
  • Updated install.php to check for all database tables when installing instead of just ‘thephig_albums’
  • Files Modified: admin.php, gallery.php (now index.php), inc/includes.php, install.php, template/*

    v3.0.7

  • Added check if the thumbnail exists for displaying an image
  • Fixed an issue with creating album icons
  • Files Modified: admin.php, gallery.php, inc/variables.php

    v3.0.6

    Important Note: If you are upgrading from versions v3.0.0 – v3.0.5 to v3.0.6, you must rename upgrade-v3.0.6.php.bak to upgrade-v3.0.6.php, run script, and delete once complete. Fresh installs remain unchanged

  • Disabled gmaps for tags
  • Typecasted the page interger to hopefully increase speed (Thanks to Chris Teekema for the suggestion)
  • Changed the album links to use the albumID rather then the album name. Allows for typecasting and skipping SQL injection checks
  • Added a check to see if there are any albums in the database yet (ie a new gallery install)
  • Added a debug option to view certain statistics such as memory usage, cpu usage, time to execute, etc. for dev
  • Modified the darkum.css to correct the display of the order links in the admin panel
  • Modified the way cookies are set as to not leave the username and password as cookies, using a one time password per login (Thanks to Chris Teekema)
  • Changed the password storage from MD5 to SHA1, a little bit more secure. This will require the running of a one time only upgrade script to modify the database as needed.
  • Added a check for the newest version in the admin panel
  • Files Modified: admin.php, css/default.css, css/darkum.css, gallery.php, inc/functions.php, inc/includes.php, inc/login.php, inc/logout.php, inc/protect.php inc/variables.php, install.php

    v3.0.5

  • Added support for PNG images
  • Modified the check for images in the folders from the admin file, making it easier to read
  • Modified the reading of exif data so that only data read from jpg images are stored in the database
  • Fixed an issue where the database starts with 0 albums
  • Added option for a dark theme or default white theme
  • Files Modified: admin.php, functions.php, install.php, inc/post.php, inc/variables.php

    v3.0.4

  • Fixed an issue where the mysql_error was giving the database username and host when it encountered a mysql error
  • Added the albumsPerPage for pagination in the albums view
  • Fixed the displaying of the “All” link for the pagination, was not displaying when on the last page
  • Files Modified: admin.php, gallery.php, inc/functions.php, inc/post.php, inc/variables, install.php

    v3.0.3

  • ReedGal has been renamed to ThePhig (as in PHP Image Gallery)
  • Added orientation to the database for a possible future release
  • Files Modified: Pretty much all files

    v3.0.2

    Special thanks to Chris Teekema and Dan Majewicz for performing intrusion and penetration testing

  • Added captcha to the login.php file to help prevent bruteforce of the admin
  • Added a div for styling the main albums view from the images view with #galleryAlbums and #galleryImages
  • Modified admin cookies to be from the $galleryPath and not the root of the site
  • Modified how the includes determines what is actually included (no need to show the prettyPhoto scripts when shutterset is selected)
  • Added prettyPhoto and fancybox to the overlay possibilities
  • Added stripslashes to the $imageTitle when displaying images
  • Files Modified: admin.php, gallery.php, inc/captcha.php, inc/includes.php, inc/login.php, inc/logout.php, install.php

    v3.0.1

  • Escaped a $_GET variable in the post.php file for security reasons
  • Modified the display of the gallery and admin for displaying file descriptions with apostrophes
  • File Modified: inc/post.php, gallery.php

    v3.0.0

  • Rewrote ReedGal from the group up for MySQL db support
  • Added various features such as google maps support, reordering of albums, etc

    v2.4.2

  • Moved the album title to gallery.php so that displays properly when included in another file
  • Fixed the display of the albumtitle, css referred to it as an ID but it was actually a class
  • Sanitized the display of exif data
  • Changed how certain variables were being used, hopefully a little more effecient
  • Added check to ensure $page is numeric and not less then 0
  • Made the sanitizing of input a tad easier
  • Modified how the album info, image titles, and album icon creations are determined from POST data
  • Files Modified: css/reedgal.css, functions.php, gallery.php, template/header.php

    v2.4.1

  • Added pagination ability
  • Modified where version is stored
  • Files Modified: css/reedgal.css, gallery.php, rebuildCache.php, template/footer.php

    v2.4.0

  • Change the image’s <a title> to the actual ImageTitle instead of always using the filename
  • Added ability to modify already existing info.txt
  • Moved ReedGal’s css and javascript to includes.php for portability (see next line)
  • Modified gallery.php to allow the gallery to be added to a preexisting site layout with include(“gallery.php”);
  • Added ability to use another image overlay javascript library
  • Added ability to create album icon from image (not very customizable yet)
  • Added shutterset to the rebuildCache links for easier viewing
  • Modified display of albums/images to follow HTML standards more closely
  • Made it possible to rename rebuildCache.php to anything for extra security

    v2.3.6

  • Removed function createAlbumIcon
  • Added ability to edit the title of an image (must be done one at a time currently)

    v2.3.5

  • Sanitized certain variable to protect against cross client scripting (Thanks to Chris Teekema)
  • Removed certain variables that were being sanitized multiple times

    v2.3.4

  • Removed references to a resize feature that was never implemented

    v2.3.3

  • Modified how each element in rebuildCache.php is displayed, creating a list
  • Removed displaying the album icon IN the album of rebuildCache as it’s displayed on the main page already
  • Fixed the title of the pages to use the title in info.txt for each album instead of folder name

    v2.3.2

  • Broke out common functions into a separate file, functions.php
  • Implemented a new function for creating an icon for an album from a picture. It is not quite ready for implementation.

    v2.3.1

  • Fixed a bug in the display of the albums when no info.txt file is found
  • Added ability to create info.txt from rebuildCache.php
  • Changed the display of the title and album title in the header so they could be customized separately
  • Revamped rebuildCache.php so that it properly checks for every condition of _exif.txt and _tn.jpg existing or not existing
  • Moved the creation of thumbnails and exif.txt into functions for using elsewhere

From → Changelogs

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS