<?php
########################################################################
#
# Project: FreeGallery
# URL: http://www.nabber.org/projects/
# E-mail: hide@address.com
#
# Copyright: (C) 2003-2005, Neil McNab
# License: GNU General Public License Version 2
# (http://www.gnu.org/copyleft/gpl.html)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Filename: $URL: https://freegallery.svn.sourceforge.net/svnroot/freegallery/releases/freegallery-2.0/includes/gallery_decode.php $
# Author(s): Neil McNab
# Last Updated: $Date: 2010-05-21 16:53:57 -0700 (Fri, 21 May 2010) $
#
# Description:
# This file allows for importing of Gallery objects.
#
########################################################################
include_once("gallery/classes/Album.php");
include_once("gallery/classes/AlbumItem.php");
include_once("gallery/classes/Image.php");
function get_object($filepath)
{
$filehandle = fopen($filepath,"r");
while (!feof($filehandle))
{
$data .= fgets($filehandle);
}
fclose($filehandle);
$Item = unserialize($data);
//print_r($Item);
return $Item;
}
?>