diff -Naur gallery-1.5.3/add_comment.php gallery-1.5.4/add_comment.php
--- gallery-1.5.3/add_comment.php	2006-04-06 13:49:10.000000000 +0200
+++ gallery-1.5.4/add_comment.php	2006-04-06 13:49:10.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_comment.php,v 1.57.2.2 2006/04/06 11:49:10 jenst Exp $
+ * $Id: add_comment.php 13409 2006-04-06 11:49:10Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/add_photos_frame.php gallery-1.5.4/add_photos_frame.php
--- gallery-1.5.3/add_photos_frame.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/add_photos_frame.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_photos_frame.php,v 1.11.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: add_photos_frame.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/add_photos.php gallery-1.5.4/add_photos.php
--- gallery-1.5.3/add_photos.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/add_photos.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_photos.php,v 1.82.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: add_photos.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/add_photos_refresh.php gallery-1.5.4/add_photos_refresh.php
--- gallery-1.5.3/add_photos_refresh.php	2004-01-30 02:53:21.000000000 +0100
+++ gallery-1.5.4/add_photos_refresh.php	2006-05-02 11:59:13.000000000 +0200
@@ -1,3 +1,8 @@
+<?php
+/**
+* $Id: add_photos_refresh.php 13579 2006-05-02 09:59:13Z jenst $
+*/
+?>
 <html>
 <head>
 <title>Refresh</title>
diff -Naur gallery-1.5.3/administer_startpage.php gallery-1.5.4/administer_startpage.php
--- gallery-1.5.3/administer_startpage.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/administer_startpage.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: administer_startpage.php,v 1.5.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: administer_startpage.php 13338 2006-03-27 15:32:14Z jenst $
  *
  */
 ?>
diff -Naur gallery-1.5.3/admin-page.php gallery-1.5.4/admin-page.php
--- gallery-1.5.3/admin-page.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/admin-page.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: admin-page.php,v 1.18.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: admin-page.php 13338 2006-03-27 15:32:14Z jenst $
  *
  */
 ?>
diff -Naur gallery-1.5.3/album_permissions.php gallery-1.5.4/album_permissions.php
--- gallery-1.5.3/album_permissions.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/album_permissions.php	2006-04-11 00:19:30.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: album_permissions.php,v 1.63.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: album_permissions.php 13433 2006-04-10 22:19:30Z jenst $
  */
 ?>
 <?php
@@ -65,6 +65,7 @@
 
 foreach ($submit as $perm => $action) {
     if(isset($action) && isset($actionUid)) {
+        $action = unhtmlentities($action);
         if($action == '-->') {
             $gallery->album->setPerm($perm, $actionUid, true);
             $changed++;
diff -Naur gallery-1.5.3/albums.php gallery-1.5.4/albums.php
--- gallery-1.5.3/albums.php	2006-04-05 00:13:34.000000000 +0200
+++ gallery-1.5.4/albums.php	2006-04-05 00:13:34.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: albums.php,v 1.218.2.2 2006/04/04 22:13:34 jenst Exp $
+ * $Id: albums.php 13362 2006-04-04 22:13:34Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/AUTHORS gallery-1.5.4/AUTHORS
--- gallery-1.5.3/AUTHORS	2005-08-11 14:55:37.000000000 +0200
+++ gallery-1.5.4/AUTHORS	2005-08-11 14:55:37.000000000 +0200
@@ -1,4 +1,4 @@
-$Id: AUTHORS,v 1.25 2005/08/11 12:55:37 jenst Exp $
+$Id: AUTHORS 11306 2005-08-11 12:55:37Z jenst $
 
 Many people have dedicated their time to making Gallery what it is
 today.  Here is a list of folks in alphabetical order who have
diff -Naur gallery-1.5.3/block-random.php gallery-1.5.4/block-random.php
--- gallery-1.5.3/block-random.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/block-random.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: block-random.php,v 1.18.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: block-random.php 13338 2006-03-27 15:32:14Z jenst $
  */
 /*
  * This block selects a random photo for display.  It will only display photos
diff -Naur gallery-1.5.3/captionator.php gallery-1.5.4/captionator.php
--- gallery-1.5.3/captionator.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/captionator.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: captionator.php,v 1.70.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: captionator.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/ChangeLog gallery-1.5.4/ChangeLog
--- gallery-1.5.3/ChangeLog	2006-04-07 00:38:00.000000000 +0200
+++ gallery-1.5.4/ChangeLog	2006-08-15 14:00:40.000000000 +0200
@@ -1,3 +1,128 @@
+2006-08-15 Jens Tkotz <jens@peino.de>
+
+ *** Re-Release 1.5.4 ***
+
+ * Forgot tools folder.
+
+ * Fixed very litle bug sneaked in b15.
+
+2006-08-14 Jens Tkotz <jens@peino.de>
+
+ ***  Release: 1.5.4 ***
+
+
+2006-08-14 Jens Tkotz <jens@peino.de> 1.5.4-svn-b17
+
+ * Fix: #1444556;
+
+2006-08-14 Jens Tkotz <jens@peino.de> 1.5.4-svn-b16
+
+ * Change: _() to gTranslate at various places.
+
+2006-08-14 Jens Tkotz <jens@peino.de> 1.5.4-svn-b15
+
+ * Change: Use non-table tabs from 1.6
+
+ * HTML fixes in setup/config_data.inc
+
+ * Adjustments in skins: hotred, yellow, jenskin, white1
+
+ * Some indenting.
+
+ * if galleryLink as empty target, dont use href=
+
+2006-08-13 Jens Tkotz <jens@peino.de> 1.5.4-svn-b14
+
+ * Change: Removed "No Votes messages".
+
+ * Change: Show link to full results only if there are results.
+
+2006-08-13 Jens Tkotz <jens@peino.de> 1.5.4-svn-b13
+ 
+ * Fix: Links in voting box were wrong.
+
+ * CSS changes in view_album.php
+
+ * Jensskin updates.
+
+2006-08-02 Jens Tkotz <jens@peino.de> 1.5.4-svn-b12
+
+ * Fix: JS warning in ImageMap when no ImageMap is available.
+   Thanks to StephaneT from forums.
+
+ * Little CSS changes in jenskin.
+
+2006-07-29 Jens Tkotz <jens@peino.de> 1.5.4-svn-b11
+
+ * Fix: Order of captions was mixed in IE and Opera when given direct in the form.
+	Fixed by using this.nextSibling in insertBefore()
+
+2006-07-21 Jens Tkotz <jens@peino.de> 1.5.4-svn-b10
+
+ * Fix: drawSelect in slideshow misbehaved and selected the wrong transition.
+
+2006-07-12 Jens Tkotz <jens@peino.de> 1.5.4-svn-b9
+
+ * Fix: Little warning in configwizard ; occured in first install.
+
+2006-06-19 Jens Tkotz <jens@peino.de> 1.5.4-svn-b8
+
+ * Fix: init_language() is not called redundant in init.php
+
+ * Change: When user updates his language, the parent page is reloaded with the new language.
+
+2006-06-19 Jens Tkotz <jens@peino.de> 1.5.4-svn-b7
+
+ * PHP5 fix:
+   In classes/Mail/htmlMimeMail.php and do_command.php was $HTTP_SERVER_VARS used,
+   which is not longer present in PHP5
+
+ * Fix: Correct use of $MIN_PHP_MAJOR_VERSION in lib/setup.php
+
+ * SVN-Fix:
+   Date of last change in Version.php was wrong extracted.
+ 
+2006-05-10 Jens Tkotz <jens@peino.de> 1.5.4-svn-b6
+
+ * Added php-gettext
+   https://savannah.nongnu.org/projects/php-gettext/
+
+2006-05-02 Jens Tkotz <jens@peino.de> 1.5.4-svn-b5
+
+ * Updated and/or added $Id SVN Keywords.
+
+2006-04-26 Jens Tkotz <jens@peino.de> 1.5.4-svn-b4
+
+ * Fix: Often bots access the ecardform without having correct photo loaded etc.
+        This leaves unnecessary Errormessage in Apaches logfile
+
+   Thanks to Peter Schumacher from forums.
+
+ * Fix: Only do userinput sanitation if value contains html tags.
+
+ * FIX: Compressing an Image with having maximum filesize failed.
+   Thanks to Scott Barnes (atomsmith) from forums.
+
+ * FIX: Just compressing(no resize) an Image with NetPBM failed.
+
+ * Changing Checks in setup to SVN.
+
+2006-04-22 Jens Tkotz <jens@peino.de> 1.5.4-cvs-b3
+
+ * Fix: Name of not logged in commenters was displayed as "anonymous" instead of entered name.
+   Thanks to Mottie from forum.
+
+2006-04-13 Jens Tkotz <jens@peino.de> 1.5.4-cvs-b2
+
+ * Fix: Gallery uses the same XML_HTMLSax3 library as postNuke does.
+	Thus a redeclare error occured.
+   Thanks to Christian Ruffer.
+
+2006-04-11 Jens Tkotz <jens@peino.de> 1.5.4-cvs-b1
+
+ * Fix: Album Permissions were not working proper.
+   Thanks to Jonathan Stanley (SHS` in IRC)
+
 2006-04-06 Chris Kelly <ckdake@ckdake.com> 1.5.3
 
  * Release: 1.5.3
diff -Naur gallery-1.5.3/classes/AlbumDB.php gallery-1.5.4/classes/AlbumDB.php
--- gallery-1.5.3/classes/AlbumDB.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/AlbumDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: AlbumDB.php,v 1.47.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: AlbumDB.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/AlbumItem.php gallery-1.5.4/classes/AlbumItem.php
--- gallery-1.5.3/classes/AlbumItem.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/AlbumItem.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: AlbumItem.php,v 1.114.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: AlbumItem.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/Album.php gallery-1.5.4/classes/Album.php
--- gallery-1.5.3/classes/Album.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/Album.php	2006-05-02 11:59:13.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Album.php,v 1.285.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: Album.php 13579 2006-05-02 09:59:13Z jenst $
  */
 ?>
 <?php
@@ -1690,11 +1690,22 @@
     }
 
     function &getPhoto($index) {
+	global $errortext;
+
         if ($index >= 1 && $index <= sizeof($this->photos)) {
-            return $this->photos[$index-1];
-        } else {
-            echo gallery_error(sprintf(_("Requested index [%d] out of bounds [%d]"),$index,sizeof($this->photos)));
+            $photo = & $this->photos[$index-1];
         }
+        else {
+            $errortext = sprintf(
+                gTranslate('core',"Requested index [%d] out of bounds [%d]. Gallery could not load the requested album item."),
+                $index,
+                sizeof($this->photos)
+            );
+            echo debugMessage($errortext, __FILE__, __LINE__);
+            $photo = false;
+        }
+
+	return $photo;
     }
 
     function getPhotoIndex($id) {
diff -Naur gallery-1.5.3/classes/Comment.php gallery-1.5.4/classes/Comment.php
--- gallery-1.5.3/classes/Comment.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/Comment.php	2006-04-22 23:09:30.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Comment.php,v 1.21.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: Comment.php 13504 2006-04-22 21:09:30Z jenst $
  */
 ?>
 <?php
@@ -57,7 +57,7 @@
 		$name = '';
 		$user = $gallery->userDB->getUserByUid($this->UID);
 		
-		if  ($gallery->app->comments_anonymous == 'no') {
+		if (!$user->isPseudo()) {
 		    $name = $user->printableName($gallery->app->comments_display_name);
 		}
 		
diff -Naur gallery-1.5.3/classes/database/mysql/Database.php gallery-1.5.4/classes/database/mysql/Database.php
--- gallery-1.5.3/classes/database/mysql/Database.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/database/mysql/Database.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Database.php,v 1.12.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: Database.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/Database.php gallery-1.5.4/classes/Database.php
--- gallery-1.5.3/classes/Database.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/Database.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Database.php,v 1.11.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: Database.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/EverybodyUser.php gallery-1.5.4/classes/EverybodyUser.php
--- gallery-1.5.3/classes/EverybodyUser.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/EverybodyUser.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: EverybodyUser.php,v 1.14.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: EverybodyUser.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/gallery/UserDB.php gallery-1.5.4/classes/gallery/UserDB.php
--- gallery-1.5.3/classes/gallery/UserDB.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/gallery/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.40.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/gallery/User.php gallery-1.5.4/classes/gallery/User.php
--- gallery-1.5.3/classes/gallery/User.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/gallery/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: User.php,v 1.24.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/geeklog/UserDB.php gallery-1.5.4/classes/geeklog/UserDB.php
--- gallery-1.5.3/classes/geeklog/UserDB.php	2006-01-06 07:38:05.000000000 +0100
+++ gallery-1.5.4/classes/geeklog/UserDB.php	2006-05-02 12:22:26.000000000 +0200
@@ -16,6 +16,8 @@
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: UserDB.php 13580 2006-05-02 10:22:26Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/geeklog/User.php gallery-1.5.4/classes/geeklog/User.php
--- gallery-1.5.3/classes/geeklog/User.php	2006-01-06 07:38:05.000000000 +0100
+++ gallery-1.5.4/classes/geeklog/User.php	2006-05-02 12:22:26.000000000 +0200
@@ -16,6 +16,8 @@
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: User.php 13580 2006-05-02 10:22:26Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/HTML/table.php gallery-1.5.4/classes/HTML/table.php
--- gallery-1.5.3/classes/HTML/table.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/HTML/table.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: table.php,v 1.7.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: table.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/HTML_Safe/Safe.php gallery-1.5.4/classes/HTML_Safe/Safe.php
--- gallery-1.5.3/classes/HTML_Safe/Safe.php	2006-03-28 12:54:52.000000000 +0200
+++ gallery-1.5.4/classes/HTML_Safe/Safe.php	2006-04-13 01:48:27.000000000 +0200
@@ -11,7 +11,7 @@
  * @author     Roman Ivanov <thingol@mail.ru>
  * @copyright  2004-2005 Roman Ivanov
  * @license    http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
- * @version    CVS: $Id: Safe.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
+ * @version    CVS: $Id: Safe.php 13455 2006-04-12 23:48:27Z jenst $
  * @link       http://pear.php.net/package/HTML_Safe
  */
 
@@ -19,8 +19,10 @@
 /**
  * This package requires HTMLSax3 package
  */
-require_once (dirname(dirname(__FILE__)) .'/XML_HTMLSax3/HTMLSax3.php');
 
+if (! class_exists('xml_htmlsax3_stateparser')) {
+    require_once(dirname(dirname(__FILE__)) .'/XML_HTMLSax3/HTMLSax3.php');
+}
 
 /**
  *
diff -Naur gallery-1.5.3/classes/Image.php gallery-1.5.4/classes/Image.php
--- gallery-1.5.3/classes/Image.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/Image.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Image.php,v 1.72.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: Image.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/LoggedInUser.php gallery-1.5.4/classes/LoggedInUser.php
--- gallery-1.5.3/classes/LoggedInUser.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/LoggedInUser.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: LoggedInUser.php,v 1.10.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: LoggedInUser.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/Mail/htmlMimeMail.php gallery-1.5.4/classes/Mail/htmlMimeMail.php
--- gallery-1.5.3/classes/Mail/htmlMimeMail.php	2005-10-26 15:34:40.000000000 +0200
+++ gallery-1.5.4/classes/Mail/htmlMimeMail.php	2006-06-19 14:04:01.000000000 +0200
@@ -1,9 +1,14 @@
 <?php
 /**
+ * Gallery SVN info
+ * $Id: htmlMimeMail.php 13848 2006-06-19 12:04:01Z jenst $
+*/
+
+/**
  * Filename.......: class.html.mime.mail.inc
  * Project........: HTML Mime mail class
- * Last Modified..: $Date: 2005/10/26 13:34:40 $
- * CVS Revision...: $Revision: 1.5 $
+ * Last Modified..: $Date: 2006-06-19 14:04:01 +0200 (Mon, 19 Jun 2006) $
+ * CVS Revision...: $Revision: 13848 $
  * Copyright......: 2001, 2002 Richard Heyes
  * @package Mail
 */
@@ -132,10 +137,10 @@
 		/**
         * Defaults for smtp sending
         */
-		if (!empty($GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'])) {
-			$helo = $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'];
-		} elseif (!empty($GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'])) {
-			$helo = $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'];
+		if (!empty($_SERVER['HTTP_HOST'])) {
+			$helo = $_SERVER['HTTP_HOST'];
+		} elseif (!empty($_SERVER['SERVER_NAME'])) {
+			$helo = $_SERVER['SERVER_NAME'];
 		} else {
 			$helo = 'localhost';
 		}
@@ -617,7 +622,7 @@
 
 			// Add message ID header
 			srand((double)microtime()*10000000);
-			$message_id = sprintf('<%s.%s@%s>', base_convert(time(), 10, 36), base_convert(rand(), 10, 36), !empty($GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']) ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'] : $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']);
+			$message_id = sprintf('<%s.%s@%s>', base_convert(time(), 10, 36), base_convert(rand(), 10, 36), !empty($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
 			$this->headers['Message-ID'] = $message_id;
 
 			$this->is_built = true;
diff -Naur gallery-1.5.3/classes/Mail/mimePart.php gallery-1.5.4/classes/Mail/mimePart.php
--- gallery-1.5.3/classes/Mail/mimePart.php	2005-04-17 15:31:40.000000000 +0200
+++ gallery-1.5.4/classes/Mail/mimePart.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,4 +1,9 @@
 <?php
+/**
+ * Gallery SVN info
+ * $Id: mimePart.php 13580 2006-05-02 10:22:26Z jenst $
+*/
+
 //
 // +----------------------------------------------------------------------+
 // | PHP Version 4                                                        |
@@ -71,7 +76,7 @@
 *    re-build the message.
 *
 * @author  Richard Heyes <richard@phpguru.org>
-* @version $Revision: 1.1 $
+* @version $Revision: 13580 $
 * @package Mail
 */
 
diff -Naur gallery-1.5.3/classes/Mail/RFC822.php gallery-1.5.4/classes/Mail/RFC822.php
--- gallery-1.5.3/classes/Mail/RFC822.php	2005-04-17 15:31:40.000000000 +0200
+++ gallery-1.5.4/classes/Mail/RFC822.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,5 +1,10 @@
 <?php
 /**
+ * Gallery SVN info
+ * $Id: RFC822.php 13580 2006-05-02 10:22:26Z jenst $
+*/
+
+/**
 * RFC 822 Email address list validation Utility
 *
 * What is it?
@@ -18,8 +23,9 @@
 *
 * @author  Richard Heyes <richard@phpguru.org>
 * @author  Chuck Hagenbuch <chuck@horde.org>
-* @version $Revision: 1.1 $
+* @version $Revision: 13580 $
 * @package Mail
+* 
 */
 
 class Mail_RFC822
diff -Naur gallery-1.5.3/classes/Mail/smtp.php gallery-1.5.4/classes/Mail/smtp.php
--- gallery-1.5.3/classes/Mail/smtp.php	2005-07-29 19:21:32.000000000 +0200
+++ gallery-1.5.4/classes/Mail/smtp.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,5 +1,10 @@
 <?php
 /**
+ * Gallery SVN info
+ * $Id: smtp.php 13580 2006-05-02 10:22:26Z jenst $
+*/
+
+/**
 * Filename.......: class.smtp.inc
 * Project........: SMTP Class
 * Version........: 1.0.5
diff -Naur gallery-1.5.3/classes/mambo/UserDB.php gallery-1.5.4/classes/mambo/UserDB.php
--- gallery-1.5.3/classes/mambo/UserDB.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/mambo/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Mambo Open Source CMS integration written by Beckett Madden-Woods
  * <beckett@beckettmw.com> First version January 2004.
  *
- * $Id: UserDB.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/mambo/User.php gallery-1.5.4/classes/mambo/User.php
--- gallery-1.5.3/classes/mambo/User.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/mambo/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Mambo Open Source CMS integration written by Beckett Madden-Woods
  * <beckett@beckettmw.com> First version January 2004.
  *
- * $Id: User.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/NobodyUser.php gallery-1.5.4/classes/NobodyUser.php
--- gallery-1.5.3/classes/NobodyUser.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/NobodyUser.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: NobodyUser.php,v 1.15.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: NobodyUser.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nsnnuke/AdminUser.php gallery-1.5.4/classes/nsnnuke/AdminUser.php
--- gallery-1.5.3/classes/nsnnuke/AdminUser.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nsnnuke/AdminUser.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: AdminUser.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: AdminUser.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nsnnuke/UserDB.php gallery-1.5.4/classes/nsnnuke/UserDB.php
--- gallery-1.5.3/classes/nsnnuke/UserDB.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nsnnuke/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nsnnuke/User.php gallery-1.5.4/classes/nsnnuke/User.php
--- gallery-1.5.3/classes/nsnnuke/User.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nsnnuke/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: User.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nuke5/AdminUser.php gallery-1.5.4/classes/nuke5/AdminUser.php
--- gallery-1.5.3/classes/nuke5/AdminUser.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nuke5/AdminUser.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: AdminUser.php,v 1.11.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: AdminUser.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nuke5/UserDB.php gallery-1.5.4/classes/nuke5/UserDB.php
--- gallery-1.5.3/classes/nuke5/UserDB.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nuke5/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.14.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/nuke5/User.php gallery-1.5.4/classes/nuke5/User.php
--- gallery-1.5.3/classes/nuke5/User.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/nuke5/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: User.php,v 1.12.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/phpbb/UserDB.php gallery-1.5.4/classes/phpbb/UserDB.php
--- gallery-1.5.3/classes/phpbb/UserDB.php	2006-01-06 07:38:06.000000000 +0100
+++ gallery-1.5.4/classes/phpbb/UserDB.php	2006-05-02 12:22:26.000000000 +0200
@@ -16,16 +16,18 @@
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: UserDB.php 13580 2006-05-02 10:22:26Z jenst $
  */
 
 /* This class is written for phpBB2 and provides full integration of the phpbb users database
-** Instead of using or duplicating memberships manually in Gallery.
-**
-** Gallery <-> phpBB2 integration ver. (www.snailsource.com)
-** Written by Martin Smallridge       <info@snailsource.com>
-**
-** This file was modified for official integration into Gallery 1.4.3 by
-** Jens Tkotz
+ * Instead of using or duplicating memberships manually in Gallery.
+ *
+ * Gallery <-> phpBB2 integration ver. (www.snailsource.com)
+ * Written by Martin Smallridge       <info@snailsource.com>
+ *
+ * This file was modified for official integration into Gallery 1.4.3 by
+ * Jens Tkotz
 */
 
 class phpbb_UserDB extends Abstract_UserDB {
diff -Naur gallery-1.5.3/classes/phpbb/User.php gallery-1.5.4/classes/phpbb/User.php
--- gallery-1.5.3/classes/phpbb/User.php	2006-01-06 07:38:06.000000000 +0100
+++ gallery-1.5.4/classes/phpbb/User.php	2006-05-02 12:22:26.000000000 +0200
@@ -16,16 +16,18 @@
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: User.php 13580 2006-05-02 10:22:26Z jenst $
  */
 
 /* This class is written for phpBB2 and provides full integration of the phpbb users database
-** Instead of using or duplicating memberships manually in Gallery.
-**
-** Gallery <-> phpBB2 integration ver. (www.snailsource.com)
-** Written by Martin Smallridge       <info@snailsource.com>
-**
-** This file was modified for official integration into Gallery 1.4.3 by
-** Jens Tkotz
+ * Instead of using or duplicating memberships manually in Gallery.
+ *
+ * Gallery <-> phpBB2 integration ver. (www.snailsource.com)
+ * Written by Martin Smallridge       <info@snailsource.com>
+ *
+ * This file was modified for official integration into Gallery 1.4.3 by
+ * Jens Tkotz
 */
 
 class phpbb_User extends Abstract_User {
diff -Naur gallery-1.5.3/classes/php-gettext/AUTHORS gallery-1.5.4/classes/php-gettext/AUTHORS
--- gallery-1.5.3/classes/php-gettext/AUTHORS	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/AUTHORS	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,3 @@
+Danilo Segan <danilo@kvota.net>
+Nico Kaiser <nico@siriux.net> (contributed most changes between 1.0.2 and 1.0.3, bugfix for 1.0.5)
+Steven Armstrong <sa@c-area.ch> (gettext.inc, leading to 1.0.6)
diff -Naur gallery-1.5.3/classes/php-gettext/ChangeLog gallery-1.5.4/classes/php-gettext/ChangeLog
--- gallery-1.5.3/classes/php-gettext/ChangeLog	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/ChangeLog	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,160 @@
+2006-02-28  Danilo Šegan  <danilo@gnome.org>
+
+	* gettext.php: Added some comments about these workarounds for
+	different PHP versions and architectures.
+
+2006-02-28  Danilo Šegan  <danilo@gnome.org>
+
+	Fixes bug #15923.
+	
+	* gettext.php (gettext_reader): make magic check work on 64-bit
+	platforms as well (by Steffen Pingel).
+
+2006-02-20  Danilo Šegan  <danilo@gnome.org>
+
+	* gettext.inc (_bindtextdomain): Use php_uname to detect Windows.
+
+2006-02-07  Danilo Šegan  <danilo@gnome.org>
+
+	* examples/pigs_dropin.php: comment-out bind_textdomain_codeset
+
+	* gettext.inc (T_bind_textdomain_codeset): bind_textdomain_codeset
+	is available only in PHP 4.2.0+ (thanks to Jens A. Tkotz).
+
+	* Makefile: Include gettext.inc in DIST_FILES, VERSION up to
+	1.0.7.
+
+2006-02-03  Danilo Šegan  <danilo@gnome.org>
+
+	Added setlocale() emulation as well.
+	
+	* examples/pigs_dropin.php: Use T_setlocale() and locale_emulation().
+	* examples/pigs_fallback.php: Use T_setlocale() and locale_emulation().
+
+	* gettext.inc: 	Added globals $EMULATEGETTEXT and $CURRENTLOCALE.
+	(locale_emulation): Whether emulation is active.
+	(_check_locale): Rewrite.
+	(_setlocale): Added emulated setlocale function.
+	(T_setlocale): Wrapper around _setlocale.
+	(_get_reader): Use variables and _setlocale.
+
+2006-02-02  Danilo Šegan  <danilo@gnome.org>
+
+	Fix bug #12192.
+
+	* examples/locale/sr_CS/LC_MESSAGES/messages.po: Correct grammar.
+	* examples/locale/sr_CS/LC_MESSAGES/messages.mo: Rebuild.
+
+2006-02-02  Danilo Šegan  <danilo@gnome.org>
+
+	Fix bug #15419.
+	
+	* streams.php: Support for PHP 5.1.1 fread() which reads most 8kb.
+	(Fix by Piotr Szotkowski <shot@hot.pl>)
+
+2006-02-02  Danilo Šegan  <danilo@gnome.org>
+
+	Merge Steven Armstrong's changes, supporting standard gettext
+	interfaces: 
+
+	* examples/*: Restructured examples.
+	* gettext.inc: Added.
+	* AUTHORS: Added Steven.
+	* Makefile (VERSION): Up to 1.0.6.
+	
+2006-01-28  Nico Kaiser  <nico@siriux.net>
+
+	* gettext.php (select_string): Fix "true" <-> 1 difference of PHP
+
+2005-07-29  Danilo Šegan  <danilo@gnome.org>
+
+	* Makefile (VERSION): Up to 1.0.5.
+
+2005-07-29  Danilo Šegan  <danilo@gnome.org>
+
+	Fixes bug #13850.
+	
+	* gettext.php (gettext_reader): check $Reader->error as well.
+
+2005-07-29  Danilo Šegan  <danilo@gnome.org>
+
+	* Makefile (VERSION): Up to 1.0.4.
+
+2005-07-29  Danilo Šegan  <danilo@gnome.org>
+
+	Fixes bug #13771.
+
+	* gettext.php (gettext_reader->get_plural_forms): Plural forms
+	header extraction regex change.  Reported by Edgar Gonzales.
+	
+2005-02-28  Danilo Šegan  <dsegan@gmx.net>
+
+	* AUTHORS: Added Nico to the list.
+
+	* Makefile (VERSION): Up to 1.0.3.
+
+	* README: Updated.
+
+2005-02-28  Danilo Šegan  <dsegan@gmx.net>
+
+	* gettext.php: Added pre-loading, code documentation, and many
+	code clean-ups by Nico Kaiser <nico@siriux.net>.
+
+2005-02-28  Danilo Šegan  <dsegan@gmx.net>
+
+	* streams.php (FileReader.read): Handle read($bytes = 0).
+
+	* examples/pigs.php: Prefix gettext function names with T or T_.
+
+	* examples/update: Use the same keywords T_ and T_ngettext.
+
+	* streams.php: Added CachedFileReader.
+
+2003-11-11  Danilo Šegan  <dsegan@gmx.net>
+
+	* gettext.php: Added hashing to find_string.
+
+2003-11-01  Danilo Šegan  <dsegan@gmx.net>
+
+	* Makefile (DIST_FILES): Replaced LICENSE with COPYING.
+	(VERSION): Up to 1.0.2.
+
+	* AUTHORS: Minor edits.
+
+	* README: Minor edits.
+
+	* COPYING: Removed LICENSE, added this file.
+
+	* gettext.php: Added copyright notice and disclaimer.
+	* streams.php: Same.
+	* examples/pigs.php: Same.
+
+2003-10-23  Danilo Šegan  <dsegan@gmx.net>
+
+	* Makefile: Upped version to 1.0.1.
+
+	* gettext.php (gettext_reader): Remove a call to set_total_plurals.
+	(set_total_plurals): Removed unused function for some better days.
+
+2003-10-23  Danilo Šegan  <dsegan@gmx.net>
+
+	* Makefile: Added, version 1.0.0.
+
+	* examples/*: Added an example of usage.
+
+	* README: Described all the crap.
+	
+2003-10-22  Danilo Šegan  <dsegan@gmx.net>
+
+	* gettext.php: Plural forms implemented too.
+
+	* streams.php: Added FileReader for direct access to files (no
+	need to keep file in memory).
+
+	* gettext.php: It works, except for plural forms.
+
+	* streams.php: Created abstract class StreamReader.
+	Added StringReader class.
+
+	* gettext.php: Started writing gettext_reader.
+
diff -Naur gallery-1.5.3/classes/php-gettext/COPYING gallery-1.5.4/classes/php-gettext/COPYING
--- gallery-1.5.3/classes/php-gettext/COPYING	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/COPYING	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,340 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    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
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff -Naur gallery-1.5.3/classes/php-gettext/examples/index.php gallery-1.5.4/classes/php-gettext/examples/index.php
--- gallery-1.5.3/classes/php-gettext/examples/index.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/index.php	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>PHP-gettext examples</title>
+</head>
+<body>
+<h1>PHP-gettext</h1>
+
+<h2>Introduction</h2>
+<p>PHP-gettext provides a simple gettext replacement that works independently from the system's gettext abilities.
+It can read MO files and use them for translating strings.</p>
+<p>This version has the ability to cache all strings and translations to speed up the string lookup. 
+While the cache is enabled by default, it can be switched off with the second parameter in the constructor (e.g. when using very large MO files 
+that you don't want to keep in memory)</p>
+
+
+<h2>Examples</h2>
+<ul>
+	<li><a href="pigs_dropin.php">PHP-gettext as a dropin replacement</a></li>
+	<li><a href="pigs_fallback.php">PHP-gettext as a fallback solution</a></li>
+</ul>
+
+<hr />
+<p>Copyright (c) 2003-2006 Danilo Segan</p>
+<p>Copyright (c) 2005-2006 Steven Armstrong</p>
+
+</body>
+</html>
diff -Naur gallery-1.5.3/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.mo gallery-1.5.4/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.mo
--- gallery-1.5.3/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.mo	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.mo	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,18 @@
+          4      L       `   6   a         ;     8        +                    %d pig went to the market
+ %d pigs went to the market
+ This is how the story goes.
+
+ Project-Id-Version: pigs
+Report-Msgid-Bugs-To: 
+POT-Creation-Date: 2003-10-23 04:50+0200
+PO-Revision-Date: 2003-11-01 23:40+0100
+Last-Translator: Danilo Segan <danilo@kvota.net>
+Language-Team: Serbian (sr) <danilo@kvota.net>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+ %d Schwein ging zum Markt
+ %d Schweine gingen zum Markt
+ Und so geht die Geschichte.
+
+ 
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.po gallery-1.5.4/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.po
--- gallery-1.5.3/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.po	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.po	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,30 @@
+# Sample translation for PHP-gettext 1.0
+# Copyright (c) 2003 Danilo Segan <danilo@kvota.net>
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pigs\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2003-10-23 04:50+0200\n"
+"PO-Revision-Date: 2003-11-01 23:40+0100\n"
+"Last-Translator: Danilo Segan <danilo@kvota.net>\n"
+"Language-Team: Serbian (sr) <danilo@kvota.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+#"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: pigs.php:19
+msgid ""
+"This is how the story goes.\n"
+"\n"
+msgstr ""
+"Und so geht die Geschichte.\n"
+"\n"
+
+#: pigs.php:21
+#, php-format
+msgid "%d pig went to the market\n"
+msgid_plural "%d pigs went to the market\n"
+msgstr[0] "%d Schwein ging zum Markt\n"
+msgstr[1] "%d Schweine gingen zum Markt\n"
diff -Naur gallery-1.5.3/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo gallery-1.5.4/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo
--- gallery-1.5.3/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,20 @@
+          4      L       `   6   a                 j     "                    %d pig went to the market
+ %d pigs went to the market
+ This is how the story goes.
+
+ Project-Id-Version: pigs
+Report-Msgid-Bugs-To: 
+POT-Creation-Date: 2003-10-23 04:50+0200
+PO-Revision-Date: 2006-02-02 21:06+0100
+Last-Translator: Danilo Segan <danilo@kvota.net>
+Language-Team: Serbian (sr) <danilo@kvota.net>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+Plural-Forms: nplurals=3;    plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
+ %d мало прасе је отишло на пијац
+ %d мала прасета су отишла на пијац
+ %d малих прасића је отишло на пијац
+ Овако иде прича.
+
+ 
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po gallery-1.5.4/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po
--- gallery-1.5.3/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,29 @@
+# Sample translation for PHP-gettext 1.0
+# Copyright (c) 2003,2006 Danilo Segan <danilo@kvota.net>
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pigs\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2003-10-23 04:50+0200\n"
+"PO-Revision-Date: 2006-02-02 21:06+0100\n"
+"Last-Translator: Danilo Segan <danilo@kvota.net>\n"
+"Language-Team: Serbian (sr) <danilo@kvota.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3;    plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#: pigs.php:19
+msgid ""
+"This is how the story goes.\n"
+"\n"
+msgstr "Овако иде прича.\n\n"
+
+#: pigs.php:21
+#, php-format
+msgid "%d pig went to the market\n"
+msgid_plural "%d pigs went to the market\n"
+msgstr[0] "%d мало прасе је отишло на пијац\n"
+msgstr[1] "%d мала прасета су отишла на пијац\n"
+msgstr[2] "%d малих прасића је отишло на пијац\n"
diff -Naur gallery-1.5.3/classes/php-gettext/examples/pigs_dropin.php gallery-1.5.4/classes/php-gettext/examples/pigs_dropin.php
--- gallery-1.5.3/classes/php-gettext/examples/pigs_dropin.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/pigs_dropin.php	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,95 @@
+<?php
+/*
+   Copyright (c) 2003,2004,2005 Danilo Segan <danilo@kvota.net>.
+   Copyright (c) 2005,2006 Steven Armstrong <sa@c-area.ch>
+
+   This file is part of PHP-gettext.
+
+   PHP-gettext 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.
+
+   PHP-gettext 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 PHP-gettext; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+/*
+ * 10.05.2006, Jens Tkotz <jens@peino.de>
+ * Added quotes around constant names.
+ *
+ * Gallery SVN ID:
+ * $Id: albums.php 13362 2006-04-04 22:13:34Z jenst $
+*/
+
+// define constants
+define("PROJECT_DIR", realpath('./'));
+define("LOCALE_DIR", PROJECT_DIR .'/locale');
+define("DEFAULT_LOCALE", 'en_US');
+
+require_once('../gettext.inc');
+
+$supported_locales = array('en_US', 'sr_CS', 'de_CH');
+$encoding = 'UTF-8';
+
+$locale = (isset($_GET['lang']))? $_GET['lang'] : DEFAULT_LOCALE;
+
+// gettext setup
+T_setlocale(LC_MESSAGES, $locale);
+// Set the text domain as 'messages'
+$domain = 'messages';
+bindtextdomain($domain, LOCALE_DIR);
+// bind_textdomain_codeset is supported only in PHP 4.2.0+
+if (function_exists('bind_textdomain_codeset')) 
+  bind_textdomain_codeset($domain, $encoding);
+textdomain($domain);
+
+header("Content-type: text/html; charset=$encoding");
+?>
+<html>
+<head>
+<title>PHP-gettext dropin example</title>
+</head>
+<body>
+<h1>PHP-gettext as a dropin replacement</h1>
+<p>Example showing how to use PHP-gettext as a dropin replacement for the native gettext library.</p>
+<?php
+print "<p>";
+foreach($supported_locales as $l) {
+	print "[<a href=\"?lang=$l\">$l</a>] ";
+}
+print "</p>\n";
+
+if (!locale_emulation()) {
+	print "<p>locale '$locale' is supported by your system, using native gettext implementation.</p>\n";
+}
+else {
+	print "<p>locale '$locale' is _not_ supported on your system, using the default locale '". DEFAULT_LOCALE ."'.</p>\n";
+}
+?>
+
+<hr />
+
+<?php
+// using PHP-gettext
+print "<pre>";
+print _("This is how the story goes.\n\n");
+for ($number=6; $number>=0; $number--) {
+  print sprintf(T_ngettext("%d pig went to the market\n", 
+			  "%d pigs went to the market\n", $number), 
+		 $number );
+}
+print "</pre>\n";
+?>
+
+<hr />
+<p>&laquo; <a href="./">back</a></p>
+</body>
+</html>
diff -Naur gallery-1.5.3/classes/php-gettext/examples/pigs_fallback.php gallery-1.5.4/classes/php-gettext/examples/pigs_fallback.php
--- gallery-1.5.3/classes/php-gettext/examples/pigs_fallback.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/pigs_fallback.php	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,94 @@
+<?php
+/*
+   Copyright (c) 2003,2004,2005 Danilo Segan <danilo@kvota.net>.
+   Copyright (c) 2005,2006 Steven Armstrong <sa@c-area.ch>
+
+   This file is part of PHP-gettext.
+
+   PHP-gettext 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.
+
+   PHP-gettext 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 PHP-gettext; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+/*
+ * 10.05.2006, Jens Tkotz <jens@peino.de>
+ * Added quotes around constant names.
+ *
+ * Gallery SVN ID:
+ * $Id: albums.php 13362 2006-04-04 22:13:34Z jenst $
+*/
+
+// define constants
+define("PROJECT_DIR", realpath('./'));
+define("LOCALE_DIR", PROJECT_DIR .'/locale');
+define("DEFAULT_LOCALE", 'en_US');
+
+require_once('../gettext.inc');
+
+$supported_locales = array('en_US', 'sr_CS', 'de_CH');
+$encoding = 'UTF-8';
+
+$locale = (isset($_GET['lang']))? $_GET['lang'] : DEFAULT_LOCALE;
+
+// gettext setup
+T_setlocale(LC_MESSAGES, $locale);
+// Set the text domain as 'messages'
+$domain = 'messages';
+T_bindtextdomain($domain, LOCALE_DIR);
+T_bind_textdomain_codeset($domain, $encoding);
+T_textdomain($domain);
+
+header("Content-type: text/html; charset=$encoding");
+?>
+<html>
+<head>
+<title>PHP-gettext fallback example</title>
+</head>
+<body>
+<h1>PHP-gettext as a fallback solution</h1>
+<p>Example showing how to use PHP-gettext as a fallback solution if the native gettext library is not available or the system does not support the requested locale.</p>
+
+<?php
+print "<p>";
+foreach($supported_locales as $l) {
+	print "[<a href=\"?lang=$l\">$l</a>] ";
+}
+print "</p>\n";
+
+if (!locale_emulation()) {
+	print "<p>locale '$locale' is supported by your system, using native gettext implementation.</p>\n";
+}
+else {
+	print "<p>locale '$locale' is <strong>not</strong> supported on your system, using custom gettext implementation.</p>\n";
+}
+?>
+
+<hr />
+
+<?php
+// using PHP-gettext
+print "<pre>";
+print T_("This is how the story goes.\n\n");
+for ($number=6; $number>=0; $number--) {
+  print sprintf( T_ngettext("%d pig went to the market\n", 
+			  "%d pigs went to the market\n", $number), 
+		 $number );
+}
+print "</pre>\n";
+?>
+
+<hr />
+<p>&laquo; <a href="./">back</a></p>
+</body>
+</html>
diff -Naur gallery-1.5.3/classes/php-gettext/examples/update gallery-1.5.4/classes/php-gettext/examples/update
--- gallery-1.5.3/classes/php-gettext/examples/update	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/examples/update	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,14 @@
+#!/bin/sh
+TEMPLATE=pigs.pot
+xgettext -kT_ngettext:1,2 -kT_ -L PHP -o $TEMPLATE pigs_dropin.php
+if [ x$1 == 'x-p' ]; then
+    msgfmt --statistics $TEMPLATE
+else
+    if [ -f $1.po ]; then
+	msgmerge -o .tmp$1.po $1.po $TEMPLATE
+	mv .tmp$1.po $1.po
+	msgfmt --statistics $1.po
+    else
+	echo "Usage: $0 [-p|<basename>]"
+    fi
+fi
diff -Naur gallery-1.5.3/classes/php-gettext/gettext.inc gallery-1.5.4/classes/php-gettext/gettext.inc
--- gallery-1.5.3/classes/php-gettext/gettext.inc	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/gettext.inc	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,323 @@
+<?php
+/*
+   Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch>
+   
+   Drop in replacement for native gettext.
+   
+   This file is part of PHP-gettext.
+
+   PHP-gettext 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.
+
+   PHP-gettext 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 PHP-gettext; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+/*
+LC_CTYPE		0
+LC_NUMERIC	1
+LC_TIME			2
+LC_COLLATE	3
+LC_MONETARY	4
+LC_MESSAGES	5
+LC_ALL			6
+*/
+
+require('streams.php');
+require('gettext.php');
+
+
+// Variables
+
+global $text_domains, $default_domain, $LC_CATEGORIES, $EMULATEGETTEXT, $CURRENTLOCALE;
+$text_domains = array();
+$default_domain = 'messages';
+$LC_CATEGORIES = array('LC_CTYPE', 'LC_NUMERIC', 'LC_TIME', 'LC_COLLATE', 'LC_MONETARY', 'LC_MESSAGES', 'LC_ALL');
+$EMULATEGETTEXT = 0;
+$CURRENTLOCALE = '';
+
+
+// Utility functions
+
+/**
+ * Utility function to get a StreamReader for the given text domain.
+ */
+function _get_reader($domain=null, $category=5, $enable_cache=true) {
+	global $text_domains, $default_domain, $LC_CATEGORIES;
+	if (!isset($domain)) $domain = $default_domain;
+	if (!isset($text_domains[$domain]->l10n)) {
+		// get the current locale
+		$locale = _setlocale(LC_MESSAGES, 0);
+		$p = isset($text_domains[$domain]->path) ? $text_domains[$domain]->path : './';
+		$path = $p . "$locale/". $LC_CATEGORIES[$category] ."/$domain.mo";
+		if (file_exists($path)) {
+			$input = new FileReader($path);
+		}
+		else {
+			$input = null;
+		}
+		$text_domains[$domain]->l10n = new gettext_reader($input, $enable_cache);
+	}
+	return $text_domains[$domain]->l10n;
+}
+
+/**
+ * Returns whether we are using our emulated gettext API or PHP built-in one.
+ */
+function locale_emulation() {
+    global $EMULATEGETTEXT;
+    return $EMULATEGETTEXT;
+}
+
+/**
+ * Checks if the current locale is supported on this system.
+ */
+function _check_locale() {
+    global $EMULATEGETTEXT;
+    return !$EMULATEGETTEXT;
+}
+
+/**
+ * Get the codeset for the given domain.
+ */
+function _get_codeset($domain=null) {
+	global $text_domains, $default_domain, $LC_CATEGORIES;
+	if (!isset($domain)) $domain = $default_domain;
+	return (isset($text_domains[$domain]->codeset))? $text_domains[$domain]->codeset : ini_get('mbstring.internal_encoding');
+}
+
+/**
+ * Convert the given string to the encoding set by bind_textdomain_codeset.
+ */
+function _encode($text) {
+	$source_encoding = mb_detect_encoding($text);
+	$target_encoding = _get_codeset();
+	if ($source_encoding != $target_encoding) {
+		return mb_convert_encoding($text, $target_encoding, $source_encoding);
+	}
+	else {
+		return $text;
+	}
+}
+
+
+
+
+// Custom implementation of the standard gettext related functions
+
+/**
+ * Sets a requested locale, if needed emulates it.
+ */
+function _setlocale($category, $locale) {
+    global $CURRENTLOCALE, $EMULATEGETTEXT;
+    if ($locale === 0) { // use === to differentiate between string "0"
+        if ($CURRENTLOCALE != '') 
+            return $CURRENTLOCALE;
+        else 
+            // obey LANG variable, maybe extend to support all of LC_* vars
+            // even if we tried to read locale without setting it first
+            return _setlocale($category, $CURRENTLOCALE);
+    } else {
+        $ret = 0;
+        if (function_exists('setlocale')) // I don't know if this ever happens ;)
+           $ret = setlocale($category, $locale);
+        if (($ret and $locale == '') or ($ret == $locale)) {
+            $EMULATEGETTEXT = 0;
+            $CURRENTLOCALE = $ret;
+        } else {
+  	    if ($locale == '') // emulate variable support
+ 	        $CURRENTLOCALE = getenv('LANG');
+	    else
+	        $CURRENTLOCALE = $locale;
+            $EMULATEGETTEXT = 1;
+        }
+        return $CURRENTLOCALE;
+    }
+}
+
+/**
+ * Sets the path for a domain.
+ */
+function _bindtextdomain($domain, $path) {
+	global $text_domains;
+	// ensure $path ends with a slash ('/' should work for both, but lets still play nice)
+	if (substr(php_uname(), 0, 7) == "Windows") { 
+	  if ($path[strlen($path)-1] != '\\' and $path[strlen($path)-1] != '/') 
+	    $path .= '\\';
+	} else { 
+	  if ($path[strlen($path)-1] != '/') 
+	    $path .= '/';
+	}
+	$text_domains[$domain]->path = $path;
+}
+
+/**
+ * Specify the character encoding in which the messages from the DOMAIN message catalog will be returned.
+ */
+function _bind_textdomain_codeset($domain, $codeset) {
+	global $text_domains;
+	$text_domains[$domain]->codeset = $codeset;
+}
+
+/**
+ * Sets the default domain.
+ */
+function _textdomain($domain) {
+	global $default_domain;
+	$default_domain = $domain;
+}
+
+/**
+ * Lookup a message in the current domain.
+ */
+function _gettext($msgid) {
+	$l10n = _get_reader();
+	//return $l10n->translate($msgid);
+	return _encode($l10n->translate($msgid));
+}
+/**
+ * Alias for gettext.
+ */
+function __($msgid) {
+	return _gettext($msgid);
+}
+/**
+ * Plural version of gettext.
+ */
+function _ngettext($single, $plural, $number) {
+	$l10n = _get_reader();
+	//return $l10n->ngettext($single, $plural, $number);
+	return _encode($l10n->ngettext($single, $plural, $number));
+}
+
+/**
+ * Override the current domain.
+ */
+function _dgettext($domain, $msgid) {
+	$l10n = _get_reader($domain);
+	//return $l10n->translate($msgid);
+	return _encode($l10n->translate($msgid));
+}
+/**
+ * Plural version of dgettext.
+ */
+function _dngettext($domain, $single, $plural, $number) {
+	$l10n = _get_reader($domain);
+	//return $l10n->ngettext($single, $plural, $number);
+	return _encode($l10n->ngettext($single, $plural, $number));
+}
+
+/**
+ * Overrides the domain and category for a single lookup.
+ */
+function _dcgettext($domain, $msgid, $category) {
+	$l10n = _get_reader($domain, $category);
+	//return $l10n->translate($msgid);
+	return _encode($l10n->translate($msgid));
+}
+/**
+ * Plural version of dcgettext.
+ */
+function _dcngettext($domain, $single, $plural, $number, $category) {
+	$l10n = _get_reader($domain, $category);
+	//return $l10n->ngettext($single, $plural, $number);
+	return _encode($l10n->ngettext($single, $plural, $number));
+}
+
+
+
+// Wrappers to use if the standard gettext functions are available, but the current locale is not supported by the system.
+// Use the standard impl if the current locale is supported, use the custom impl otherwise.
+
+function T_setlocale($category, $locale) {
+    return _setlocale($category, $locale);
+}
+
+function T_bindtextdomain($domain, $path) {
+	if (_check_locale()) return bindtextdomain($domain, $path);
+	else return _bindtextdomain($domain, $path);
+}
+function T_bind_textdomain_codeset($domain, $codeset) {
+    // bind_textdomain_codeset is available only in PHP 4.2.0+
+	if (_check_locale() and function_exists('bind_textdomain_codeset')) return bind_textdomain_codeset($domain, $codeset);
+	else return _bind_textdomain_codeset($domain, $codeset);
+}
+function T_textdomain($domain) {
+	if (_check_locale()) return textdomain($domain);
+	else return _textdomain($domain);
+}
+function T_gettext($msgid) {
+	if (_check_locale()) return gettext($msgid);
+	else return _gettext($msgid);
+}
+function T_($msgid) {
+	if (_check_locale()) return _($msgid);
+	return __($msgid);
+}
+function T_ngettext($single, $plural, $number) {
+	if (_check_locale()) return ngettext($single, $plural, $number);
+	else return _ngettext($single, $plural, $number);
+}
+function T_dgettext($domain, $msgid) {
+	if (_check_locale()) return dgettext($domain, $msgid);
+	else return _dgettext($domain, $msgid);
+}
+function T_dngettext($domain, $single, $plural, $number) {
+	if (_check_locale()) return dngettext($domain, $single, $plural, $number);
+	else return _dngettext($domain, $single, $plural, $number);
+}
+function T_dcgettext($domain, $msgid, $category) {
+	if (_check_locale()) return dcgettext($domain, $msgid, $category);
+	else return _dcgettext($domain, $msgid, $category);
+}
+function T_dcngettext($domain, $single, $plural, $number, $category) {
+	if (_check_locale()) return dcngettext($domain, $single, $plural, $number, $category);
+	else return _dcngettext($domain, $single, $plural, $number, $category);
+}
+
+
+
+// Wrappers used as a drop in replacement for the standard gettext functions
+
+if (!function_exists('gettext')) {
+	function bindtextdomain($domain, $path) {
+		return _bindtextdomain($domain, $path);
+	}
+	function bind_textdomain_codeset($domain, $codeset) {
+		return _bind_textdomain_codeset($domain, $codeset);
+	}
+	function textdomain($domain) {
+		return _textdomain($domain);
+	}
+	function gettext($msgid) {
+		return _gettext($msgid);
+	}
+	function _($msgid) {
+		return __($msgid);
+	}
+	function ngettext($single, $plural, $number) {
+		return _ngettext($single, $plural, $number);
+	}
+	function dgettext($domain, $msgid) {
+		return _dgettext($domain, $msgid);
+	}
+	function dngettext($domain, $single, $plural, $number) {
+		return _dngettext($domain, $single, $plural, $number);
+	}
+	function dcgettext($domain, $msgid, $category) {
+		return _dcgettext($domain, $msgid, $category);
+	}
+	function dcngettext($domain, $single, $plural, $number, $category) {
+		return _dcngettext($domain, $single, $plural, $number, $category);
+	}
+}
+
+?>
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/php-gettext/gettext.php gallery-1.5.4/classes/php-gettext/gettext.php
--- gallery-1.5.3/classes/php-gettext/gettext.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/gettext.php	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,358 @@
+<?php
+/*
+   Copyright (c) 2003 Danilo Segan <danilo@kvota.net>.
+   Copyright (c) 2005 Nico Kaiser <nico@siriux.net>
+   
+   This file is part of PHP-gettext.
+
+   PHP-gettext 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.
+
+   PHP-gettext 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 PHP-gettext; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+ 
+/**
+ * Provides a simple gettext replacement that works independently from
+ * the system's gettext abilities.
+ * It can read MO files and use them for translating strings.
+ * The files are passed to gettext_reader as a Stream (see streams.php)
+ * 
+ * This version has the ability to cache all strings and translations to
+ * speed up the string lookup.
+ * While the cache is enabled by default, it can be switched off with the
+ * second parameter in the constructor (e.g. whenusing very large MO files
+ * that you don't want to keep in memory)
+ */
+class gettext_reader {
+  //public:
+   var $error = 0; // public variable that holds error code (0 if no error)
+   
+   //private:
+  var $BYTEORDER = 0;        // 0: low endian, 1: big endian
+  var $STREAM = NULL;
+  var $short_circuit = false;
+  var $enable_cache = false;
+  var $originals = NULL;      // offset of original table
+  var $translations = NULL;    // offset of translation table
+  var $pluralheader = NULL;    // cache header field for plural forms
+  var $total = 0;          // total string count
+  var $table_originals = NULL;  // table for original strings (offsets)
+  var $table_translations = NULL;  // table for translated strings (offsets)
+  var $cache_translations = NULL;  // original -> translation mapping
+
+
+  /* Methods */
+  
+    
+  /**
+   * Reads a 32bit Integer from the Stream
+   * 
+   * @access private
+   * @return Integer from the Stream
+   */
+  function readint() {
+      if ($this->BYTEORDER == 0) {
+        // low endian
+        return array_shift(unpack('V', $this->STREAM->read(4)));
+      } else {
+        // big endian
+        return array_shift(unpack('N', $this->STREAM->read(4)));
+      }
+    }
+
+  /**
+   * Reads an array of Integers from the Stream
+   * 
+   * @param int count How many elements should be read
+   * @return Array of Integers
+   */
+  function readintarray($count) {
+    if ($this->BYTEORDER == 0) {
+        // low endian
+        return unpack('V'.$count, $this->STREAM->read(4 * $count));
+      } else {
+        // big endian
+        return unpack('N'.$count, $this->STREAM->read(4 * $count));
+      }
+  }
+  
+  /**
+   * Constructor
+   * 
+   * @param object Reader the StreamReader object
+   * @param boolean enable_cache Enable or disable caching of strings (default on)
+   */
+  function gettext_reader($Reader, $enable_cache = true) {
+    // If there isn't a StreamReader, turn on short circuit mode.
+    if (! $Reader || isset($Reader->error) ) {
+      $this->short_circuit = true;
+      return;
+    }
+    
+    // Caching can be turned off
+    $this->enable_cache = $enable_cache;
+
+    // $MAGIC1 = (int)0x950412de; //bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565
+    $MAGIC1 = (int) - 1794895138;
+    // $MAGIC2 = (int)0xde120495; //bug
+    $MAGIC2 = (int) - 569244523;
+
+    $this->STREAM = $Reader;
+    $magic = $this->readint();
+    if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
+      $this->BYTEORDER = 0;
+    } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
+      $this->BYTEORDER = 1;
+    } else {
+      $this->error = 1; // not MO file
+      return false;
+    }
+    
+    // FIXME: Do we care about revision? We should.
+    $revision = $this->readint();
+    
+    $this->total = $this->readint();
+    $this->originals = $this->readint();
+    $this->translations = $this->readint();
+  }
+  
+  /**
+   * Loads the translation tables from the MO file into the cache
+   * If caching is enabled, also loads all strings into a cache
+   * to speed up translation lookups
+   * 
+   * @access private
+   */
+  function load_tables() {
+    if (is_array($this->cache_translations) &&
+      is_array($this->table_originals) &&
+      is_array($this->table_translations))
+      return;
+    
+    /* get original and translations tables */
+    $this->STREAM->seekto($this->originals);
+    $this->table_originals = $this->readintarray($this->total * 2);
+    $this->STREAM->seekto($this->translations);
+    $this->table_translations = $this->readintarray($this->total * 2);
+    
+    if ($this->enable_cache) {
+      $this->cache_translations = array ();
+      /* read all strings in the cache */
+      for ($i = 0; $i < $this->total; $i++) {
+        $this->STREAM->seekto($this->table_originals[$i * 2 + 2]);
+        $original = $this->STREAM->read($this->table_originals[$i * 2 + 1]);
+        $this->STREAM->seekto($this->table_translations[$i * 2 + 2]);
+        $translation = $this->STREAM->read($this->table_translations[$i * 2 + 1]);
+        $this->cache_translations[$original] = $translation;
+      }
+    }
+  }
+  
+  /**
+   * Returns a string from the "originals" table
+   * 
+   * @access private
+   * @param int num Offset number of original string
+   * @return string Requested string if found, otherwise ''
+   */
+  function get_original_string($num) {
+    $length = $this->table_originals[$num * 2 + 1];
+    $offset = $this->table_originals[$num * 2 + 2];
+    if (! $length)
+      return '';
+    $this->STREAM->seekto($offset);
+    $data = $this->STREAM->read($length);
+    return (string)$data;
+  }
+  
+  /**
+   * Returns a string from the "translations" table
+   * 
+   * @access private
+   * @param int num Offset number of original string
+   * @return string Requested string if found, otherwise ''
+   */
+  function get_translation_string($num) {
+    $length = $this->table_translations[$num * 2 + 1];
+    $offset = $this->table_translations[$num * 2 + 2];
+    if (! $length)
+      return '';
+    $this->STREAM->seekto($offset);
+    $data = $this->STREAM->read($length);
+    return (string)$data;
+  }
+  
+  /**
+   * Binary search for string
+   * 
+   * @access private
+   * @param string string
+   * @param int start (internally used in recursive function)
+   * @param int end (internally used in recursive function)
+   * @return int string number (offset in originals table)
+   */
+  function find_string($string, $start = -1, $end = -1) {
+    if (($start == -1) or ($end == -1)) {
+      // find_string is called with only one parameter, set start end end
+      $start = 0;
+      $end = $this->total;
+    }
+    if (abs($start - $end) <= 1) {
+      // We're done, now we either found the string, or it doesn't exist
+      $txt = $this->get_original_string($start);
+      if ($string == $txt)
+        return $start;
+      else
+        return -1;
+    } else if ($start > $end) {
+      // start > end -> turn around and start over
+      return $this->find_string($string, $end, $start);
+    } else {
+      // Divide table in two parts
+      $half = (int)(($start + $end) / 2);
+      $cmp = strcmp($string, $this->get_original_string($half));
+      if ($cmp == 0)
+        // string is exactly in the middle => return it
+        return $half;
+      else if ($cmp < 0)
+        // The string is in the upper half
+        return $this->find_string($string, $start, $half);
+      else
+        // The string is in the lower half
+        return $this->find_string($string, $half, $end);
+    }
+  }
+  
+  /**
+   * Translates a string
+   * 
+   * @access public
+   * @param string string to be translated
+   * @return string translated string (or original, if not found)
+   */
+  function translate($string) {
+    if ($this->short_circuit)
+      return $string;
+    $this->load_tables();     
+    
+    if ($this->enable_cache) {
+      // Caching enabled, get translated string from cache
+      if (array_key_exists($string, $this->cache_translations))
+        return $this->cache_translations[$string];
+      else
+        return $string;
+    } else {
+      // Caching not enabled, try to find string
+      $num = $this->find_string($string);
+      if ($num == -1)
+        return $string;
+      else
+        return $this->get_translation_string($num);
+    }
+  }
+
+  /**
+   * Get possible plural forms from MO header
+   * 
+   * @access private
+   * @return string plural form header
+   */
+  function get_plural_forms() {
+    // lets assume message number 0 is header  
+    // this is true, right?
+    $this->load_tables();
+    
+    // cache header field for plural forms
+    if (! is_string($this->pluralheader)) {
+      if ($this->enable_cache) {
+        $header = $this->cache_translations[""];
+      } else {
+        $header = $this->get_translation_string(0);
+      }
+      if (eregi("plural-forms: ([^\n]*)\n", $header, $regs))
+        $expr = $regs[1];
+      else
+        $expr = "nplurals=2; plural=n == 1 ? 0 : 1;";
+      $this->pluralheader = $expr;
+    }
+    return $this->pluralheader;
+  }
+
+  /**
+   * Detects which plural form to take
+   * 
+   * @access private
+   * @param n count
+   * @return int array index of the right plural form
+   */
+  function select_string($n) {
+    $string = $this->get_plural_forms();
+    $string = str_replace('nplurals',"\$total",$string);
+    $string = str_replace("n",$n,$string);
+    $string = str_replace('plural',"\$plural",$string);
+    
+    $total = 0;
+    $plural = 0;
+
+    eval("$string");
+    if ($plural >= $total) $plural = $total - 1;
+    return $plural;
+  }
+
+  /**
+   * Plural version of gettext
+   * 
+   * @access public
+   * @param string single
+   * @param string plural
+   * @param string number
+   * @return translated plural form
+   */
+  function ngettext($single, $plural, $number) {
+    if ($this->short_circuit) {
+      if ($number != 1)
+        return $plural;
+      else
+        return $single;
+    }
+
+    // find out the appropriate form
+    $select = $this->select_string($number); 
+    
+    // this should contains all strings separated by NULLs
+    $key = $single.chr(0).$plural;
+    
+    
+    if ($this->enable_cache) {
+      if (! array_key_exists($key, $this->cache_translations)) {
+        return ($number != 1) ? $plural : $single;
+      } else {
+        $result = $this->cache_translations[$key];
+        $list = explode(chr(0), $result);
+        return $list[$select];
+      }
+    } else {
+      $num = $this->find_string($key);
+      if ($num == -1) {
+        return ($number != 1) ? $plural : $single;
+      } else {
+        $result = $this->get_translation_string($num);
+        $list = explode(chr(0), $result);
+        return $list[$select];
+      }
+    }
+  }
+
+}
+
+?>
diff -Naur gallery-1.5.3/classes/php-gettext/Makefile gallery-1.5.4/classes/php-gettext/Makefile
--- gallery-1.5.3/classes/php-gettext/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/Makefile	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,32 @@
+PACKAGE = php-gettext-$(VERSION)
+VERSION = 1.0.7
+
+DIST_FILES = \
+	gettext.php \
+	gettext.inc \
+	streams.php \
+	AUTHORS     \
+	ChangeLog   \
+	README      \
+	COPYING     \
+	Makefile    \
+	examples/index.php    \
+	examples/pigs_dropin.php    \
+	examples/pigs_fallback.php    \
+	examples/locale/sr_CS/LC_MESSAGES/messages.po \
+	examples/locale/sr_CS/LC_MESSAGES/messages.mo \
+	examples/locale/de_CH/LC_MESSAGES/messages.po \
+	examples/locale/de_CH/LC_MESSAGES/messages.mo \
+	examples/update
+
+dist:
+	if [ -d $(PACKAGE) ]; then \
+	    rm -rf $(PACKAGE); \
+	fi; \
+	mkdir $(PACKAGE); \
+	if [ -d $(PACKAGE) ]; then \
+	    cp -rp --parents $(DIST_FILES) $(PACKAGE); \
+	    tar cvzf $(PACKAGE).tar.gz $(PACKAGE); \
+	    rm -rf $(PACKAGE); \
+	fi;
+
diff -Naur gallery-1.5.3/classes/php-gettext/README gallery-1.5.4/classes/php-gettext/README
--- gallery-1.5.3/classes/php-gettext/README	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/README	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,189 @@
+PHP-gettext 1.0
+
+Copyright 2003, 2006 -- Danilo "angry with PHP[1]" Segan
+Licensed under GPLv2 (or any later version, see COPYING)
+
+[1] PHP is actually cyrillic, and translates roughly to 
+    "works-doesn't-work" (UTF-8: Ради-Не-Ради)
+
+
+Introduction
+
+    How many times did you look for a good translation tool, and
+    found out that gettext is best for the job? Many times.
+
+    How many times did you try to use gettext in PHP, but failed
+    miserably, because either your hosting provider didn't support
+    it, or the server didn't have adequate locale? Many times.
+
+    Well, this is a solution to your needs. It allows using gettext
+    tools for managing translations, yet it doesn't require gettext
+    library at all. It parses generated MO files directly, and thus
+    might be a bit slower than the (maybe provided) gettext library.
+
+    PHP-gettext is a simple reader for GNU gettext MO files. Those
+    are binary containers for translations, produced by GNU msgfmt.
+
+Why?
+
+    I got used to having gettext work even without gettext
+    library. It's there in my favourite language Python, so I was
+    surprised that I couldn't find it in PHP. I even Googled for it,
+    but to no avail.
+
+    So, I said, what the heck, I'm going to write it for this
+    disguisting language of PHP, because I'm often constrained to it.
+
+Features
+
+  o Support for simple translations
+    Just define a simple alias for translate() function (suggested
+    use of _() or gettext(); see provided example).
+
+  o Support for ngettext calls (plural forms, see a note under bugs)
+    You may also use plural forms. Translations in MO files need to
+    provide this, and they must also provide "plural-forms" header.
+    Please see 'info gettext' for more details.
+
+  o Support for reading straight files, or strings (!!!)
+    Since I can imagine many different backends for reading in the MO
+    file data, I used imaginary abstract class StreamReader to do all
+    the input (check streams.php). For your convenience, I've already
+    provided two classes for reading files: FileReader and
+    StringReader (CachedFileReader is a combination of the two: it 
+    loads entire file contents into a string, and then works on that). 
+    See example below for usage. You can for instance use StringReader 
+    when you read in data from a database, or you can create your own 
+    derivative of StreamReader for anything you like. 
+    
+
+Bugs
+
+    Plural-forms field in MO header (translation for empty string,
+    i.e. "") is treated according to PHP syntactic rules (it's
+    eval()ed). Since these should actually follow C syntax, there are
+    some problems.
+
+    For instance, I'm used to using this:
+      Plural-Forms: nplurals=3;    plural=n%10==1 && n%100!=11 ? 0 : \
+         n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
+    but it fails with PHP (it sets $plural=2 instead of 0 for $n==1).
+
+    The fix is usually simple, but I'm lazy to go into the details of
+    PHP operator precedence, and maybe try to fix it. In here, I had
+    to put everything after the first ':' in parenthesis:
+      Plural-Forms: nplurals=3;    plural=n%10==1 && n%100!=11 ? 0 : \
+         (n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
+    That works, and I'm satisfied.
+
+    Besides this one, there are probably a bunch of other bugs, since
+    I hate PHP (did I mention it already? no? strange), and don't
+    know it very well. So, feel free to fix any of those and report
+    them back to me at <danilo@kvota.net>.
+
+Usage
+
+    Put files streams.php and gettext.php somewhere you can load them
+    from, and require 'em in where you want to use them.
+
+    Then, create one 'stream reader' (a class that provides functions
+    like read(), seekto(), currentpos() and length()) which will
+    provide data for the 'gettext_reader', with eg.
+      $streamer = new FileStream('data.mo');
+
+    Then, use that as a parameter to gettext_reader constructor:
+      $wohoo = new gettext_reader($streamer);
+
+    If you want to disable pre-loading of entire message catalog in 
+    memory (if, for example, you have a multi-thousand message catalog 
+    which you'll use only occasionally), use "false" for second 
+    parameter to gettext_reader constructor:
+      $wohoo = new gettext_reader($streamer, false);
+
+    From now on, you have all the benefits of gettext data at your
+    disposal, so may run: 
+      print $wohoo->translate("This is a test");
+      print $wohoo->ngettext("%d bird", "%d birds", $birds);
+
+    You might need to pass parameter "-k" to xgettext to make it
+    extract all the strings. In above example, try with 
+      xgettext -ktranslate -kngettext:1,2 file.php
+    what should create messages.po which contains two messages for
+    translation.
+
+    I suggest creating simple aliases for these functions (see
+    example/pigs.php for how do I do it, which means it's probably a
+    bad way).
+
+
+Usage with gettext.inc (standard gettext interfaces emulation)
+
+    Check example in examples/pig_dropin.php, basically you include 
+    gettext.inc and use all the standard gettext interfaces as 
+    documented on:
+
+       http://www.php.net/gettext
+
+    The only catch is that you can check return value of setlocale()
+    to see if your locale is system supported or not.
+
+
+Example
+
+    See in examples/ subdirectory. There are a couple of files.
+    pigs.php is an example, serbian.po is a translation to Serbian
+    language, and serbian.mo is generated with
+       msgfmt -o serbian.mo serbian.po
+    There is also simple "update" script that can be used to generate
+    POT file and to update the translation using msgmerge.
+
+Interesting TODO:
+
+  o Try to parse "plural-forms" header field, and to follow C syntax
+    rules. This won't be easy.
+
+Boring TODO:
+
+  o Learn PHP and fix bugs, slowness and other stuff resulting from
+    my lack of knowledge (but *maybe*, it's not my knowledge that is
+    bad, but PHP itself ;-).  
+
+    (This is mostly done thanks to Nico Kaiser.)
+
+  o Try to use hash tables in MO files: with pre-loading, would it 
+    be useful at all?
+
+Never-asked-questions:
+
+  o Why did you mark this as version 1.0 when this is the first code
+    release?
+
+    Well, it's quite simple. I consider that the first released thing
+    should be labeled "version 1" (first, right?). Zero is there to
+    indicate that there's zero improvement and/or change compared to 
+    "version 1".
+
+    I plan to use version numbers 1.0.* for small bugfixes, and to
+    release 1.1 as "first stable release of version 1".
+
+    This may trick someone that this is actually useful software, but
+    as with any other free software, I take NO RESPONSIBILITY for
+    creating such a masterpiece that will smoke crack, trash your
+    hard disk, and make lasers in your CD device dance to the tune of
+    Mozart's 40th Symphony (there is one like that, right?).
+
+  o Can I...?
+    
+    Yes, you can. This is free software (as in freedom, free speech),
+    and you might do whatever you wish with it, provided you do not
+    limit freedom of others (GPL).
+
+    I'm considering licensing this under LGPL, but I *do* want
+    *every* PHP-gettext user to contribute and respect ideas of free
+    software, so don't count on it happening anytime soon.
+
+    I'm sorry that I'm taking away your freedom of taking others'
+    freedom away, but I believe that's neglible as compared to what
+    freedoms you could take away. ;-)
+
+    Uhm, whatever.
diff -Naur gallery-1.5.3/classes/php-gettext/streams.php gallery-1.5.4/classes/php-gettext/streams.php
--- gallery-1.5.3/classes/php-gettext/streams.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.4/classes/php-gettext/streams.php	2006-05-10 13:51:37.000000000 +0200
@@ -0,0 +1,174 @@
+<?php
+/*
+   Copyright (c) 2003, 2005 Danilo Segan <danilo@kvota.net>.
+
+   This file is part of PHP-gettext.
+
+   PHP-gettext 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.
+
+   PHP-gettext 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 PHP-gettext; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+/*
+ * 10.05.2006, Jens Tkotz <jens@peino.de>
+ * Added fix described in bug #16400.
+ * 
+ * Gallery SVN ID:
+ * $Id: albums.php 13362 2006-04-04 22:13:34Z jenst $
+*/
+
+// Simple class to wrap file streams, string streams, etc.
+// seek is essential, and it should be byte stream
+class StreamReader {
+  // should return a string [FIXME: perhaps return array of bytes?]
+  function read($bytes) {
+    return false;
+  }
+  
+  // should return new position
+  function seekto($position) {
+    return false;
+  }
+  
+  // returns current position
+  function currentpos() {
+    return false;
+  }
+  
+  // returns length of entire stream (limit for seekto()s)
+  function length() {
+    return false;
+  }
+}
+
+class StringReader {
+  var $_pos;
+  var $_str;
+
+  function StringReader($str='') {
+    $this->_str = $str;
+    $this->_pos = 0;
+  }
+
+  function read($bytes) {
+    $data = substr($this->_str, $this->_pos, $bytes);
+    $this->_pos += $bytes;
+    if (strlen($this->_str)<$this->_pos)
+      $this->_pos = strlen($this->_str);
+
+    return $data;
+  }
+
+  function seekto($pos) {
+    $this->_pos = $pos;
+    if (strlen($this->_str)<$this->_pos)
+      $this->_pos = strlen($this->_str);
+    return $this->_pos;
+  }
+
+  function currentpos() {
+    return $this->_pos;
+  }
+
+  function length() {
+    return strlen($this->_str);
+  }
+
+}
+
+
+class FileReader {
+  var $_pos;
+  var $_fd;
+  var $_length;
+
+  function FileReader($filename) {
+    if (file_exists($filename)) {
+
+      $this->_length=filesize($filename);
+      $this->_pos = 0;
+      $this->_fd = fopen($filename,'rb');
+      if (!$this->_fd) {
+	$this->error = 3; // Cannot read file, probably permissions
+	return false;
+      }
+    } else {
+      $this->error = 2; // File doesn't exist
+      return false;
+    }
+  }
+
+  function read($bytes) {
+    $data = NULL; 
+    if ($bytes) {
+      fseek($this->_fd, $this->_pos);
+
+      // PHP 5.1.1 does not read more than 8192 bytes in one fread()
+      // the discussions at PHP Bugs suggest it's the intended behaviour
+      while ($bytes > 0) {
+        $chunk  = fread($this->_fd, $bytes);
+        $data  .= $chunk;
+        $bytes -= strlen($chunk);
+      }
+      $this->_pos = ftell($this->_fd);
+      
+      return $data;
+    } else return '';
+  }
+
+  function seekto($pos) {
+    fseek($this->_fd, $pos);
+    $this->_pos = ftell($this->_fd);
+    return $this->_pos;
+  }
+
+  function currentpos() {
+    return $this->_pos;
+  }
+
+  function length() {
+    return $this->_length;
+  }
+
+  function close() {
+    fclose($this->_fd);
+  }
+
+}
+
+// Preloads entire file in memory first, then creates a StringReader 
+// over it (it assumes knowledge of StringReader internals)
+class CachedFileReader extends StringReader {
+  function CachedFileReader($filename) {
+    if (file_exists($filename)) {
+
+      $length=filesize($filename);
+      $fd = fopen($filename,'rb');
+
+      if (!$fd) {
+	$this->error = 3; // Cannot read file, probably permissions
+	return false;
+      }
+      $this->_str = fread($fd, $length);
+      fclose($fd);
+
+    } else {
+      $this->error = 2; // File doesn't exist
+      return false;
+    }
+  }
+}
+
+
+?>
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/postnuke/UserDB.php gallery-1.5.4/classes/postnuke/UserDB.php
--- gallery-1.5.3/classes/postnuke/UserDB.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/postnuke/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.12.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/postnuke/User.php gallery-1.5.4/classes/postnuke/User.php
--- gallery-1.5.3/classes/postnuke/User.php	2006-03-27 17:31:27.000000000 +0200
+++ gallery-1.5.4/classes/postnuke/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: User.php,v 1.10.2.1 2006/03/27 15:31:27 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/postnuke0.7.1/UserDB.php gallery-1.5.4/classes/postnuke0.7.1/UserDB.php
--- gallery-1.5.3/classes/postnuke0.7.1/UserDB.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/classes/postnuke0.7.1/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.9.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/postnuke0.7.1/User.php gallery-1.5.4/classes/postnuke0.7.1/User.php
--- gallery-1.5.3/classes/postnuke0.7.1/User.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/classes/postnuke0.7.1/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: User.php,v 1.12.2.1 2006/03/27 15:31:28 jenst Exp $
+* $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/remote/GalleryRemoteProperties.php gallery-1.5.4/classes/remote/GalleryRemoteProperties.php
--- gallery-1.5.3/classes/remote/GalleryRemoteProperties.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/classes/remote/GalleryRemoteProperties.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: GalleryRemoteProperties.php,v 1.9.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: GalleryRemoteProperties.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/UserDB.php gallery-1.5.4/classes/UserDB.php
--- gallery-1.5.3/classes/UserDB.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/UserDB.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: UserDB.php,v 1.25.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: UserDB.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/User.php gallery-1.5.4/classes/User.php
--- gallery-1.5.3/classes/User.php	2006-03-27 17:31:26.000000000 +0200
+++ gallery-1.5.4/classes/User.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: User.php,v 1.37.2.1 2006/03/27 15:31:26 jenst Exp $
+ * $Id: User.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/Decorators.php gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3/Decorators.php
--- gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/Decorators.php	2006-03-28 12:54:52.000000000 +0200
+++ gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3/Decorators.php	2006-03-28 12:54:53.000000000 +0200
@@ -1,363 +1,363 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4: */
-//
-// +----------------------------------------------------------------------+
-// | PHP Version 4                                                        |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PHP Group                                |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 2.02 of the PHP license,      |
-// | that is bundled with this package in the file LICENSE, and is        |
-// | available at through the world-wide-web at                           |
-// | http://www.php.net/license/3_0.txt.                                  |
-// | If you did not receive a copy of the PHP license and are unable to   |
-// | obtain it through the world-wide-web, please send a note to          |
-// | license@php.net so we can mail you a copy immediately.               |
-// +----------------------------------------------------------------------+
-// | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
-// | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more  |
-// | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
-// +----------------------------------------------------------------------+
-//
-// $Id: Decorators.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
-//
-/**
-* Decorators for dealing with parser options
-* @package XML_HTMLSax3
-* @version $Id: Decorators.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
-* @see XML_HTMLSax3::set_option
-*/
-/**
-* Trims the contents of element data from whitespace at start and end
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Trim {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_Trim
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_Trim(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Trims the data
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function trimData(&$parser, $data) {
-        $data = trim($data);
-        if ($data != '') {
-            $this->orig_obj->{$this->orig_method}($parser, $data);
-        }
-    }
-}
-/**
-* Coverts tag names to upper case
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_CaseFolding {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original open handler method
-    * @var string
-    * @access private
-    */
-    var $orig_open_method;
-    /**
-    * Original close handler method
-    * @var string
-    * @access private
-    */
-    var $orig_close_method;
-    /**
-    * Constructs XML_HTMLSax3_CaseFolding
-    * @param object handler object being decorated
-    * @param string original open handler method
-    * @param string original close handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_CaseFolding(&$orig_obj, $orig_open_method, $orig_close_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_open_method = $orig_open_method;
-        $this->orig_close_method = $orig_close_method;
-    }
-    /**
-    * Folds up open tag callbacks
-    * @param XML_HTMLSax3
-    * @param string tag name
-    * @param array tag attributes
-    * @access protected
-    */
-    function foldOpen(&$parser, $tag, $attrs=array(), $empty = FALSE) {
-        $this->orig_obj->{$this->orig_open_method}($parser, strtoupper($tag), $attrs, $empty);
-    }
-    /**
-    * Folds up close tag callbacks
-    * @param XML_HTMLSax3
-    * @param string tag name
-    * @access protected
-    */
-    function foldClose(&$parser, $tag, $empty = FALSE) {
-        $this->orig_obj->{$this->orig_close_method}($parser, strtoupper($tag), $empty);
-    }
-}
-/**
-* Breaks up data by linefeed characters, resulting in additional
-* calls to the data handler
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Linefeed {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_LineFeed
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_LineFeed(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Breaks the data up by linefeeds
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function breakData(&$parser, $data) {
-        $data = explode("\n",$data);
-        foreach ( $data as $chunk ) {
-            $this->orig_obj->{$this->orig_method}($parser, $chunk);
-        }
-    }
-}
-/**
-* Breaks up data by tab characters, resulting in additional
-* calls to the data handler
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Tab {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_Tab
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_Tab(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Breaks the data up by linefeeds
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function breakData(&$parser, $data) {
-        $data = explode("\t",$data);
-        foreach ( $data as $chunk ) {
-            $this->orig_obj->{$this->orig_method}($this, $chunk);
-        }
-    }
-}
-/**
-* Breaks up data by XML entities and parses them with html_entity_decode(),
-* resulting in additional calls to the data handler<br />
-* Requires PHP 4.3.0+
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Entities_Parsed {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_Entities_Parsed
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_Entities_Parsed(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Breaks the data up by XML entities
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function breakData(&$parser, $data) {
-        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
-        foreach ( $data as $chunk ) {
-            $chunk = html_entity_decode($chunk,ENT_NOQUOTES);
-            $this->orig_obj->{$this->orig_method}($this, $chunk);
-        }
-    }
-}
-/**
-* Compatibility with older PHP versions
-*/
-if (version_compare(phpversion(), '4.3', '<') && !function_exists('html_entity_decode') ) {
-    function html_entity_decode($str, $style=ENT_NOQUOTES) {
-        return strtr($str,
-            array_flip(get_html_translation_table(HTML_ENTITIES,$style)));
-    }
-}
-/**
-* Breaks up data by XML entities but leaves them unparsed,
-* resulting in additional calls to the data handler<br />
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Entities_Unparsed {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_Entities_Unparsed
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_Entities_Unparsed(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Breaks the data up by XML entities
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function breakData(&$parser, $data) {
-        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
-        foreach ( $data as $chunk ) {
-            $this->orig_obj->{$this->orig_method}($this, $chunk);
-        }
-    }
-}
-
-/**
-* Strips the HTML comment markers or CDATA sections from an escape.
-* If XML_OPTIONS_FULL_ESCAPES is on, this decorator is not used.<br />
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_Escape_Stripper {
-    /**
-    * Original handler object
-    * @var object
-    * @access private
-    */
-    var $orig_obj;
-    /**
-    * Original handler method
-    * @var string
-    * @access private
-    */
-    var $orig_method;
-    /**
-    * Constructs XML_HTMLSax3_Entities_Unparsed
-    * @param object handler object being decorated
-    * @param string original handler method
-    * @access protected
-    */
-    function XML_HTMLSax3_Escape_Stripper(&$orig_obj, $orig_method) {
-        $this->orig_obj =& $orig_obj;
-        $this->orig_method = $orig_method;
-    }
-    /**
-    * Breaks the data up by XML entities
-    * @param XML_HTMLSax3
-    * @param string element data
-    * @access protected
-    */
-    function strip(&$parser, $data) {
-        // Check for HTML comments first
-        if ( substr($data,0,2) == '--' ) {
-            $patterns = array(
-                '/^\-\-/',          // Opening comment: --
-                '/\-\-$/',          // Closing comment: --
-            );
-            $data = preg_replace($patterns,'',$data);
-
-        // Check for XML CDATA sections (note: don't do both!)
-        } else if ( substr($data,0,1) == '[' ) {
-            $patterns = array(
-                '/^\[.*CDATA.*\[/s', // Opening CDATA
-                '/\].*\]$/s',       // Closing CDATA
-                );
-            $data = preg_replace($patterns,'',$data);
-        }
-
-        $this->orig_obj->{$this->orig_method}($this, $data);
-    }
-}
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4: */
+//
+// +----------------------------------------------------------------------+
+// | PHP Version 4                                                        |
+// +----------------------------------------------------------------------+
+// | Copyright (c) 1997-2002 The PHP Group                                |
+// +----------------------------------------------------------------------+
+// | This source file is subject to version 2.02 of the PHP license,      |
+// | that is bundled with this package in the file LICENSE, and is        |
+// | available at through the world-wide-web at                           |
+// | http://www.php.net/license/3_0.txt.                                  |
+// | If you did not receive a copy of the PHP license and are unable to   |
+// | obtain it through the world-wide-web, please send a note to          |
+// | license@php.net so we can mail you a copy immediately.               |
+// +----------------------------------------------------------------------+
+// | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
+// | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more  |
+// | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
+// +----------------------------------------------------------------------+
+//
+// $Id: Decorators.php 13349 2006-03-28 10:54:53Z jenst $
+//
+/**
+* Decorators for dealing with parser options
+* @package XML_HTMLSax3
+* @version $Id: Decorators.php 13349 2006-03-28 10:54:53Z jenst $
+* @see XML_HTMLSax3::set_option
+*/
+/**
+* Trims the contents of element data from whitespace at start and end
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Trim {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_Trim
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_Trim(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Trims the data
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function trimData(&$parser, $data) {
+        $data = trim($data);
+        if ($data != '') {
+            $this->orig_obj->{$this->orig_method}($parser, $data);
+        }
+    }
+}
+/**
+* Coverts tag names to upper case
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_CaseFolding {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original open handler method
+    * @var string
+    * @access private
+    */
+    var $orig_open_method;
+    /**
+    * Original close handler method
+    * @var string
+    * @access private
+    */
+    var $orig_close_method;
+    /**
+    * Constructs XML_HTMLSax3_CaseFolding
+    * @param object handler object being decorated
+    * @param string original open handler method
+    * @param string original close handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_CaseFolding(&$orig_obj, $orig_open_method, $orig_close_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_open_method = $orig_open_method;
+        $this->orig_close_method = $orig_close_method;
+    }
+    /**
+    * Folds up open tag callbacks
+    * @param XML_HTMLSax3
+    * @param string tag name
+    * @param array tag attributes
+    * @access protected
+    */
+    function foldOpen(&$parser, $tag, $attrs=array(), $empty = FALSE) {
+        $this->orig_obj->{$this->orig_open_method}($parser, strtoupper($tag), $attrs, $empty);
+    }
+    /**
+    * Folds up close tag callbacks
+    * @param XML_HTMLSax3
+    * @param string tag name
+    * @access protected
+    */
+    function foldClose(&$parser, $tag, $empty = FALSE) {
+        $this->orig_obj->{$this->orig_close_method}($parser, strtoupper($tag), $empty);
+    }
+}
+/**
+* Breaks up data by linefeed characters, resulting in additional
+* calls to the data handler
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Linefeed {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_LineFeed
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_LineFeed(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Breaks the data up by linefeeds
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function breakData(&$parser, $data) {
+        $data = explode("\n",$data);
+        foreach ( $data as $chunk ) {
+            $this->orig_obj->{$this->orig_method}($parser, $chunk);
+        }
+    }
+}
+/**
+* Breaks up data by tab characters, resulting in additional
+* calls to the data handler
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Tab {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_Tab
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_Tab(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Breaks the data up by linefeeds
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function breakData(&$parser, $data) {
+        $data = explode("\t",$data);
+        foreach ( $data as $chunk ) {
+            $this->orig_obj->{$this->orig_method}($this, $chunk);
+        }
+    }
+}
+/**
+* Breaks up data by XML entities and parses them with html_entity_decode(),
+* resulting in additional calls to the data handler<br />
+* Requires PHP 4.3.0+
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Entities_Parsed {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_Entities_Parsed
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_Entities_Parsed(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Breaks the data up by XML entities
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function breakData(&$parser, $data) {
+        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
+        foreach ( $data as $chunk ) {
+            $chunk = html_entity_decode($chunk,ENT_NOQUOTES);
+            $this->orig_obj->{$this->orig_method}($this, $chunk);
+        }
+    }
+}
+/**
+* Compatibility with older PHP versions
+*/
+if (version_compare(phpversion(), '4.3', '<') && !function_exists('html_entity_decode') ) {
+    function html_entity_decode($str, $style=ENT_NOQUOTES) {
+        return strtr($str,
+            array_flip(get_html_translation_table(HTML_ENTITIES,$style)));
+    }
+}
+/**
+* Breaks up data by XML entities but leaves them unparsed,
+* resulting in additional calls to the data handler<br />
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Entities_Unparsed {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_Entities_Unparsed
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_Entities_Unparsed(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Breaks the data up by XML entities
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function breakData(&$parser, $data) {
+        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
+        foreach ( $data as $chunk ) {
+            $this->orig_obj->{$this->orig_method}($this, $chunk);
+        }
+    }
+}
+
+/**
+* Strips the HTML comment markers or CDATA sections from an escape.
+* If XML_OPTIONS_FULL_ESCAPES is on, this decorator is not used.<br />
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_Escape_Stripper {
+    /**
+    * Original handler object
+    * @var object
+    * @access private
+    */
+    var $orig_obj;
+    /**
+    * Original handler method
+    * @var string
+    * @access private
+    */
+    var $orig_method;
+    /**
+    * Constructs XML_HTMLSax3_Entities_Unparsed
+    * @param object handler object being decorated
+    * @param string original handler method
+    * @access protected
+    */
+    function XML_HTMLSax3_Escape_Stripper(&$orig_obj, $orig_method) {
+        $this->orig_obj =& $orig_obj;
+        $this->orig_method = $orig_method;
+    }
+    /**
+    * Breaks the data up by XML entities
+    * @param XML_HTMLSax3
+    * @param string element data
+    * @access protected
+    */
+    function strip(&$parser, $data) {
+        // Check for HTML comments first
+        if ( substr($data,0,2) == '--' ) {
+            $patterns = array(
+                '/^\-\-/',          // Opening comment: --
+                '/\-\-$/',          // Closing comment: --
+            );
+            $data = preg_replace($patterns,'',$data);
+
+        // Check for XML CDATA sections (note: don't do both!)
+        } else if ( substr($data,0,1) == '[' ) {
+            $patterns = array(
+                '/^\[.*CDATA.*\[/s', // Opening CDATA
+                '/\].*\]$/s',       // Closing CDATA
+                );
+            $data = preg_replace($patterns,'',$data);
+        }
+
+        $this->orig_obj->{$this->orig_method}($this, $data);
+    }
+}
 ?>
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/States.php gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3/States.php
--- gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/States.php	2006-03-28 12:54:52.000000000 +0200
+++ gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3/States.php	2006-03-28 12:54:53.000000000 +0200
@@ -1,287 +1,287 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4: */
-//
-// +----------------------------------------------------------------------+
-// | PHP Version 4                                                        |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PHP Group                                |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 2.02 of the PHP license,      |
-// | that is bundled with this package in the file LICENSE, and is        |
-// | available at through the world-wide-web at                           |
-// | http://www.php.net/license/3_0.txt.                                  |
-// | If you did not receive a copy of the PHP license and are unable to   |
-// | obtain it through the world-wide-web, please send a note to          |
-// | license@php.net so we can mail you a copy immediately.               |
-// +----------------------------------------------------------------------+
-// | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
-// | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more  |
-// | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
-// +----------------------------------------------------------------------+
-//
-// $Id: States.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
-//
-/**
-* Parsing states.
-* @package XML_HTMLSax3
-* @version $Id: States.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
-*/
-/**
-* Define parser states
-*/
-define('XML_HTMLSAX3_STATE_STOP', 0);
-define('XML_HTMLSAX3_STATE_START', 1);
-define('XML_HTMLSAX3_STATE_TAG', 2);
-define('XML_HTMLSAX3_STATE_OPENING_TAG', 3);
-define('XML_HTMLSAX3_STATE_CLOSING_TAG', 4);
-define('XML_HTMLSAX3_STATE_ESCAPE', 6);
-define('XML_HTMLSAX3_STATE_JASP', 7);
-define('XML_HTMLSAX3_STATE_PI', 8);
-/**
-* StartingState searches for the start of any XML tag
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_StartingState  {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_TAG
-    * @access protected
-    */
-    function parse(&$context) {
-        $data = $context->scanUntilString('<');
-        if ($data != '') {
-            $context->handler_object_data->
-                {$context->handler_method_data}($context->htmlsax, $data);
-        }
-        $context->IgnoreCharacter();
-        return XML_HTMLSAX3_STATE_TAG;
-    }
-}
-/**
-* Decides which state to move one from after StartingState
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_TagState {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant the next state to move into
-    * @access protected
-    */
-    function parse(&$context) {
-        switch($context->ScanCharacter()) {
-        case '/':
-            return XML_HTMLSAX3_STATE_CLOSING_TAG;
-            break;
-        case '?':
-            return XML_HTMLSAX3_STATE_PI;
-            break;
-        case '%':
-            return XML_HTMLSAX3_STATE_JASP;
-            break;
-        case '!':
-            return XML_HTMLSAX3_STATE_ESCAPE;
-            break;
-        default:
-            $context->unscanCharacter();
-            return XML_HTMLSAX3_STATE_OPENING_TAG;
-        }
-    }
-}
-/**
-* Dealing with closing XML tags
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_ClosingTagState {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_START
-    * @access protected
-    */
-    function parse(&$context) {
-        $tag = $context->scanUntilCharacters('/>');
-        if ($tag != '') {
-            $char = $context->scanCharacter();
-            if ($char == '/') {
-                $char = $context->scanCharacter();
-                if ($char != '>') {
-                    $context->unscanCharacter();
-                }
-            }
-            $context->handler_object_element->
-                {$context->handler_method_closing}($context->htmlsax, $tag, FALSE);
-        }
-        return XML_HTMLSAX3_STATE_START;
-    }
-}
-/**
-* Dealing with opening XML tags
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_OpeningTagState {
-    /**
-    * Handles attributes
-    * @param string attribute name
-    * @param string attribute value
-    * @return void
-    * @access protected
-    * @see XML_HTMLSax3_AttributeStartState
-    */
-    function parseAttributes(&$context) {
-        $Attributes = array();
-    
-        $context->ignoreWhitespace();
-        $attributename = $context->scanUntilCharacters("=/> \n\r\t");
-        while ($attributename != '') {
-            $attributevalue = NULL;
-            $context->ignoreWhitespace();
-            $char = $context->scanCharacter();
-            if ($char == '=') {
-                $context->ignoreWhitespace();
-                $char = $context->ScanCharacter();
-                if ($char == '"') {
-                    $attributevalue= $context->scanUntilString('"');
-                    $context->IgnoreCharacter();
-                } else if ($char == "'") {
-                    $attributevalue = $context->scanUntilString("'");
-                    $context->IgnoreCharacter();
-                } else {
-                    $context->unscanCharacter();
-                    $attributevalue =
-                        $context->scanUntilCharacters("> \n\r\t");
-                }
-            } else if ($char !== NULL) {
-                $attributevalue = NULL;
-                $context->unscanCharacter();
-            }
-            $Attributes[$attributename] = $attributevalue;
-            
-            $context->ignoreWhitespace();
-            $attributename = $context->scanUntilCharacters("=/> \n\r\t");
-        }
-        return $Attributes;
-    }
-
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_START
-    * @access protected
-    */
-    function parse(&$context) {
-        $tag = $context->scanUntilCharacters("/> \n\r\t");
-        if ($tag != '') {
-            $this->attrs = array();
-            $Attributes = $this->parseAttributes($context);
-            $char = $context->scanCharacter();
-            if ($char == '/') {
-                $char = $context->scanCharacter();
-                if ($char != '>') {
-                    $context->unscanCharacter();
-                }
-                $context->handler_object_element->
-                    {$context->handler_method_opening}($context->htmlsax, $tag, 
-                    $Attributes, TRUE);
-                $context->handler_object_element->
-                    {$context->handler_method_closing}($context->htmlsax, $tag, 
-                    TRUE);
-            } else {
-                $context->handler_object_element->
-                    {$context->handler_method_opening}($context->htmlsax, $tag, 
-                    $Attributes, FALSE);
-            }
-        }
-        return XML_HTMLSAX3_STATE_START;
-    }
-}
-
-/**
-* Deals with XML escapes handling comments and CDATA correctly
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_EscapeState {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_START
-    * @access protected
-    */
-    function parse(&$context) {
-        $char = $context->ScanCharacter();
-        if ($char == '-') {
-            $char = $context->ScanCharacter();
-            if ($char == '-') {
-                $context->unscanCharacter();
-                $context->unscanCharacter();
-                $text = $context->scanUntilString('-->');
-                $text .= $context->scanCharacter();
-                $text .= $context->scanCharacter();
-            } else {
-                $context->unscanCharacter();
-                $text = $context->scanUntilString('>');
-            }
-        } else if ( $char == '[') {
-            $context->unscanCharacter();
-            $text = $context->scanUntilString(']>');
-            $text.= $context->scanCharacter();
-        } else {
-            $context->unscanCharacter();
-            $text = $context->scanUntilString('>');
-        }
-
-        $context->IgnoreCharacter();
-        if ($text != '') {
-            $context->handler_object_escape->
-            {$context->handler_method_escape}($context->htmlsax, $text);
-        }
-        return XML_HTMLSAX3_STATE_START;
-    }
-}
-/**
-* Deals with JASP/ASP markup
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_JaspState {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_START
-    * @access protected
-    */
-    function parse(&$context) {
-        $text = $context->scanUntilString('%>');
-        if ($text != '') {
-            $context->handler_object_jasp->
-                {$context->handler_method_jasp}($context->htmlsax, $text);
-        }
-        $context->IgnoreCharacter();
-        $context->IgnoreCharacter();
-        return XML_HTMLSAX3_STATE_START;
-    }
-}
-/**
-* Deals with XML processing instructions
-* @package XML_HTMLSax3
-* @access protected
-*/
-class XML_HTMLSax3_PiState {
-    /**
-    * @param XML_HTMLSax3_StateParser subclass
-    * @return constant XML_HTMLSAX3_STATE_START
-    * @access protected
-    */
-    function parse(&$context) {
-        $target = $context->scanUntilCharacters(" \n\r\t");
-        $data = $context->scanUntilString('?>');
-        if ($data != '') {
-            $context->handler_object_pi->
-            {$context->handler_method_pi}($context->htmlsax, $target, $data);
-        }
-        $context->IgnoreCharacter();
-        $context->IgnoreCharacter();
-        return XML_HTMLSAX3_STATE_START;
-    }
-}
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4: */
+//
+// +----------------------------------------------------------------------+
+// | PHP Version 4                                                        |
+// +----------------------------------------------------------------------+
+// | Copyright (c) 1997-2002 The PHP Group                                |
+// +----------------------------------------------------------------------+
+// | This source file is subject to version 2.02 of the PHP license,      |
+// | that is bundled with this package in the file LICENSE, and is        |
+// | available at through the world-wide-web at                           |
+// | http://www.php.net/license/3_0.txt.                                  |
+// | If you did not receive a copy of the PHP license and are unable to   |
+// | obtain it through the world-wide-web, please send a note to          |
+// | license@php.net so we can mail you a copy immediately.               |
+// +----------------------------------------------------------------------+
+// | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
+// | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more  |
+// | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
+// +----------------------------------------------------------------------+
+//
+// $Id: States.php 13349 2006-03-28 10:54:53Z jenst $
+//
+/**
+* Parsing states.
+* @package XML_HTMLSax3
+* @version $Id: States.php 13349 2006-03-28 10:54:53Z jenst $
+*/
+/**
+* Define parser states
+*/
+define('XML_HTMLSAX3_STATE_STOP', 0);
+define('XML_HTMLSAX3_STATE_START', 1);
+define('XML_HTMLSAX3_STATE_TAG', 2);
+define('XML_HTMLSAX3_STATE_OPENING_TAG', 3);
+define('XML_HTMLSAX3_STATE_CLOSING_TAG', 4);
+define('XML_HTMLSAX3_STATE_ESCAPE', 6);
+define('XML_HTMLSAX3_STATE_JASP', 7);
+define('XML_HTMLSAX3_STATE_PI', 8);
+/**
+* StartingState searches for the start of any XML tag
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_StartingState  {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_TAG
+    * @access protected
+    */
+    function parse(&$context) {
+        $data = $context->scanUntilString('<');
+        if ($data != '') {
+            $context->handler_object_data->
+                {$context->handler_method_data}($context->htmlsax, $data);
+        }
+        $context->IgnoreCharacter();
+        return XML_HTMLSAX3_STATE_TAG;
+    }
+}
+/**
+* Decides which state to move one from after StartingState
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_TagState {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant the next state to move into
+    * @access protected
+    */
+    function parse(&$context) {
+        switch($context->ScanCharacter()) {
+        case '/':
+            return XML_HTMLSAX3_STATE_CLOSING_TAG;
+            break;
+        case '?':
+            return XML_HTMLSAX3_STATE_PI;
+            break;
+        case '%':
+            return XML_HTMLSAX3_STATE_JASP;
+            break;
+        case '!':
+            return XML_HTMLSAX3_STATE_ESCAPE;
+            break;
+        default:
+            $context->unscanCharacter();
+            return XML_HTMLSAX3_STATE_OPENING_TAG;
+        }
+    }
+}
+/**
+* Dealing with closing XML tags
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_ClosingTagState {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_START
+    * @access protected
+    */
+    function parse(&$context) {
+        $tag = $context->scanUntilCharacters('/>');
+        if ($tag != '') {
+            $char = $context->scanCharacter();
+            if ($char == '/') {
+                $char = $context->scanCharacter();
+                if ($char != '>') {
+                    $context->unscanCharacter();
+                }
+            }
+            $context->handler_object_element->
+                {$context->handler_method_closing}($context->htmlsax, $tag, FALSE);
+        }
+        return XML_HTMLSAX3_STATE_START;
+    }
+}
+/**
+* Dealing with opening XML tags
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_OpeningTagState {
+    /**
+    * Handles attributes
+    * @param string attribute name
+    * @param string attribute value
+    * @return void
+    * @access protected
+    * @see XML_HTMLSax3_AttributeStartState
+    */
+    function parseAttributes(&$context) {
+        $Attributes = array();
+    
+        $context->ignoreWhitespace();
+        $attributename = $context->scanUntilCharacters("=/> \n\r\t");
+        while ($attributename != '') {
+            $attributevalue = NULL;
+            $context->ignoreWhitespace();
+            $char = $context->scanCharacter();
+            if ($char == '=') {
+                $context->ignoreWhitespace();
+                $char = $context->ScanCharacter();
+                if ($char == '"') {
+                    $attributevalue= $context->scanUntilString('"');
+                    $context->IgnoreCharacter();
+                } else if ($char == "'") {
+                    $attributevalue = $context->scanUntilString("'");
+                    $context->IgnoreCharacter();
+                } else {
+                    $context->unscanCharacter();
+                    $attributevalue =
+                        $context->scanUntilCharacters("> \n\r\t");
+                }
+            } else if ($char !== NULL) {
+                $attributevalue = NULL;
+                $context->unscanCharacter();
+            }
+            $Attributes[$attributename] = $attributevalue;
+            
+            $context->ignoreWhitespace();
+            $attributename = $context->scanUntilCharacters("=/> \n\r\t");
+        }
+        return $Attributes;
+    }
+
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_START
+    * @access protected
+    */
+    function parse(&$context) {
+        $tag = $context->scanUntilCharacters("/> \n\r\t");
+        if ($tag != '') {
+            $this->attrs = array();
+            $Attributes = $this->parseAttributes($context);
+            $char = $context->scanCharacter();
+            if ($char == '/') {
+                $char = $context->scanCharacter();
+                if ($char != '>') {
+                    $context->unscanCharacter();
+                }
+                $context->handler_object_element->
+                    {$context->handler_method_opening}($context->htmlsax, $tag, 
+                    $Attributes, TRUE);
+                $context->handler_object_element->
+                    {$context->handler_method_closing}($context->htmlsax, $tag, 
+                    TRUE);
+            } else {
+                $context->handler_object_element->
+                    {$context->handler_method_opening}($context->htmlsax, $tag, 
+                    $Attributes, FALSE);
+            }
+        }
+        return XML_HTMLSAX3_STATE_START;
+    }
+}
+
+/**
+* Deals with XML escapes handling comments and CDATA correctly
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_EscapeState {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_START
+    * @access protected
+    */
+    function parse(&$context) {
+        $char = $context->ScanCharacter();
+        if ($char == '-') {
+            $char = $context->ScanCharacter();
+            if ($char == '-') {
+                $context->unscanCharacter();
+                $context->unscanCharacter();
+                $text = $context->scanUntilString('-->');
+                $text .= $context->scanCharacter();
+                $text .= $context->scanCharacter();
+            } else {
+                $context->unscanCharacter();
+                $text = $context->scanUntilString('>');
+            }
+        } else if ( $char == '[') {
+            $context->unscanCharacter();
+            $text = $context->scanUntilString(']>');
+            $text.= $context->scanCharacter();
+        } else {
+            $context->unscanCharacter();
+            $text = $context->scanUntilString('>');
+        }
+
+        $context->IgnoreCharacter();
+        if ($text != '') {
+            $context->handler_object_escape->
+            {$context->handler_method_escape}($context->htmlsax, $text);
+        }
+        return XML_HTMLSAX3_STATE_START;
+    }
+}
+/**
+* Deals with JASP/ASP markup
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_JaspState {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_START
+    * @access protected
+    */
+    function parse(&$context) {
+        $text = $context->scanUntilString('%>');
+        if ($text != '') {
+            $context->handler_object_jasp->
+                {$context->handler_method_jasp}($context->htmlsax, $text);
+        }
+        $context->IgnoreCharacter();
+        $context->IgnoreCharacter();
+        return XML_HTMLSAX3_STATE_START;
+    }
+}
+/**
+* Deals with XML processing instructions
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_PiState {
+    /**
+    * @param XML_HTMLSax3_StateParser subclass
+    * @return constant XML_HTMLSAX3_STATE_START
+    * @access protected
+    */
+    function parse(&$context) {
+        $target = $context->scanUntilCharacters(" \n\r\t");
+        $data = $context->scanUntilString('?>');
+        if ($data != '') {
+            $context->handler_object_pi->
+            {$context->handler_method_pi}($context->htmlsax, $target, $data);
+        }
+        $context->IgnoreCharacter();
+        $context->IgnoreCharacter();
+        return XML_HTMLSAX3_STATE_START;
+    }
+}
 ?>
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3.php gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3.php
--- gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3.php	2006-03-28 12:54:52.000000000 +0200
+++ gallery-1.5.4/classes/XML_HTMLSax3/HTMLSax3.php	2006-03-28 12:54:53.000000000 +0200
@@ -19,12 +19,12 @@
 // | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
 // +----------------------------------------------------------------------+
 //
-// $Id: HTMLSax3.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
+// $Id: HTMLSax3.php 13349 2006-03-28 10:54:53Z jenst $
 //
 /**
 * Main parser components
 * @package XML_HTMLSax3
-* @version $Id: HTMLSax3.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
+* @version $Id: HTMLSax3.php 13349 2006-03-28 10:54:53Z jenst $
 */
 /**
 * Required classes
diff -Naur gallery-1.5.3/configure.sh gallery-1.5.4/configure.sh
--- gallery-1.5.3/configure.sh	2004-06-09 23:48:15.000000000 +0200
+++ gallery-1.5.4/configure.sh	2004-06-09 23:48:15.000000000 +0200
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: configure.sh,v 1.11 2004/06/09 21:48:15 cryptographite Exp $
+# $Id: configure.sh 6290 2004-06-09 21:48:15Z cryptographite $
 
 chmod 755 setup
 
diff -Naur gallery-1.5.3/contrib/joomla/admin.gallery.html.php gallery-1.5.4/contrib/joomla/admin.gallery.html.php
--- gallery-1.5.3/contrib/joomla/admin.gallery.html.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/admin.gallery.html.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: admin.gallery.html.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: admin.gallery.html.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 class HTML_content {
diff -Naur gallery-1.5.3/contrib/joomla/admin.gallery.php gallery-1.5.4/contrib/joomla/admin.gallery.php
--- gallery-1.5.3/contrib/joomla/admin.gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/admin.gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: admin.gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: admin.gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/joomla/classes/mambo.php gallery-1.5.4/contrib/joomla/classes/mambo.php
--- gallery-1.5.3/contrib/joomla/classes/mambo.php	2005-10-17 19:46:12.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/classes/mambo.php	2005-10-17 19:46:13.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: mambo.php,v 1.1 2005/10/17 17:46:12 jenst Exp $
+// $Id: mambo.php 11822 2005-10-17 17:46:13Z jenst $
 /**
 * Foundation classes
 * @package Mambo Open Source
@@ -7,7 +7,7 @@
 * @ All rights reserved
 * @ Mambo Open Source is Free Software
 * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
-* @version $Revision: 1.1 $
+* @version $Revision: 11822 $
 **/
 
 // ensure this file is being included by a parent file
diff -Naur gallery-1.5.3/contrib/joomla/gallery.php gallery-1.5.4/contrib/joomla/gallery.php
--- gallery-1.5.3/contrib/joomla/gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/joomla/gallery.xml gallery-1.5.4/contrib/joomla/gallery.xml
--- gallery-1.5.3/contrib/joomla/gallery.xml	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/gallery.xml	2006-03-27 17:32:14.000000000 +0200
@@ -21,7 +21,7 @@
  | Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  | Last author: Kai Tomalik <kai@gallery-addons.com>
  |
- | $Id: gallery.xml,v 1.3.2.1 2006/03/27 15:31:28 jenst Exp $
+ | $Id: gallery.xml 13338 2006-03-27 15:32:14Z jenst $
 -->
 <mosinstall type="component" version="1.05">
 	<name>Gallery</name>
diff -Naur gallery-1.5.3/contrib/joomla/includes/frontend.php gallery-1.5.4/contrib/joomla/includes/frontend.php
--- gallery-1.5.3/contrib/joomla/includes/frontend.php	2005-10-17 19:46:12.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/includes/frontend.php	2005-10-17 19:46:13.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: frontend.php,v 1.1 2005/10/17 17:46:12 jenst Exp $
+// $Id: frontend.php 11822 2005-10-17 17:46:13Z jenst $
 /**
 * Content code
 * @package Mambo Open Source
@@ -7,7 +7,7 @@
 * @ All rights reserved
 * @ Mambo Open Source is Free Software
 * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
-* @version $Revision: 1.1 $
+* @version $Revision: 11822 $
 **/
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/joomla/toolbar.gallery.php gallery-1.5.4/contrib/joomla/toolbar.gallery.php
--- gallery-1.5.3/contrib/joomla/toolbar.gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/joomla/toolbar.gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: toolbar.gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: toolbar.gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 require_once($mainframe->getPath('toolbar_default'));
diff -Naur gallery-1.5.3/contrib/mambo/admin.gallery.html.php gallery-1.5.4/contrib/mambo/admin.gallery.html.php
--- gallery-1.5.3/contrib/mambo/admin.gallery.html.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/admin.gallery.html.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: admin.gallery.html.php,v 1.4.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: admin.gallery.html.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 class HTML_content {
diff -Naur gallery-1.5.3/contrib/mambo/admin.gallery.php gallery-1.5.4/contrib/mambo/admin.gallery.php
--- gallery-1.5.3/contrib/mambo/admin.gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/admin.gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: admin.gallery.php,v 1.5.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: admin.gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/mambo/classes/mambo.php gallery-1.5.4/contrib/mambo/classes/mambo.php
--- gallery-1.5.3/contrib/mambo/classes/mambo.php	2004-08-06 07:42:30.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/classes/mambo.php	2004-08-06 07:42:31.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: mambo.php,v 1.5 2004/08/06 05:42:30 cryptographite Exp $
+// $Id: mambo.php 7038 2004-08-06 05:42:31Z cryptographite $
 /**
 * Foundation classes
 * @package Mambo Open Source
@@ -7,7 +7,7 @@
 * @ All rights reserved
 * @ Mambo Open Source is Free Software
 * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
-* @version $Revision: 1.5 $
+* @version $Revision: 7038 $
 **/
 
 // ensure this file is being included by a parent file
diff -Naur gallery-1.5.3/contrib/mambo/gallery.php gallery-1.5.4/contrib/mambo/gallery.php
--- gallery-1.5.3/contrib/mambo/gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: gallery.php,v 1.6.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/mambo/gallery.xml gallery-1.5.4/contrib/mambo/gallery.xml
--- gallery-1.5.3/contrib/mambo/gallery.xml	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/gallery.xml	2006-03-27 17:32:14.000000000 +0200
@@ -21,7 +21,7 @@
  | Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  | Last author: Kai Tomalik <kai@gallery-addons.com>
  |
- | $Id: gallery.xml,v 1.7.2.1 2006/03/27 15:31:28 jenst Exp $
+ | $Id: gallery.xml 13338 2006-03-27 15:32:14Z jenst $
 -->
 <mosinstall type="component" version="4.5">
 	<name>Gallery</name>
diff -Naur gallery-1.5.3/contrib/mambo/includes/frontend.php gallery-1.5.4/contrib/mambo/includes/frontend.php
--- gallery-1.5.3/contrib/mambo/includes/frontend.php	2004-04-23 18:11:42.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/includes/frontend.php	2004-04-23 18:11:45.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: frontend.php,v 1.2 2004/04/23 16:11:42 jenst Exp $
+// $Id: frontend.php 5898 2004-04-23 16:11:45Z jenst $
 /**
 * Content code
 * @package Mambo Open Source
@@ -7,7 +7,7 @@
 * @ All rights reserved
 * @ Mambo Open Source is Free Software
 * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
-* @version $Revision: 1.2 $
+* @version $Revision: 5898 $
 **/
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.3/contrib/mambo/toolbar.gallery.php gallery-1.5.4/contrib/mambo/toolbar.gallery.php
--- gallery-1.5.3/contrib/mambo/toolbar.gallery.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/mambo/toolbar.gallery.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * Gallery Component for Mambo Open Source CMS v4.5 or newer
  * Original author: Beckett Madden-Woods <beckett@beckettmw.com>
  *
- * $Id: toolbar.gallery.php,v 1.4.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: toolbar.gallery.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 require_once($mainframe->getPath('toolbar_default'));
diff -Naur gallery-1.5.3/contrib/phpBB2/modules.php gallery-1.5.4/contrib/phpBB2/modules.php
--- gallery-1.5.3/contrib/phpBB2/modules.php	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/phpBB2/modules.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: modules.php,v 1.10.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: modules.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/contrib/phpnuke/block-Random_Image.php.sample gallery-1.5.4/contrib/phpnuke/block-Random_Image.php.sample
--- gallery-1.5.3/contrib/phpnuke/block-Random_Image.php.sample	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/contrib/phpnuke/block-Random_Image.php.sample	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: block-Random_Image.php.sample,v 1.5.2.1 2006/03/27 15:31:28 jenst Exp $
+ * $Id: block-Random_Image.php.sample 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/copy_photo.php gallery-1.5.4/copy_photo.php
--- gallery-1.5.3/copy_photo.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/copy_photo.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: copy_photo.php,v 1.28.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: copy_photo.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/create_user.php gallery-1.5.4/create_user.php
--- gallery-1.5.3/create_user.php	2006-03-27 17:31:24.000000000 +0200
+++ gallery-1.5.4/create_user.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: create_user.php,v 1.57.2.1 2006/03/27 15:31:24 jenst Exp $
+ * $Id: create_user.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/css/base.css.default gallery-1.5.4/css/base.css.default
--- gallery-1.5.3/css/base.css.default	2006-04-04 23:58:24.000000000 +0200
+++ gallery-1.5.4/css/base.css.default	2006-08-14 09:41:08.000000000 +0200
@@ -1,21 +1,21 @@
 /* This is the base style sheet that is used anytime in Gallery.
 
-   If you would like to customize the styles please create 
-   copy of this file called 
+   If you would like to customize the styles please create
+   copy of this file called
 
      "base.css" (same name without ".default")
 
-   If that file is found in this directory it will be 
+   If that file is found in this directory it will be
    used instead of this one.
 
-   Some of the styles below are overridden by specific 
+   Some of the styles below are overridden by specific
    album properties.
 
-   $Id: base.css.default,v 1.29.2.2 2006/04/04 21:58:24 jenst Exp $
-*/ 
+   $Id: base.css.default 14310 2006-08-14 07:41:08Z jenst $
+*/
 
 
-/* 
+/*
    default text styles - background and colors overridden by
    album 'bgcolor', 'background', and 'textcolor' properties.
 */
@@ -27,7 +27,7 @@
     border: none;
 }
 
-td,p { 
+td,p {
 }
 
 a {
@@ -48,14 +48,14 @@
 	margin:0px;
 }
 
-/* 
-   text styles 
+/*
+   text styles
 */
 
 /* album titles on main page */
-.title { 
-    font-size: 14px; 
-    font-weight: bold; 
+.title {
+    font-size: 14px;
+    font-weight: bold;
     white-space: nowrap;
 }
 
@@ -79,16 +79,16 @@
 	{
 	}
 .desc                           /* album descriptions on main page */
-	{ 
-	  font-size: 12px; 
+	{
+	  font-size: 12px;
 	}
 .caption                        /* photo captions on all pages */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	}
 .modcaption  /* modifies background for caption text to reside - view_album */
 	{
-	  font-size: 10px; 
+	  font-size: 10px;
 	}
 .pcaption  /* modifies background for caption text to reside - view_photo*/
 {
@@ -110,13 +110,13 @@
  	{
  	   float: none;
  	}
- 
+
 .vafloat2 /* float for view album - images */
  	{
  	 float: none;
 	}
 
- /* controls the view of Album summary */ 
+ /* controls the view of Album summary */
 .vasummary {
     font-weight:bold;
     padding:2px;
@@ -130,9 +130,9 @@
 }
 
 .error                          /* all error text */
-{ 
-      color: red; 
-      font-size: 12px; 
+{
+      color: red;
+      font-size: 12px;
 }
 
 a.error, a.error:link, a.error:visited, a.error:active {
@@ -156,9 +156,9 @@
 	}
 
 /* Page headers */
-.head { 
-    font-size: 16px; 
-    font-weight: bold; 
+.head {
+    font-size: 16px;
+    font-weight: bold;
     white-space: nowrap;
 }
 
@@ -176,7 +176,7 @@
 	}
 
 /* used in breadcrumb bars */
-.bread { 
+.bread {
     font-size: 10px;
 }
 
@@ -185,8 +185,8 @@
 }
 
 .nav                            /* used in navigation bars */
-	{ 
-	  font-size: 12px; 
+	{
+	  font-size: 12px;
 	}
 .navtableborderbegin
 	{
@@ -252,7 +252,7 @@
 	  font-size: 10px;
 	}
 
-.viewcounter 
+.viewcounter
 	{
 	  font-size: 10px;
 	}
@@ -265,26 +265,26 @@
 	{
 	}
 .admin                          /* used in admin bars */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 
 .adminform /* defines form for drop down menu */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 
 .search                          /* used in search text */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 
 .searchform /* defines form for search */
 	{
-	  font-size: 10px; 
+	  font-size: 10px;
 	  font-weight: bold;
 	}
 
@@ -295,7 +295,7 @@
 .modnavboxtop  /*navagation bar top of screen where admin buttons show*/
 	{
 	background-color: #5E72CC;
- 
+
      }
 .modnavboxmid  /*navagation bar middle where the link for the albums show*/
 	{
@@ -306,11 +306,11 @@
 	}
 
 
-.popupbody  /* controls the background of popup. */ 
+.popupbody  /* controls the background of popup. */
 {
 }
-	
-.popuphead  /* controls the title and background */ 
+
+.popuphead  /* controls the title and background */
 {
     text-align:center;
     font-size: 14px; font-weight: bold;
@@ -321,7 +321,7 @@
 {
     font-size: 12px; font-weight: normal;
     padding: 5px;
-    padding-top:0px; 
+    padding-top:0px;
     margin-bottom: 10px;
 }
 
@@ -338,8 +338,8 @@
 .popup td {
 }
 
-.popup td.tab-hi {
-    color: #FFFFFF;
+.popup {
+    color: #FFF;
 }
 
 /* CSS ID for the add photos popup */
@@ -356,12 +356,12 @@
 }
 
 #tabnav li {
-	margin: 0px; 
+	margin: 0px;
 	padding: 0px;
   	display: inline;
   	list-style-type: none;
 }
-	
+
 #tabnav a:link, #tabnav a:visited {
     float: left;
     font-size: 11px;
@@ -440,72 +440,31 @@
 }
 
 /* Used on Adminpage */
-td.adm_options { 
-    vertical-align: top; 
-    height: 30px; 
+td.adm_options {
+    vertical-align: top;
+    height: 30px;
     padding: 5px;
 }
 
 /* Following two classes are used in stats-wizard */
- .blockcell { 
-    vertical-align: top; 
+ .blockcell {
+    vertical-align: top;
     border-bottom: 1px solid #000000;
 }
-        
-caption {
-    font-weight:bold; 
-    margin-bottom: 5px;
-}
-
-.tab {
-    border:1px solid black;
-    background-color:white;
-    color: #000000;
-    -moz-border-radius-topleft:10px;
-    -moz-border-radius-topright:10px;
-    cursor: pointer;
-    text-align:center;
-    padding:5px;
-    margin-left:10px;
-
-    text-decoration:underline;
-    font-weight:bold;
-}
-
-.tab-hi {
-    border:1px solid black;
-    background-color: #6274CB; color: #000000;
-    -moz-border-radius-topleft:10px;
-    -moz-border-radius-topright:10px;
-    cursor: pointer;
-    text-align:center;
-    padding:5px;
-    margin-left:10px;
-
-    text-decoration:underline;
-    font-weight:bold;
-}
 
-/* Outdated, will be removed soon */
-.tab-text { 
-    text-decoration:underline; 
+caption {
     font-weight:bold;
+    margin-bottom: 5px;
 }
 
-.littlered { 
+.littlered {
     font-size: 10px;
     color:red;
     vertical-align:top;
 }
 
-td.tabspacer {
-    border-bottom-width: 1px;
-    border-bottom-style:solid;
-    border-color: black;
-}
-
 .MLForm {
-    margin: 0px; 
+    margin: 0px;
     margin-bottom: 2px;
     padding: 0px;
     text-align: right;
@@ -557,4 +516,76 @@
 
 .g-iconmenu td {
     text-align: center;
+}
+
+.g-va-poll-box1 {
+    font-size: 8pt;
+    margin: 2px;
+}
+
+.g-va-poll-resultbox {
+    font-size: 8pt;
+    margin: 2px;
+}
+
+
+.g-va-poll-box3 {
+    font-size: 9pt;
+    margin: 2px;
+}
+
+/* ---- */
+
+.infoline_success {
+    color: #00BF00;
+    text-align:center;
+    font-size: 12px;
+    border: 1px solid ;
+    padding: 2px;
+    margin: 2px;
+}
+
+.infoline_error {
+    text-align:center;
+    font-size: 12px;
+    border: 1px solid red;
+    padding: 2px;
+    margin: 2px;
+}
+
+.infoline_notice {
+    color: #BF0000;
+    text-align: left;
+    font-size: 12px;
+    border: 1px solid #BF0000;
+    padding: 2px;
+    margin: 2px;
+}
+
+.g-tabset {
+    width: 100%;
+    font-weight: bold;
+    border-bottom: 1px solid black;
+    margin: 2px 0;
+}
+
+.g-tabset a {
+    margin: -2px 0 -1px 2px;
+    white-space: nowrap;
+    text-decoration: none;
+    color: #000;
+    background-color: #FCFCF3;
+    padding: 2px 0.5em;
+    display: block;
+    border: 1px solid #000;
+    -moz-border-radius-topleft: 10px;
+    -moz-border-radius-topright: 10px;
+}
+
+.g-tabset a:hover {
+    text-decoration: none;
+}
+
+.g-tabset a.tab-hi {
+    border-bottom: 1px solid #000;
 }
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/css/config.css.default gallery-1.5.4/css/config.css.default
--- gallery-1.5.3/css/config.css.default	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/css/config.css.default	2006-08-14 09:41:08.000000000 +0200
@@ -1,26 +1,26 @@
 /*
-  $Id: config.css.default,v 1.30.2.1 2006/03/27 15:31:28 jenst Exp $
- 
+  $Id: config.css.default 14310 2006-08-14 07:41:08Z jenst $
+
   Gallery - a web based photo album viewer and editor
   Copyright (C) 2000-2006 Bharat Mediratta
- 
+
   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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 
-*/ 
+*/
 
-body { 
+body {
     margin-top: 10px; margin-left: 20px; margin-right: 20px;
     color: #000000;
     background-image: url(../images/simplex-bkg.gif);
@@ -67,7 +67,7 @@
 		}
 
 .success        { font-weight:bold; background-color: green; color: #FFFFFF ;
-		  width: 150px; padding:2px; 
+		  width: 150px; padding:2px;
 		}
 
 .successpct	{ font-weight:bold; background-color: green; color: #FFFFFF ;
@@ -80,7 +80,7 @@
 
 
 .warning        { font-weight:bold; background-color: #FFFF33; color: #000000 ;
-		  width: 150px; padding:2px; 
+		  width: 150px; padding:2px;
 		}
 
 .warninglong    { font-weight:bold; background-color: #FFFF33; color: #000000 ;
@@ -88,7 +88,7 @@
 		}
 
 .warningpct	{ font-weight:bold; background-color: #FFFF33; color: #000000 ;
-		  padding:2px; 
+		  padding:2px;
 		}
 
 .separator {
@@ -128,7 +128,7 @@
     font-weight: bold;
 }
 
-.attention	{ font-size: 1.1em; font-weight:bold; 
+.attention	{ font-size: 1.1em; font-weight:bold;
 		  color:red ;
 		}
 
@@ -138,30 +138,36 @@
 a:visited,
 a:hover		{ color: #409D27;
 		}
-
-.tab 		{  border-style:solid; border-width:1px;border-color: black;
-		   background-color:white; color: #000000;
-		   -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px;
-		   cursor: pointer;
-		   text-align:center;
-		   padding:5px; margin-left:10px;
+.littlered	{ font-size: 10px; color:red; vertical-align:top;
 		}
 
-.tab-hi 	{
-    border-style:solid; border-width:1px;border-color: #000000;
-    background-color: #000099; color:#FFFFFF;
-    -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px;
-    cursor: pointer;
-    text-align:center;
-    padding:5px; margin-left:10px;
+.g-tabset {
+    width: 100%;
+    font-weight: bold;
+    border-bottom: 1px solid black;
+    margin: 2px 0;
 }
 
-.tab-text	{ text-decoration:underline; font-weight:bold; font-size:13px;
-		}
-
-.littlered	{ font-size: 10px; color:red; vertical-align:top; 
-		}
-		
-td.tabspacer	{  border-bottom-width: 1px; border-bottom-style:solid;
-                   border-color: black;
-		}
+.g-tabset a {
+    margin: -2px 0 -1px 2px;
+    white-space: nowrap;
+    text-decoration: none;
+    color: #000;
+    background-color: #FCFCF3;
+    padding: 2px 0.5em;
+    display: block;
+    border: 1px solid #000;
+    -moz-border-radius-topleft: 10px;
+    -moz-border-radius-topright: 10px;
+}
+
+.g-tabset a:hover {
+    text-decoration: none;
+   background-color: #e9e9ff;
+}
+
+.g-tabset a.tab-hi {
+    color: #fff;
+    background: #66a;
+    border-bottom: 1px solid #66a;
+}
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/css/embedded_style.css.default gallery-1.5.4/css/embedded_style.css.default
--- gallery-1.5.3/css/embedded_style.css.default	2005-06-28 15:06:39.000000000 +0200
+++ gallery-1.5.4/css/embedded_style.css.default	2005-06-28 15:06:40.000000000 +0200
@@ -13,7 +13,7 @@
    Some of the styles below are overriden by specific 
    album properties. These are noted 
 
-   $Id: embedded_style.css.default,v 1.21 2005/06/28 13:06:39 jenst Exp $
+   $Id: embedded_style.css.default 10654 2005-06-28 13:06:40Z jenst $
 */ 
 
 
diff -Naur gallery-1.5.3/css/screen.css.default gallery-1.5.4/css/screen.css.default
--- gallery-1.5.3/css/screen.css.default	2006-03-27 17:31:28.000000000 +0200
+++ gallery-1.5.4/css/screen.css.default	2006-08-14 09:41:08.000000000 +0200
@@ -1,23 +1,23 @@
-/* 
+/*
    This is the style sheet used when Gallery running standalone and
    'no skin' is selected.
 
-   If you would like to customize the styles please create 
-   copy of this file called 
+   If you would like to customize the styles please create
+   copy of this file called
 
    "screen.css" (same name without ".default")
 
-   If that file is found in this directory it will be 
+   If that file is found in this directory it will be
    used instead of this one.
 
-   Some of the styles below are overriden by specific 
-   album properties. These are noted 
+   Some of the styles below are overriden by specific
+   album properties. These are noted
 
-   $Id: screen.css.default,v 1.21.2.1 2006/03/27 15:31:28 jenst Exp $
-*/ 
+   $Id: screen.css.default 14310 2006-08-14 07:41:08Z jenst $
+*/
 
 
-/* 
+/*
    default text styles - background and colors overriden by
    album 'bgcolor', 'background', and 'textcolor' properties.
 */
@@ -33,9 +33,9 @@
     border: none;
 }
 
-td,p { 
+td,p {
     font-family: Verdana, Arial, Helvetica, sans-serif;
-    font-size: 10px; 
+    font-size: 10px;
 }
 
 a {
@@ -58,21 +58,21 @@
     color: #000000;
 }
 
-.popup td.tab-hi {
+.popup {
     color: #FFFFFF;
 }
-    
+
 textarea:focus, input:focus {
     background-color: #FFFFDA;
 }
 
-/* 
-   text styles 
+/*
+   text styles
 */
 .title                          /* album titles on main page */
-	{ 
-	  font-size: 14px; 
-	  font-weight: bold; 
+	{
+	  font-size: 14px;
+	  font-weight: bold;
 	}
 .mod_title			/* album title -- Text is controlled by .title */
 	{
@@ -94,21 +94,21 @@
 	{
 	}
 .desc                           /* album descriptions on main page */
-	{ 
-	  font-size: 12px; 
+	{
+	  font-size: 12px;
 	}
 
 .caption                        /* photo captions on all pages */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	}
 .modcaption  /* modifies background for caption text to reside - view_album */
 	{
-	  font-size: 10px; 
+	  font-size: 10px;
 	}
 .pcaption  /* modifies background for caption text to reside - view_photo*/
 {
-     font-size: 10px; 
+     font-size: 10px;
 }
 
 .customFieldsTable {
@@ -120,17 +120,17 @@
     font-weight: bold;
     text-decoration: underline;
 }
-  
+
 .vafloat /* float for view album - text */
  	{
  	   float: none;
  	}
- 
+
 .vafloat2 /* float for view album - images */
  	{
  	 float: none;
 	}
- 
+
 .vasummary /* controls the view of Album summary */
 	{
         font-weight:bold;
@@ -138,15 +138,15 @@
         margin-top:10px;
         width:80%;
 	}
-.commentIndication 
+.commentIndication
 	{
 	   color: red;
 	   font-size: 12px;
 	}
 .error                          /* all error text */
-	{ 
-	  color: red; 
-	  font-size: 12px; 
+	{
+	  color: red;
+	  font-size: 12px;
 	}
 
 .attention                          /* so far, just for voting instructions*/
@@ -162,9 +162,9 @@
 	}
 
 .head                           /* page headers */
-	{ 
-	  font-size: 16px; 
-	  font-weight: bold; 
+	{
+	  font-size: 16px;
+	  font-weight: bold;
 	}
 .mod_headliner  /* Gallery & Album titles. Text is controled by .head */
 	{
@@ -179,12 +179,12 @@
 	{
 	}
 .bread                          /* used in breadcrumb bars */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	}
 .nav                            /* used in navigation bars */
-	{ 
-	  font-size: 12px; 
+	{
+	  font-size: 12px;
 	}
 .navtableborderbegin
 	{
@@ -232,7 +232,7 @@
 	  font-size: 10px;
 	}
 
-.viewcounter 
+.viewcounter
 	{
 	  font-size: 10px;
 	}
@@ -246,25 +246,25 @@
 }
 
 .admin                          /* used in admin bars */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 
 .adminform /* defines form for drop down menu */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 .search                          /* used in search text */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 .searchform /* defines form for search */
 	{
-	  font-size: 10px; 
-	  font-weight: bold; 
+	  font-size: 10px;
+	  font-weight: bold;
 	}
 .leftspacer  /* amount of space to the left of the header and titles */
 	{
@@ -273,7 +273,7 @@
 .modnavboxtop  /*navagation bar top of screen where admin buttons show*/
 	{
 	background-color: #5E72CC;
- 
+
      }
 .modnavboxmid  /*navagation bar middle where the link for the albums show*/
 	{
@@ -284,12 +284,12 @@
 	}
 
 
-.popupbody  /* controls the background of popup. */ 
+.popupbody  /* controls the background of popup. */
 {
     color: #000;
 }
-	
-.popuphead, .separator  /* controls the title and background */ 
+
+.popuphead, .separator  /* controls the title and background */
 {
     text-align:center;
     font-size: 14px; font-weight: bold;
@@ -308,7 +308,7 @@
     padding: 5px;
     border: 1px solid #FFF;
     background-color: #F0F0F0;
-    margin-bottom: 10px;  
+    margin-bottom: 10px;
 }
 
 .popupform /* controls form textarea */
@@ -342,16 +342,16 @@
     height: 20px;
     margin: 0px;
     padding-left: 5px;
-   
+
 }
 
 #tabnav li {
-    margin: 0px; 
+    margin: 0px;
     padding: 0px;
     display: inline;
     list-style-type: none;
 }
-	
+
 #tabnav a:link, #tabnav a:visited {
     float: left;
     font-size: 11px;
@@ -390,38 +390,10 @@
     color: #6274CB;
 }
 
-/* ---- */
-
-.infoline_success {
-    color: #00BF00;
-    text-align:center;
-    font-size: 12px;
-    border: 1px solid ;
-    padding: 2px;
-    margin: 2px;
-}
-
-.infoline_error {
-    text-align:center;
-    font-size: 12px;
-    border: 1px solid red;
-    padding: 2px;
-    margin: 2px;
-}
-
-.infoline_notice {
-    color: #BF0000;
-    text-align: left;
-    font-size: 12px;
-    border: 1px solid #BF0000;
-    padding: 2px;
-    margin: 2px;
-}
-
 /* Adminbar */
 
 #adminbox {
-    background-color: #6274CB; 
+    background-color: #6274CB;
     color: #FFFFFF;
 }
 
@@ -467,3 +439,21 @@
    border-left: 1px solid #224;
    padding: 1px;
 */
+
+.g-tabset {
+}
+
+.g-tabset a {
+    color: #000;
+    background-color: #fff;
+}
+
+.g-tabset a:hover {
+    background-color: #e9e9ff;
+}
+
+.g-tabset a.tab-hi {
+    color: #fff;
+    background: #66a;
+    border-bottom: 1px solid #66a;
+}
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/delete_album.php gallery-1.5.4/delete_album.php
--- gallery-1.5.3/delete_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/delete_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: delete_album.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: delete_album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/delete_photo.php gallery-1.5.4/delete_photo.php
--- gallery-1.5.3/delete_photo.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/delete_photo.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: delete_photo.php,v 1.75.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: delete_photo.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/delete_user.php gallery-1.5.4/delete_user.php
--- gallery-1.5.3/delete_user.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/delete_user.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: delete_user.php,v 1.49.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: delete_user.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/do_command.php gallery-1.5.4/do_command.php
--- gallery-1.5.3/do_command.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/do_command.php	2006-06-19 14:04:01.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: do_command.php,v 1.89.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: do_command.php 13848 2006-06-19 12:04:01Z jenst $
  */
 ?>
 <?php
@@ -130,7 +130,7 @@
 	break;
 	
 	case 'logout':
-		gallery_syslog("Logout by ". $gallery->session->username ." from ". $HTTP_SERVER_VARS['REMOTE_ADDR']);
+		gallery_syslog("Logout by ". $gallery->session->username ." from ". $_SERVER['REMOTE_ADDR']);
 		$gallery->session->username = '';
 		$gallery->session->language = '';
 		destroyGallerySession();
diff -Naur gallery-1.5.3/docs/g1package/gallery1-install.credits.html gallery-1.5.4/docs/g1package/gallery1-install.credits.html
--- gallery-1.5.3/docs/g1package/gallery1-install.credits.html	2006-04-10 04:16:35.000000000 +0200
+++ gallery-1.5.4/docs/g1package/gallery1-install.credits.html	2006-08-15 14:21:29.000000000 +0200
@@ -12,7 +12,7 @@
  </p><p>
   </p><pre class="screen">
 
-$Id: credits.xml,v 1.5 2005/04/26 20:25:18 schultmc Exp $
+$Id: credits.xml 9896 2005-04-26 20:25:18Z schultmc $
 
 Many people have dedicated their time to making Gallery what it is
 today.  Here is a list of folks in alphabetical order who have
diff -Naur gallery-1.5.3/docs/g1package/gallery1-install.faq.a.html gallery-1.5.4/docs/g1package/gallery1-install.faq.a.html
--- gallery-1.5.3/docs/g1package/gallery1-install.faq.a.html	2006-04-10 04:16:37.000000000 +0200
+++ gallery-1.5.4/docs/g1package/gallery1-install.faq.a.html	2006-08-15 14:21:29.000000000 +0200
@@ -2,7 +2,7 @@
        How can I get the latest version of Gallery?
       </a></dt><dt>A.2. <a href="gallery1-install.faq.a.html#gallery1-install.faq.a.2">
        How can I get the latest CVS version of Gallery?
-      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.a.1"></a><a name="id2518469"></a><b>A.1.</b></td><td align="left" valign="top"><p>
+      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.a.1"></a><a name="id307941"></a><b>A.1.</b></td><td align="left" valign="top"><p>
        How can I get the latest version of Gallery?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        There are two different 'latest' versions of Gallery. There is the version
@@ -14,7 +14,7 @@
        more current bugfixes and neat modifications. The version in CVS is
        typically pretty stable, since the developers use it to power their own
        personal Galleries, but it is bound to have the occasional major glitch.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.a.2"></a><a name="id2520950"></a><b>A.2.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.a.2"></a><a name="id307970"></a><b>A.2.</b></td><td align="left" valign="top"><p>
        How can I get the latest CVS version of Gallery?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        The CVS binaries are a prerequisite. You can get them from cvshome.org.
diff -Naur gallery-1.5.3/docs/g1package/gallery1-install.faq.b.html gallery-1.5.4/docs/g1package/gallery1-install.faq.b.html
--- gallery-1.5.3/docs/g1package/gallery1-install.faq.b.html	2006-04-10 04:16:37.000000000 +0200
+++ gallery-1.5.4/docs/g1package/gallery1-install.faq.b.html	2006-08-15 14:21:29.000000000 +0200
@@ -10,7 +10,7 @@
       </a></dt><dt>B.5. <a href="gallery1-install.faq.b.html#gallery1-install.faq.b.5">
        Where can I find the unzip and zipinfo
        binaries?
-      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.1"></a><a name="id2521038"></a><b>B.1.</b></td><td align="left" valign="top"><p>
+      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.1"></a><a name="id308057"></a><b>B.1.</b></td><td align="left" valign="top"><p>
        The setup page tells me that mod_rewrite is not installed. Since mod_rewrite is
        optional, how do I configure this option?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -25,13 +25,13 @@
        For more information on mod_rewrite check out the
        <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html" target="_top">Apache
        module mod_rewrite</a> page.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.2"></a><a name="id2521081"></a><b>B.2.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.2"></a><a name="id308097"></a><b>B.2.</b></td><td align="left" valign="top"><p>
        Does Gallery work under Windows?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Many people have gotten Gallery to work under Windows using Apache.  However,
        Gallery does not interact well with IIS, because PHP still has some issues
        with executing programs like NetPBM and ImageMagick.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.3"></a><a name="id2521106"></a><b>B.3.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.3"></a><a name="id308122"></a><b>B.3.</b></td><td align="left" valign="top"><p>
        How do I run PHP as a CGI?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Running PHP as a CGI is usually done when PHP is not available on your
@@ -79,7 +79,7 @@
        directory.  <span class="emphasis"><em>It is extremely difficult to provide support for
        this, because there are many things that can go wrong and it's hard to
        diagnose the problem.</em></span>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.4"></a><a name="id2521313"></a><b>B.4.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.4"></a><a name="id308328"></a><b>B.4.</b></td><td align="left" valign="top"><p>
        How do I force .php files to use PHP4?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        In the rare case that your ISP has PHP3 and PHP4 installed on the same server,
@@ -91,7 +91,7 @@
          ForceType application/x-httpd-php
         &lt;/Files&gt;
        </pre><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.5"></a><a name="id2521354"></a><b>B.5.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.b.5"></a><a name="id308368"></a><b>B.5.</b></td><td align="left" valign="top"><p>
        Where can I find the <span><b class="command">unzip</b></span> and <span><b class="command">zipinfo</b></span>
        binaries?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
diff -Naur gallery-1.5.3/docs/g1package/gallery1-install.faq.c.html gallery-1.5.4/docs/g1package/gallery1-install.faq.c.html
--- gallery-1.5.3/docs/g1package/gallery1-install.faq.c.html	2006-04-10 04:16:38.000000000 +0200
+++ gallery-1.5.4/docs/g1package/gallery1-install.faq.c.html	2006-08-15 14:21:30.000000000 +0200
@@ -116,7 +116,7 @@
       </a></dt><dt>C.42. <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.42">
        When I open Gallery inside Mambo, i get "Gallery seems to be inside Mambo, but we couldn't get the necessary info."
        What am i or my visitors doing wrong?
-      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.1"></a><a name="id2521425"></a><b>C.1.</b></td><td align="left" valign="top"><p>
+      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.1"></a><a name="id308440"></a><b>C.1.</b></td><td align="left" valign="top"><p>
        When I try to access the configuration wizard, I get a <tt class="literal">500
        Internal Server Error</tt>.  What's up?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -134,7 +134,7 @@
        If you don't have access to your <tt class="filename">httpd.conf</tt>, delete
        the <tt class="filename">.htaccess</tt> file in the <tt class="filename">setup/</tt>
        directory.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.2"></a><a name="id2521512"></a><b>C.2.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.2"></a><a name="id308529"></a><b>C.2.</b></td><td align="left" valign="top"><p>
        I've installed Gallery and all seems well. But when I try to upload an
        image it says <tt class="literal">Unable to make thumbnail(0)</tt> or 
        <tt class="literal">Invalid image</tt>. What gives?
@@ -215,7 +215,7 @@
         </p></li></ul></div><p>
        If you still can't find a solution, try asking in the <a href="http://gallery.sf.net/forums.php" target="_top">
        Gallery Support Forums</a>.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.3"></a><a name="id2521800"></a><b>C.3.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.3"></a><a name="id308806"></a><b>C.3.</b></td><td align="left" valign="top"><p>
        My ISP has a really old version of PHP, something before 4.0.4pl1, which
        Gallery can't work with.  What do I do?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -224,14 +224,14 @@
        probably contains security problems.  Your only other good option is to
        install PHP as a CGI, as in <a href="gallery1-install.faq.b.html#gallery1-install.faq.b.3">FAQ B.3
        </a>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.4"></a><a name="id2521835"></a><b>C.4.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.4"></a><a name="id308840"></a><b>C.4.</b></td><td align="left" valign="top"><p>
        Whenever I try to upload grayscale JPEG images I get a <tt class="literal">Unable to
        make thumbnail</tt> error.  Why?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        This is a bug in some versions of NetPBM that cause it to choke on grayscale
        images.  This is fixed in the version of NetPBM available on the Gallery
        download page.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.5"></a><a name="id2521866"></a><b>C.5.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.5"></a><a name="id308871"></a><b>C.5.</b></td><td align="left" valign="top"><p>
        Whenever I try to upload an image in Gallery, I get all these errors about
        <tt class="literal">safe mode</tt>.  How can I fix this?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -249,7 +249,7 @@
          Find another host that doesn't use safe mode.  Some are listed in the
          <a href="http://gallery.sourceforge.net/wiki.php?page=Web%20Hosting%20Referral%20Page" target="_top">
          Gallery Hosting Referrals Page</a>
-        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.6"></a><a name="id2521947"></a><b>C.6.</b></td><td align="left" valign="top"><p>
+        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.6"></a><a name="id308951"></a><b>C.6.</b></td><td align="left" valign="top"><p>
        Why can't I upload big files (over a megabyte or two)?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Craig Goranson wrote a very informative <a href="http://marc.theaimsgroup.com/?l=gallery-users&amp;m=102589601604892&amp;w=2" target="_top">
@@ -271,14 +271,14 @@
        you want (until you hit <tt class="literal">upload_max_filesize</tt> and/or
        <tt class="literal">post_max_size</tt> -- see the above email link for more
        information).
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.7"></a><a name="id2522049"></a><b>C.7.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.7"></a><a name="id309052"></a><b>C.7.</b></td><td align="left" valign="top"><p>
        When I try to run <span><b class="command">configure.sh</b></span>, I get an error like this:
        <tt class="literal">chmod: getting attributes of `setup\r': No such file or directory</tt>
        How do I fix that?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        The answer is to simply upload the <tt class="filename">configure.sh</tt> file
        in <tt class="literal">ASCII FTP mode</tt>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.8"></a><a name="id2522097"></a><b>C.8.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.8"></a><a name="id309102"></a><b>C.8.</b></td><td align="left" valign="top"><p>
        When I try to click on the "[login]" link on the Gallery page, nothing happens
        (no window pops up).  What's wrong?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -299,7 +299,7 @@
        (note the "www" is missing), you'll still see your Gallery, but you'll
        experience this problem. The solution is to pick one hostname and stick
        with it.  
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.9"></a><a name="id2522142"></a><b>C.9.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.9"></a><a name="id309140"></a><b>C.9.</b></td><td align="left" valign="top"><p>
        When I try to login, everything seems to go correctly, but Gallery doesn't
        log me in?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -346,7 +346,7 @@
          you need to use the one that is specified in your configuration.  If you use the one
          that's not specified, you may be unable to login.  Another remedy for this issue is
          to follow the instructions in <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.22">FAQ C.22</a>
-        </p></li></ul></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.10"></a><a name="id2522333"></a><b>C.10.</b></td><td align="left" valign="top"><p>
+        </p></li></ul></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.10"></a><a name="id309327"></a><b>C.10.</b></td><td align="left" valign="top"><p>
        Why do I see <tt class="literal">Warning: Undefined variable: GALLERY_BASEDIR...
        </tt> at the top of the page?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -367,7 +367,7 @@
        </p><pre class="screen">
         php_value error_reporting 2039
        </pre><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.11"></a><a name="id2522418"></a><b>C.11.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.11"></a><a name="id309409"></a><b>C.11.</b></td><td align="left" valign="top"><p>
        I can successfully upload photos, but when I look in my album all I see
        are broken image icons. Why?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -375,7 +375,7 @@
        wizard.  You can fix this by re-running the config wizard and correcting
        the Albums URL value or you can edit the <tt class="filename">config.php</tt>
        file and fix the $gallery-&gt;app-&gt;albumDirURL variable. 
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.12"></a><a name="id2522451"></a><b>C.12.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.12"></a><a name="id309442"></a><b>C.12.</b></td><td align="left" valign="top"><p>
        Why do I get <tt class="literal">Failed opening 'html_wrap/inline_albumthumb.header.default'</tt>
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        If you unzipped/untarred the Gallery script on a Mac running OS 9.2.1
@@ -389,7 +389,7 @@
        will solve this. This is only a problem if its untarred/gzipped on a Mac.
        If they are unzipped on the server they will work fine. [Thanks James
        O'Donnell]
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.13"></a><a name="id2522515"></a><b>C.13.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.13"></a><a name="id309496"></a><b>C.13.</b></td><td align="left" valign="top"><p>
        Why do I see this error:
        </p><pre class="screen">
         jpegtopnm: WRITING PPM FILE
@@ -403,7 +403,7 @@
         </p></li><li><p>
          Your NetPBM binaries have a bug.  Please use the NetPBM binaries found
          on the Gallery Download Page.
-        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.14"></a><a name="id2522577"></a><b>C.14.</b></td><td align="left" valign="top"><p>
+        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.14"></a><a name="id309561"></a><b>C.14.</b></td><td align="left" valign="top"><p>
        Why, when I try to upload images, does it say <tt class="literal">No images uploaded
        </tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -417,7 +417,7 @@
          <tt class="literal">file_uploads</tt> isn't enabled, then you won't be able
          to upload images to Gallery, and you should talk to your system
          administrator.
-        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.15"></a><a name="id2522658"></a><b>C.15.</b></td><td align="left" valign="top"><p>
+        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.15"></a><a name="id309644"></a><b>C.15.</b></td><td align="left" valign="top"><p>
        Why do I get this error: <tt class="literal">Warning: fopen(".../albums/team/album.dat.lock","a+")</tt>
        or <tt class="literal">Your Userfile is not writeable</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -440,7 +440,7 @@
        directory 777.  <span class="emphasis"><em>Make sure you chmod the <tt class="filename">.users</tt>
        directory, which can sometimes be hidden from view.  See <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.19">
        FAQ C.19</a> for more details</em></span>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.16"></a><a name="id2522739"></a><b>C.16.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.16"></a><a name="id309721"></a><b>C.16.</b></td><td align="left" valign="top"><p>
        Why do I get the error <tt class="literal">Allowed memory size of Xxx bytes exhausted
        </tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -459,7 +459,7 @@
          When adding that line to <tt class="filename">.htaccess</tt>, you must use a 
          number, in bytes.  For example, 8MB would be about 8000000 bytes.
         </p></div><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.17"></a><a name="id2522824"></a><b>C.17.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.17"></a><a name="id309807"></a><b>C.17.</b></td><td align="left" valign="top"><p>
        Why do I get <tt class="literal">pnmtojpeg: No such file or directory when uploading
        images</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -483,7 +483,7 @@
         </p></li><li><p>
          Upgrade to Gallery v1.3.4 which lets you specify which one you have in
          the config wizard.
-        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.18"></a><a name="id2522949"></a><b>C.18.</b></td><td align="left" valign="top"><p>
+        </p></li></ol></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.18"></a><a name="id309933"></a><b>C.18.</b></td><td align="left" valign="top"><p>
        Why do I get this warning: <tt class="literal">Your script possibly relies on a
        session side-effect which existed until PHP 4.2.3</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -504,7 +504,7 @@
        </pre><p>
       </p><p>
        This should be fixed in future versions of Gallery.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.19"></a><a name="id2523023"></a><b>C.19.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.19"></a><a name="id310006"></a><b>C.19.</b></td><td align="left" valign="top"><p>
        Why, when I try to upload a <tt class="filename">.htaccess</tt> and chmod it with my FTP client,
        it "disappears"?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -517,7 +517,7 @@
        for Chmod with WS_FTP</a>.  If you use CuteFTP, see
        <a href="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;topic=701&amp;action=viewtopic&amp;topic=1902" target="_top">
        this thread in the forums.</a>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.20"></a><a name="id2523072"></a><b>C.20.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.20"></a><a name="id310053"></a><b>C.20.</b></td><td align="left" valign="top"><p>
        Why does uploading pictures on my RedHat 8.0 system result in an error
        or scewed picture?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -530,7 +530,7 @@
        this thread in the forums</a>.  Keep in mind that these are merely
        workarounds.  The best option is to upgrade your PHP version to the latest
        from <a href="http://www.php.net/" target="_top">http://www.php.net/</a>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.21"></a><a name="id2523118"></a><b>C.21.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.21"></a><a name="id310094"></a><b>C.21.</b></td><td align="left" valign="top"><p>
        Why doesn't Gallery work correctly on my RedHat 9.0 system?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        As in Red Hat Linux versions since 8.0, the default web server is Apache
@@ -542,7 +542,7 @@
        <a href="http://www.php.net/" target="_top">http://www.php.net/</a>.  See
        <a href="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=5741&amp;1" target="_top">
        this forum post</a> for information on how to compile PHP.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.22"></a><a name="id2523162"></a><b>C.22.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.22"></a><a name="id310134"></a><b>C.22.</b></td><td align="left" valign="top"><p>
        How do I use Gallery both from inside my LAN and the internet?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
         There is a fix planned for future versions of Gallery to allow the config
@@ -598,7 +598,7 @@
              <span class="emphasis"><em>Linux/Unix</em></span> <tt class="filename">/etc/hosts</tt>
             </p></li></ul></div><p>
          </p></li></ul></div><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.23"></a><a name="id2523389"></a><b>C.23.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.23"></a><a name="id310366"></a><b>C.23.</b></td><td align="left" valign="top"><p>
        I'm running Gallery 1.3.4, PHP 4.0.4 and I get <tt class="literal">Call to undefined
        function: array_search() in view_photo.php</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -622,7 +622,7 @@
 
       </pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
         This has been fixed in Gallery 1.4.0
-       </p></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.24"></a><a name="id2523455"></a><b>C.24.</b></td><td align="left" valign="top"><p>
+       </p></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.24"></a><a name="id310427"></a><b>C.24.</b></td><td align="left" valign="top"><p>
        Why, when I edit an album or photo's text, do quotation marks appear
        as <tt class="literal">\'</tt> (e.g. <tt class="literal">John Doe\'s Album</tt>)?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -634,7 +634,7 @@
       </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
         As of Gallery 1.4.0, Gallery will strip the slashes from fields so that
         this does not happen, even if <tt class="literal">magic_quotes_gpc</tt> is on.
-       </p></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.25"></a><a name="id2523521"></a><b>C.25.</b></td><td align="left" valign="top"><p>
+       </p></div></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.25"></a><a name="id310493"></a><b>C.25.</b></td><td align="left" valign="top"><p>
        I can't extract a <tt class="literal">.tar.gz</tt> file on my Windows machine.
        Why not?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -650,12 +650,12 @@
          </p></li><li><p>
           Unzip once more
          </p></li></ol></div><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.26"></a><a name="id2523609"></a><b>C.26.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.26"></a><a name="id310585"></a><b>C.26.</b></td><td align="left" valign="top"><p>
        Why do I get an <tt class="literal">EOF / read error reading magic number</tt>
        error when uploading pictures with NetPBM?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Please see <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.2">FAQ c.2</a>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.27"></a><a name="id2523646"></a><b>C.27.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.27"></a><a name="id310624"></a><b>C.27.</b></td><td align="left" valign="top"><p>
        Why do I get errors like this: <tt class="literal">Warning: open_basedir restriction in effect. File is in wrong
        directory in /home/johndoe/public_html/gallery/platform/fs_unix.php on line 53</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -664,20 +664,20 @@
        Basically, your host has misconfigured this directive and not added the directory where Gallery
        is located to the directories where PHP can access and modify files.  You'll need to contact them
        and ask them to add the directory where your website files are located.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.28"></a><a name="id2523688"></a><b>C.28.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.28"></a><a name="id310664"></a><b>C.28.</b></td><td align="left" valign="top"><p>
        Why do I get this error: <tt class="literal">Warning: write failed: No space left on device (28) in Unknown on line 0</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Your host setup a quota for the web server user.  Though <span class="emphasis"><em>your account</em></span> may still have
        space left, the quota for the web server user has been overrun.  Basically, you'll need to contact
        your host and ask them to cleanup the filesystem and/or adjust the quota.  If you are your host,
        adjust the quota using <span><b class="command">edquota</b></span>.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.29"></a><a name="id2523731"></a><b>C.29.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.29"></a><a name="id310706"></a><b>C.29.</b></td><td align="left" valign="top"><p>
        Why do I get this error: <tt class="literal">Warning:  exec() has been disabled for security reasons</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Basically, this is a form of safe mode.  Gallery requires functions like <tt class="literal">exec()</tt> to
        perform operations on images.  The steps to "fix" this problem are the same as in
        <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.5">FAQ C.5</a>.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.30"></a><a name="id2523774"></a><b>C.30.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.30"></a><a name="id310751"></a><b>C.30.</b></td><td align="left" valign="top"><p>
        Why can't I upload images using ImageMagick on FreeBSD?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        The default install of ImageMagick on FreeBSD doesn't seem to compile with some
@@ -699,7 +699,7 @@
           Then uninstall ImageMagick via ports (<span><b class="command">make deinstall clean</b></span>)
           and reinstall it (<span><b class="command">make install clean</b></span>)
          </p></li></ol></div><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.31"></a><a name="id2523861"></a><b>C.31.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.31"></a><a name="id310835"></a><b>C.31.</b></td><td align="left" valign="top"><p>
        How do I put my Gallery into debug mode?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        There are two ways, each pretty much equal in simplicity.
@@ -725,7 +725,7 @@
        </pre><p>
        And change "no" to "yes"  This will enable some extra debugging features and turn up PHP's
        error reporting level.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.32"></a><a name="id2523961"></a><b>C.32.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.32"></a><a name="id310934"></a><b>C.32.</b></td><td align="left" valign="top"><p>
        I have uploaded the NetPBM or ImageMagick binaries to my site, but
        I don't know the absolute path to specify in the configuration
        wizard.  What do I do?
@@ -742,7 +742,7 @@
        </pre><p>
        View this file via the web (for example: http://www.example.com/gallery/
        netpbm/test.php).  It will tell you the absolute path to specify.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.33"></a><a name="id2524002"></a><b>C.33.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.33"></a><a name="id310974"></a><b>C.33.</b></td><td align="left" valign="top"><p>
        When I try to enter an album, I get a 404 error.  What's up?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        One of two things in happening
@@ -762,7 +762,7 @@
 	  </pre><p>          
           Voila!  The URLs should work correctly now.
          </p></li></ul></div><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.34"></a><a name="id2524071"></a><b>C.34.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.34"></a><a name="id311044"></a><b>C.34.</b></td><td align="left" valign="top"><p>
        I changed a value on Step 3 of the configuration wizard (or in
        <tt class="filename">config.php</tt>), but the change isn't taking effect.  What's going on?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -774,7 +774,7 @@
        Select "properties" from the &lt;&lt;admin options&gt;&gt; pulldown.
        Then, in the popup window you will be able to change the properties
        for that album.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.35"></a><a name="id2524116"></a><b>C.35.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.35"></a><a name="id311085"></a><b>C.35.</b></td><td align="left" valign="top"><p>
        Can I host images on another server to conserve space?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        The straight answer is no.  Gallery must have the images on the local
@@ -789,7 +789,7 @@
        will attempt to use the images on the server with lots of bandwidth, so that
        the local server doesn't suffer so much.  More information is available in the
        <a href="gallery1-admin.mirroring.html" title="Mirroring Gallery">mirroring tutorial</a>.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.36"></a><a name="id2524170"></a><b>C.36.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.36"></a><a name="id311136"></a><b>C.36.</b></td><td align="left" valign="top"><p>
        Why do I get errors with email on Windows?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        If you go to http://www.example.com/gallery/setup/check_mail.php and it gives you the following
@@ -824,7 +824,7 @@
          SMTP = smtp.server.com
          sendmail_from = youremail@server.com
         </pre><p>
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.37"></a><a name="id2524236"></a><b>C.37.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.37"></a><a name="id311194"></a><b>C.37.</b></td><td align="left" valign="top"><p>
        I've forgotten my admin password!  How can I reset it?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        Version 1.4.3 or below: Resetting your admin password is easy; 
@@ -837,7 +837,7 @@
        and you will be required to edit the <span class="emphasis"><em>resetadmin</em></span> file,
        add the string, save, and refresh your browser.  This is a security measure to prove that you
        are an administrator.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.38"></a><a name="id2524331"></a><b>C.38.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.38"></a><a name="id311291"></a><b>C.38.</b></td><td align="left" valign="top"><p>
        Why are my picture frames screwed up?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        If you have a file called gallery/css/embedded_style.css (ie
@@ -863,7 +863,7 @@
        If you didn't touch the CSS or frame files, this probably means that
        you didn't override the files upon upgrade.  Make sure that your FTP
        client overrides the old files and upgrades to the new ones.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.39"></a><a name="id2524388"></a><b>C.39.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.39"></a><a name="id311340"></a><b>C.39.</b></td><td align="left" valign="top"><p>
        Why do I get this error: <tt class="literal">Fatal error: session_start(): Failed to
        initialize storage module: user...</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -876,7 +876,7 @@
        </pre><p>
        This should fix it if you host allows you to edit PHP directives in <tt class="filename">.htaccess</tt>.
        If not, you may need to contact them to get it changed globally.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.40"></a><a name="id2524442"></a><b>C.40.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.40"></a><a name="id311393"></a><b>C.40.</b></td><td align="left" valign="top"><p>
        I need to remove my albums directory, but I can't since the webserver user
        owns the files.  What can I do?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -885,7 +885,7 @@
        here: <a href="http://gallery.menalto.com/modules.php?op=modload&amp;name=Downloads&amp;file=index&amp;req=viewdownload&amp;cid=6" target="_top">
        Gallery Utilities</a> ("Bharat's Cleanup Script").  Instructions are included
        in the top of the file.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.41"></a><a name="id2524476"></a><b>C.41.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.41"></a><a name="id311426"></a><b>C.41.</b></td><td align="left" valign="top"><p>
        Why is my Gallery blue?!
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        As of Gallery 1.5, the CSS system has changed.  There is a <tt class="filename">base.css</tt>
@@ -894,7 +894,7 @@
        Finally, there is <tt class="filename">embedded.css</tt> which loads when your gallery is embedded
        in another program.  To change the color of your gallery, you can edit the appropriate CSS
        file or select a skin in the configuration wizard.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.42"></a><a name="id2524522"></a><b>C.42.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.c.42"></a><a name="id311472"></a><b>C.42.</b></td><td align="left" valign="top"><p>
        When I open Gallery inside Mambo, i get "Gallery seems to be inside Mambo, but we couldn't get the necessary info."
        What am i or my visitors doing wrong?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
diff -Naur gallery-1.5.3/docs/g1package/gallery1-install.faq.d.html gallery-1.5.4/docs/g1package/gallery1-install.faq.d.html
--- gallery-1.5.3/docs/g1package/gallery1-install.faq.d.html	2006-04-10 04:16:38.000000000 +0200
+++ gallery-1.5.4/docs/g1package/gallery1-install.faq.d.html	2006-08-15 14:21:30.000000000 +0200
@@ -8,7 +8,7 @@
        (comment, images, etc..)?
       </a></dt><dt>D.4. <a href="gallery1-install.faq.d.html#gallery1-install.faq.d.4">
        Something went wrong, it's not working! What do I do?
-      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.1"></a><a name="id2524569"></a><b>D.1.</b></td><td align="left" valign="top"><p>
+      </a></dt></dl></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.1"></a><a name="id311520"></a><b>D.1.</b></td><td align="left" valign="top"><p>
        How can I migrate my Gallery from one host to another?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
         If you are moving between a Windows and non-Windows host, please
@@ -52,14 +52,14 @@
        the albums directory you just uploaded, not a blank directory, as you
        would on a clean install of Gallery. After you secure Gallery, all your
        data should show up intact!
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.2"></a><a name="id2524695"></a><b>D.2.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.2"></a><a name="id311627"></a><b>D.2.</b></td><td align="left" valign="top"><p>
        Why do I get this error after migration: <tt class="literal">Warning: fopen
        ('.../albums/foo/album.dat.lock', 'a+')</tt>?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        This is caused by not recursively chmodding the new albums directory 0777.
        See FAQ <a href="gallery1-install.faq.c.html#gallery1-install.faq.c.15">C.15</a> for information
        on how to fix this.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.3"></a><a name="id2524733"></a><b>D.3.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.3"></a><a name="id311666"></a><b>D.3.</b></td><td align="left" valign="top"><p>
        Will moving my Gallery to another host cause me to lose data
        (comment, images, etc..)?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
@@ -67,7 +67,7 @@
        </a>, there should be no lose of data whatsoever. However, because of Murphy's
        law, it's a good idea not to delete your albums directory on your old host before
        you know everything is working on the new host.
-      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.4"></a><a name="id2524768"></a><b>D.4.</b></td><td align="left" valign="top"><p>
+      </p></td></tr><tr class="question"><td align="left" valign="top"><a name="gallery1-install.faq.d.4"></a><a name="id311701"></a><b>D.4.</b></td><td align="left" valign="top"><p>
        Something went wrong, it's not working! What do I do?
       </p></td></tr><tr class="answer"><td align="left" valign="top"><b></b></td><td align="left" valign="top"><p>
        First, try again. Make sure you follow all the instructions in
diff -Naur gallery-1.5.3/docs/g1package/html.css gallery-1.5.4/docs/g1package/html.css
--- gallery-1.5.3/docs/g1package/html.css	2006-04-10 04:16:41.000000000 +0200
+++ gallery-1.5.4/docs/g1package/html.css	2006-08-15 14:21:31.000000000 +0200
@@ -1,5 +1,5 @@
 /*
-$Id: html.css,v 1.1 2003/08/16 17:23:47 alindeman Exp $
+$Id: html.css 3633 2003-08-16 17:23:47Z alindeman $
 */
 
 .question { font-weight: bold }
diff -Naur gallery-1.5.3/docs/g1package/index.html gallery-1.5.4/docs/g1package/index.html
--- gallery-1.5.3/docs/g1package/index.html	2006-04-10 04:16:40.000000000 +0200
+++ gallery-1.5.4/docs/g1package/index.html	2006-08-15 14:21:31.000000000 +0200
@@ -1,6 +1,6 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Gallery Manual</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.0"><link rel="start" href="index.html" title="Gallery Manual"><link rel="next" href="gallery1-install.html" title="Chapter1.Gallery 1.x Installation Guide"><link rel="stylesheet" href="html.css"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Gallery Manual</th></tr><tr><td width="20%" align="left"></td><th width="60%" align="center"></th><td width="20%" align="right"><a accesskey="n" href="gallery1-install.html">Next</a></td></tr></table><hr></div><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="manual"></a>Authors</h1></div><div><div class="authorgroup"><div class="author"><span class="firstname">Bharat</span> <span class="surname">Mediratta</span></div><div class="author"><span class="firstname">Gaile</span> <span class="surname">Elliott</span></div><div class="author"><span class="firstname">Christian</span> <span class="surname">Mohn</span></div><div class="author"><span class="firstname">Andrew</span> <span class="surname">Lindeman</span></div><div class="author"><span class="firstname">Joan</span> <span class="surname">McGalliard</span></div><div class="author"><span class="firstname">Pierre-Luc</span> <span class="surname">Paour</span></div><div class="author"><span class="firstname">Beckett</span> <span class="surname">Madden-Woods</span></div><div class="author"><span class="firstname">Jens</span> <span class="surname">Tkotz</span></div><h4 class="editedby">Edited by</h4><span class="firstname">Michael</span> <span class="surname">Schultheiss</span></div></div><div><p class="copyright">Copyright  2003-2005 Gallery Documentation Group</p></div><div><div class="legalnotice"><a name="id2467422"></a><p>
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Gallery Manual</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.0"><link rel="start" href="index.html" title="Gallery Manual"><link rel="next" href="gallery1-install.html" title="Chapter1.Gallery 1.x Installation Guide"><link rel="stylesheet" href="html.css"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Gallery Manual</th></tr><tr><td width="20%" align="left"></td><th width="60%" align="center"></th><td width="20%" align="right"><a accesskey="n" href="gallery1-install.html">Next</a></td></tr></table><hr></div><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="manual"></a>Authors</h1></div><div><div class="authorgroup"><div class="author"><span class="firstname">Bharat</span> <span class="surname">Mediratta</span></div><div class="author"><span class="firstname">Gaile</span> <span class="surname">Elliott</span></div><div class="author"><span class="firstname">Christian</span> <span class="surname">Mohn</span></div><div class="author"><span class="firstname">Andrew</span> <span class="surname">Lindeman</span></div><div class="author"><span class="firstname">Joan</span> <span class="surname">McGalliard</span></div><div class="author"><span class="firstname">Pierre-Luc</span> <span class="surname">Paour</span></div><div class="author"><span class="firstname">Beckett</span> <span class="surname">Madden-Woods</span></div><div class="author"><span class="firstname">Jens</span> <span class="surname">Tkotz</span></div><h4 class="editedby">Edited by</h4><span class="firstname">Michael</span> <span class="surname">Schultheiss</span></div></div><div><p class="copyright">Copyright  2003-2005 Gallery Documentation Group</p></div><div><div class="legalnotice"><a name="id300966"></a><p>
     This guide is distributed under the terms of the <a href="http://www.gnu.org/licenses/gpl.txt" target="_top">
     GNU General Public License</a>.
    </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="gallery1-install.html">1. Gallery 1.x Installation Guide</a></span></dt><dd><dl><dt><span class="sect1"><a href="gallery1-install.overview.html">Overview</a></span></dt><dt><span class="sect1"><a href="gallery1-install.features.html">Features</a></span></dt><dt><span class="sect1"><a href="gallery1-install.credits.html">Credits</a></span></dt><dt><span class="sect1"><a href="gallery1-install.requirements.html">Installation Requirements</a></span></dt><dt><span class="sect1"><a href="gallery1-install.unix-ftp.html">Installing on a Unix/Linux Server with FTP</a></span></dt><dt><span class="sect1"><a href="gallery1-install.unix-shell.html">Installing on a Unix/Linux Server with Shell Access</a></span></dt><dt><span class="sect1"><a href="gallery1-install.windows.html">Installing on a Windows Server (Apache)</a></span></dt><dt><span class="sect1"><a href="gallery1-install.windows-iis.html">Installing on a Windows Server (IIS)</a></span></dt><dt><span class="sect1"><a href="gallery1-install.upgrade.html">Upgrading a Previous Gallery Installation</a></span></dt><dt><span class="sect1"><a href="gallery1-install.help.html">Getting Additional Help</a></span></dt><dt><span class="sect1"><a href="gallery1-install.required-programs.html">Installing Required Programs</a></span></dt><dt><span class="sect1"><a href="gallery1-install.remote-applets.html">Installing (or updating) Gallery Remote Applets</a></span></dt><dt><span class="sect1"><a href="gallery1-install.language-packs.html">Installing Language Packs</a></span></dt><dt><span class="sect1"><a href="gallery1-install.config-wizard.html">The Configuration Wizard</a></span></dt><dt><span class="sect1"><a href="gallery1-install.faq.html">Frequently Asked Questions</a></span></dt></dl></dd><dt><span class="chapter"><a href="gallery1-admin.html">2. Gallery 1.x Administration Guide</a></span></dt><dd><dl><dt><span class="sect1"><a href="gallery1-admin.basics.html">Basics</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.users.html">Users and Permissions</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.embedding.html">Embedding Gallery</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.securing.html">Securing Gallery</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.performance.html">Performance Tips</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.backup.html">Backup and Restore</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.offline.html">Creating an Offline Copy</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.patching.html">Patching your Gallery</a></span></dt><dt><span class="sect1"><a href="gallery1-admin.mirroring.html">Mirroring Gallery</a></span></dt></dl></dd><dt><span class="chapter"><a href="gallery1-user.html">3. Gallery 1.x User's Guide</a></span></dt><dd><dl><dt><span class="sect1"><a href="gallery1-user.import.html">Importing into gallery</a></span></dt><dt><span class="sect1"><a href="gallery1-user.watermark.html">Watermarking</a></span></dt></dl></dd></dl></div><p>
-  Documentation last generated on: Sun Apr 9 22:16:32 EDT 2006
+  Documentation last generated on: Tue Aug 15 14:21:27 CEST 2006
  </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"></td><td width="20%" align="center"></td><td width="40%" align="right"><a accesskey="n" href="gallery1-install.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"></td><td width="20%" align="center"></td><td width="40%" align="right" valign="top">Chapter1.Gallery 1.x Installation Guide</td></tr></table></div></body></html>
diff -Naur gallery-1.5.3/docs/html.css gallery-1.5.4/docs/html.css
--- gallery-1.5.3/docs/html.css	2004-04-15 00:38:47.000000000 +0200
+++ gallery-1.5.4/docs/html.css	2004-04-15 00:38:47.000000000 +0200
@@ -1,5 +1,5 @@
 /*
-$Id: html.css,v 1.3 2004/04/14 22:38:47 alindeman Exp $
+$Id: html.css 5828 2004-04-14 22:38:47Z alindeman $
 */
 
 .question { font-weight: bold }
diff -Naur gallery-1.5.3/download.php gallery-1.5.4/download.php
--- gallery-1.5.3/download.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/download.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: download.php,v 1.4.2.1 2006/03/27 15:31:25 jenst Exp $
+* $Id: download.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/ecard_form.php gallery-1.5.4/ecard_form.php
--- gallery-1.5.3/ecard_form.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/ecard_form.php	2006-05-02 11:59:13.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: ecard_form.php,v 1.16.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: ecard_form.php 13579 2006-05-02 09:59:13Z jenst $
  */
 ?>
 <?php
@@ -35,8 +35,15 @@
 
   list($photoIndex, $ecard, $submit_action) = getRequestVar(array('photoIndex', 'ecard', 'submit_action'));
 
+  printPopupStart(gTranslate('core', "Send this photo as eCard"));
   $ecard['photoIndex'] = empty($ecard['photoIndex']) ? $photoIndex : $ecard['photoIndex'];
-  $photo = $gallery->album->getPhoto($ecard['photoIndex']);
+
+  if(!$photo = $gallery->album->getPhoto($ecard['photoIndex'])) {
+    echo gallery_error($errortext);
+    echo "\n<p></p>";
+    echo galleryLink(makeGalleryUrl(), "Back to Gallery");
+    exit;
+  }
 
   /* Get the dimensions of the sized Photo */
   list($width, $height) = $photo->getDimensions(0, false);  
@@ -78,12 +85,7 @@
 	    $ecard["image_name"] = $photo->getPhotoPath($gallery->album->fields['name'], false);
 	}
     }
-doctype();
-?>
-<html>
-  <?php common_header(); ?>
-  <title><?php echo _("Send this photo as eCard") ?></title>
- 
+?> 
 <script type="text/javascript">
 <!--
  function popup_win(theURL,winName,winOptions) {
@@ -164,12 +166,6 @@
 //-->
 </script>
 
-</head>
-
-<body class="popupbody" dir="<?php echo $gallery->direction ?>" onLoad="document.ecard_form['ecard[name_sender]'].focus()">
-<div class="popuphead"><?php echo _("Send this photo as eCard") ?></div>
-<div align="center" class="popup">
-
 <?php 
     if (! $ecard_send) {
 	echo $gallery->album->getThumbnailTag($photoIndex);
diff -Naur gallery-1.5.3/ecard_preview.php gallery-1.5.4/ecard_preview.php
--- gallery-1.5.3/ecard_preview.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/ecard_preview.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: ecard_preview.php,v 1.4.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: ecard_preview.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/edit_appearance.php gallery-1.5.4/edit_appearance.php
--- gallery-1.5.3/edit_appearance.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/edit_appearance.php	2006-08-14 09:41:08.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: edit_appearance.php,v 1.117.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: edit_appearance.php 14310 2006-08-14 07:41:08Z jenst $
  */
 ?>
 <?php
@@ -237,15 +237,15 @@
 <div class="popuphead"><?php echo gTranslate('core', "Album Properties") ?></div>
 <?php echo infoLine($infoMessages, 'error'); ?>
 <div class="popup" align="center">
-<?php 
-
-echo makeFormIntro("edit_appearance.php",
-    array("name" => "theform"),
-    array("type" => "popup"));
+<?php
 
 $i = 0;
+$initialtab = makeSectionTabs($properties, $initialtab, true);
 
-makeSectionTabs($properties,5, $initialtab, true);
+echo "<div style=\"clear: both\"></div>";
+echo makeFormIntro('edit_appearance.php',
+    array("name" => "theform"),
+    array('type' => 'popup', 'initialtab' => $initialtab));
 
 foreach ($properties as $key => $val) {
     if(!empty($val['skip'])) {
@@ -258,7 +258,7 @@
         } else {
             $display = 'none';
         }
-        echo "\n<div id=\"". $val["name"] ."\" style=\"display: $display\">";
+        echo "\n<div id=\"{$val["name"]}\" style=\"display: $display\">";
         echo make_separator($key, $val);
         echo "\n<table width=\"100%\" class=\"inner\">";
         continue;
diff -Naur gallery-1.5.3/edit_caption.php gallery-1.5.4/edit_caption.php
--- gallery-1.5.3/edit_caption.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/edit_caption.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: edit_caption.php,v 1.69.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: edit_caption.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/edit_field.php gallery-1.5.4/edit_field.php
--- gallery-1.5.3/edit_field.php	2006-03-28 12:54:50.000000000 +0200
+++ gallery-1.5.4/edit_field.php	2006-03-28 12:54:53.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: edit_field.php,v 1.50.2.2 2006/03/28 10:54:50 jenst Exp $
+ * $Id: edit_field.php 13349 2006-03-28 10:54:53Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/edit_thumb.php gallery-1.5.4/edit_thumb.php
--- gallery-1.5.3/edit_thumb.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/edit_thumb.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: edit_thumb.php,v 1.45.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: edit_thumb.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/edit_watermark.php gallery-1.5.4/edit_watermark.php
--- gallery-1.5.3/edit_watermark.php	2006-04-04 23:58:23.000000000 +0200
+++ gallery-1.5.4/edit_watermark.php	2006-04-04 23:58:25.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: edit_watermark.php,v 1.23.2.2 2006/04/04 21:58:23 jenst Exp $
+ * $Id: edit_watermark.php 13361 2006-04-04 21:58:25Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/extra_fields.php gallery-1.5.4/extra_fields.php
--- gallery-1.5.3/extra_fields.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/extra_fields.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: extra_fields.php,v 1.35.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: extra_fields.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/gallery_remote2.php gallery-1.5.4/gallery_remote2.php
--- gallery-1.5.3/gallery_remote2.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/gallery_remote2.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: gallery_remote2.php,v 1.78.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: gallery_remote2.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/gallery_remote.php gallery-1.5.4/gallery_remote.php
--- gallery-1.5.3/gallery_remote.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/gallery_remote.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: gallery_remote.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: gallery_remote.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/help/imagemap.php gallery-1.5.4/help/imagemap.php
--- gallery-1.5.3/help/imagemap.php	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/help/imagemap.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: imagemap.php,v 1.2.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: imagemap.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?><?php
 
diff -Naur gallery-1.5.3/help/metadataOnUpload.php gallery-1.5.4/help/metadataOnUpload.php
--- gallery-1.5.3/help/metadataOnUpload.php	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/help/metadataOnUpload.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: metadataOnUpload.php,v 1.3.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: metadataOnUpload.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?><?php
 
diff -Naur gallery-1.5.3/html/userData.inc gallery-1.5.4/html/userData.inc
--- gallery-1.5.3/html/userData.inc	2005-12-23 20:26:50.000000000 +0100
+++ gallery-1.5.4/html/userData.inc	2005-12-23 20:26:50.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: userData.inc,v 1.25 2005/12/23 19:26:50 jenst Exp $ */ ?>
+<?php /* $Id: userData.inc 12387 2005-12-23 19:26:50Z jenst $ */ ?>
 <?php 
  if (!isset($uname)) {  $uname=""; }
  if (!isset($old_password)) {  $old_password=""; }
diff -Naur gallery-1.5.3/html_wrap/album.footer.default gallery-1.5.4/html_wrap/album.footer.default
--- gallery-1.5.3/html_wrap/album.footer.default	2005-09-26 16:19:07.000000000 +0200
+++ gallery-1.5.4/html_wrap/album.footer.default	2005-09-26 16:19:07.000000000 +0200
@@ -5,7 +5,7 @@
 // To override this footer, create a file called album.footer
 // in this directory.
 // 
-// $Id: album.footer.default,v 1.39 2005/09/26 14:19:07 jenst Exp $
+// $Id: album.footer.default 11686 2005-09-26 14:19:07Z jenst $
 ?>
 <?php
 includeTemplate('album.footer.tpl');
diff -Naur gallery-1.5.3/html_wrap/album.header.default gallery-1.5.4/html_wrap/album.header.default
--- gallery-1.5.3/html_wrap/album.header.default	2005-08-16 01:01:22.000000000 +0200
+++ gallery-1.5.4/html_wrap/album.header.default	2005-08-16 01:01:22.000000000 +0200
@@ -12,7 +12,7 @@
 //      - Gallery Title: $gallery->app->galleryTitle    
 //      - Album Title: $gallery->album->fields["title"]    
 //      
-// $Id: album.header.default,v 1.19 2005/08/15 23:01:22 jenst Exp $
+// $Id: album.header.default 11373 2005-08-15 23:01:22Z jenst $
 ?>
 <?php
 includeHtmlWrap("wrapper.header");
diff -Naur gallery-1.5.3/html_wrap/frames/golden/frame.def gallery-1.5.4/html_wrap/frames/golden/frame.def
--- gallery-1.5.3/html_wrap/frames/golden/frame.def	2004-03-24 19:58:08.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/golden/frame.def	2004-03-24 19:58:09.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.2 2004/03/24 18:58:08 mindless Exp $ */
+<?php /* $Id: frame.def 5600 2004-03-24 18:58:09Z mindless $ */
       /* From: forum-userid= stormfrog  url= 81.172.137.84/gallery */ ?>
 <?php
 $name = _("Gold Frame");
diff -Naur gallery-1.5.3/html_wrap/frames/notebook/frame.def gallery-1.5.4/html_wrap/frames/notebook/frame.def
--- gallery-1.5.3/html_wrap/frames/notebook/frame.def	2004-03-24 19:58:08.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/notebook/frame.def	2004-03-24 19:58:09.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.3 2004/03/24 18:58:08 mindless Exp $ */
+<?php /* $Id: frame.def 5600 2004-03-24 18:58:09Z mindless $ */
  /* From: forum-userid= carlandtracey.com  url= carlandtracey.com/pix
     Converted to html_wrap/frames format by mindless */ ?>
 <?php
diff -Naur gallery-1.5.3/html_wrap/frames/polaroid/frame.def gallery-1.5.4/html_wrap/frames/polaroid/frame.def
--- gallery-1.5.3/html_wrap/frames/polaroid/frame.def	2004-03-24 19:58:08.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/polaroid/frame.def	2004-03-24 19:58:09.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.8 2004/03/24 18:58:08 mindless Exp $ */ ?>
+<?php /* $Id: frame.def 5600 2004-03-24 18:58:09Z mindless $ */ ?>
 <?php
 $name = _("Polaroid");
 $description = _("A photo with a large white frame, extra wide at the bottom edge");
diff -Naur gallery-1.5.3/html_wrap/frames/polaroids/frame.def gallery-1.5.4/html_wrap/frames/polaroids/frame.def
--- gallery-1.5.3/html_wrap/frames/polaroids/frame.def	2004-03-24 19:58:09.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/polaroids/frame.def	2004-03-24 19:58:09.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.7 2004/03/24 18:58:09 mindless Exp $ */ ?>
+<?php /* $Id: frame.def 5600 2004-03-24 18:58:09Z mindless $ */ ?>
 <?php
 $name = _("Polaroids");
 $description = _("A stack of photos with a large white frame, extra wide at the bottom edge");
diff -Naur gallery-1.5.3/html_wrap/frames/README.php gallery-1.5.4/html_wrap/frames/README.php
--- gallery-1.5.3/html_wrap/frames/README.php	2004-03-04 17:58:17.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/README.php	2004-03-04 17:58:17.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: README.php,v 1.7 2004/03/04 16:58:17 jenst Exp $ */ ?>
+<?php /* $Id: README.php 5431 2004-03-04 16:58:17Z jenst $ */ ?>
 <html><head><title>How to create new frames</title></head>
 <body bgcolor="#DDAAAA">
 <!--
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/BBL.png gallery-1.5.4/html_wrap/frames/shadows/BBL.png
--- gallery-1.5.3/html_wrap/frames/shadows/BBL.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/BBL.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,3 +1,5 @@
-PNG
+PNG
 
-   IHDR   	      ڛg`   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd``bQ b(bv f  f  bN b( 	@0ElP@ /0a'T3@ 1B9P4LT )bbؑHÂab` ` >    IENDB`
\ Pas de fin de ligne  la fin du fichier.
+   
+IHDR   	      ڛg`   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd``bQ b(
+bv f  f  bN b( 	@0ElP@ /0a'T3@ 1B9P4LT )bbؑHÂab` ` >    IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/BB.png gallery-1.5.4/html_wrap/frames/shadows/BB.png
--- gallery-1.5.3/html_wrap/frames/shadows/BB.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/BB.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,3 +1,4 @@
-PNG
+PNG
 
-   IHDR         L'   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   1IDATxb```@L@#@  "3 @ ?@ R>    IENDB`
\ Pas de fin de ligne  la fin du fichier.
+   
+IHDR         L'   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   1IDATxb```@L@#@  "3 @ ?@ R>    IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/BR.png gallery-1.5.4/html_wrap/frames/shadows/BR.png
--- gallery-1.5.3/html_wrap/frames/shadows/BR.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/BR.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,4 +1,6 @@
-PNG
+PNG
 
-   IHDR         RW   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   }IDATxbf``X@@Č@ g ߁ |`
+   
+IHDR         RW   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   }IDATxbf``X@@Č@ g ߁ |
+`
 $H<Jd$H @:@l$@ 1CJ j}b 0 ۯ(Pɒ    IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/frame.def gallery-1.5.4/html_wrap/frames/shadows/frame.def
--- gallery-1.5.3/html_wrap/frames/shadows/frame.def	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/frame.def	2003-11-22 19:33:59.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.8 2003/11/22 18:33:59 jefmcg Exp $ */ ?>
+<?php /* $Id: frame.def 4789 2003-11-22 18:33:59Z jefmcg $ */ ?>
 <?php
 $name = _("Shadows");
 $description = _("PNG transparent shadows falling to the right and below. Proper transparency, so should work against most backgrounds, except black.");
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/pixel_trans.png gallery-1.5.4/html_wrap/frames/shadows/pixel_trans.png
--- gallery-1.5.3/html_wrap/frames/shadows/pixel_trans.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/pixel_trans.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,3 +1,4 @@
-PNG
+PNG
 
-   IHDR         (4   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   PLTE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             #   tRNS @f   IDATxbb 0       IENDB`
\ Pas de fin de ligne  la fin du fichier.
+   
+IHDR         (4   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   PLTE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             #   tRNS @f   IDATxbb 0       IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/RR.png gallery-1.5.4/html_wrap/frames/shadows/RR.png
--- gallery-1.5.3/html_wrap/frames/shadows/RR.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/RR.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,3 +1,4 @@
-PNG
+PNG
 
-   IHDR            	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd``X/߄/#@ K1	&    IENDB`
\ Pas de fin de ligne  la fin du fichier.
+   
+IHDR            	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd``X/߄/#@ K1	&    IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/shadows/RRT.png gallery-1.5.4/html_wrap/frames/shadows/RRT.png
--- gallery-1.5.3/html_wrap/frames/shadows/RRT.png	2003-11-22 19:33:59.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/shadows/RRT.png	2003-11-22 19:33:59.000000000 +0100
@@ -1,4 +1,6 @@
-PNG
+PNG
 
-   IHDR      
-   xD   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd```H y_FFF b24@3b f  tJ2 /3CUb5d(|bNA0̵ߑ$ @*ء` @Lx @ 0V#_`    IENDB`
\ Pas de fin de ligne  la fin du fichier.
+   
+IHDR      
+   xD
+   	pHYs        gAMA      cHRM  n  tY      k  T  H  _   IDATxbd```H y_FFF b24@3b f  tJ2 /3CUb5d(|bNA0̵ߑ$ @*ء` @Lx @ 0V#_`    IENDB`
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/html_wrap/frames/simple_book/frame.def gallery-1.5.4/html_wrap/frames/simple_book/frame.def
--- gallery-1.5.3/html_wrap/frames/simple_book/frame.def	2003-10-20 14:30:19.000000000 +0200
+++ gallery-1.5.4/html_wrap/frames/simple_book/frame.def	2003-10-20 14:30:20.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.6 2003/10/20 12:30:19 jefmcg Exp $ */ ?>
+<?php /* $Id: frame.def 4522 2003-10-20 12:30:20Z jefmcg $ */ ?>
 <?php
 $name = _("Original Style");
 $description = sprintf(_("The original %s album frame style."), Gallery());
diff -Naur gallery-1.5.3/html_wrap/frames/wooden/frame.def gallery-1.5.4/html_wrap/frames/wooden/frame.def
--- gallery-1.5.3/html_wrap/frames/wooden/frame.def	2004-03-24 19:58:09.000000000 +0100
+++ gallery-1.5.4/html_wrap/frames/wooden/frame.def	2004-03-24 19:58:09.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: frame.def,v 1.3 2004/03/24 18:58:09 mindless Exp $ */
+<?php /* $Id: frame.def 5600 2004-03-24 18:58:09Z mindless $ */
       /* From: forum-userid= stormfrog  url= 81.172.137.84/gallery */ ?>
 <?php
 $name = _("Wood Frame");
diff -Naur gallery-1.5.3/html_wrap/gallery.footer.default gallery-1.5.4/html_wrap/gallery.footer.default
--- gallery-1.5.3/html_wrap/gallery.footer.default	2005-09-26 16:19:07.000000000 +0200
+++ gallery-1.5.4/html_wrap/gallery.footer.default	2005-09-26 16:19:07.000000000 +0200
@@ -13,7 +13,7 @@
 //   a little. Use the following code snippet to display the current
 //   Gallery version linked to the Gallery home page.
 //
-// $Id: gallery.footer.default,v 1.43 2005/09/26 14:19:07 jenst Exp $
+// $Id: gallery.footer.default 11686 2005-09-26 14:19:07Z jenst $
 ?>
 <?php
 includeTemplate('gallery.footer.tpl');
diff -Naur gallery-1.5.3/html_wrap/gallery.header.default gallery-1.5.4/html_wrap/gallery.header.default
--- gallery-1.5.3/html_wrap/gallery.header.default	2005-08-16 01:01:22.000000000 +0200
+++ gallery-1.5.4/html_wrap/gallery.header.default	2005-08-16 01:01:22.000000000 +0200
@@ -11,7 +11,7 @@
 // * Some application variables:
 //      - Gallery Title: $gallery->app->galleryTitle
 //
-// $Id: gallery.header.default,v 1.20 2005/08/15 23:01:22 jenst Exp $
+// $Id: gallery.header.default 11373 2005-08-15 23:01:22Z jenst $
 ?>
 <?php
 includeHtmlWrap("wrapper.header");
diff -Naur gallery-1.5.3/html_wrap/general.footer.default gallery-1.5.4/html_wrap/general.footer.default
--- gallery-1.5.3/html_wrap/general.footer.default	2005-09-26 16:19:07.000000000 +0200
+++ gallery-1.5.4/html_wrap/general.footer.default	2005-09-26 16:19:07.000000000 +0200
@@ -13,7 +13,7 @@
 //   a little. Use the following code snippet to display the current
 //   Gallery version linked to the Gallery home page.
 //
-// $Id: general.footer.default,v 1.4 2005/09/26 14:19:07 jenst Exp $
+// $Id: general.footer.default 11686 2005-09-26 14:19:07Z jenst $
 ?>
 <?php
 includeTemplate('general.footer.tpl');
diff -Naur gallery-1.5.3/html_wrap/inline_albumthumb.footer.default gallery-1.5.4/html_wrap/inline_albumthumb.footer.default
--- gallery-1.5.3/html_wrap/inline_albumthumb.footer.default	2004-08-25 08:35:32.000000000 +0200
+++ gallery-1.5.4/html_wrap/inline_albumthumb.footer.default	2004-08-25 08:35:32.000000000 +0200
@@ -11,5 +11,5 @@
 //	$GLOBALS['index'] is the index of the photo
 // 	$gallery->album is the current album 
 // 	$gallery->album->getPhotoId($GLOBALS['index']) is the id of the current photo
-// $Id: inline_albumthumb.footer.default,v 1.9 2004/08/25 06:35:32 h0bbel Exp $
+// $Id: inline_albumthumb.footer.default 7304 2004-08-25 06:35:32Z h0bbel $
 ?>
diff -Naur gallery-1.5.3/html_wrap/inline_albumthumb.frame.default gallery-1.5.4/html_wrap/inline_albumthumb.frame.default
--- gallery-1.5.3/html_wrap/inline_albumthumb.frame.default	2004-03-02 15:10:38.000000000 +0100
+++ gallery-1.5.4/html_wrap/inline_albumthumb.frame.default	2004-03-02 15:10:38.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-/* $Id: inline_albumthumb.frame.default,v 1.17 2004/03/02 14:10:38 jenst Exp $ */
+/* $Id: inline_albumthumb.frame.default 5409 2004-03-02 14:10:38Z jenst $ */
 ?>
 <?php
 	include (dirname(__FILE__) . '/inline_imagewrap.inc');
diff -Naur gallery-1.5.3/html_wrap/inline_albumthumb.header.default gallery-1.5.4/html_wrap/inline_albumthumb.header.default
--- gallery-1.5.3/html_wrap/inline_albumthumb.header.default	2003-10-04 21:22:35.000000000 +0200
+++ gallery-1.5.4/html_wrap/inline_albumthumb.header.default	2003-10-04 21:22:44.000000000 +0200
@@ -12,5 +12,5 @@
 // 	$gallery->album is the current album 
 // 	$gallery->album->getPhotoId($GLOBALS['index']) is the id of the current photo
 //
-// $Id: inline_albumthumb.header.default,v 1.8 2003/10/04 19:22:35 beckettmw Exp $
+// $Id: inline_albumthumb.header.default 4372 2003-10-04 19:22:44Z beckettmw $
 ?>
diff -Naur gallery-1.5.3/html_wrap/inline_gallerythumb.frame.default gallery-1.5.4/html_wrap/inline_gallerythumb.frame.default
--- gallery-1.5.3/html_wrap/inline_gallerythumb.frame.default	2004-03-02 15:10:38.000000000 +0100
+++ gallery-1.5.4/html_wrap/inline_gallerythumb.frame.default	2004-03-02 15:10:38.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-/* $Id: inline_gallerythumb.frame.default,v 1.18 2004/03/02 14:10:38 jenst Exp $ */
+/* $Id: inline_gallerythumb.frame.default 5409 2004-03-02 14:10:38Z jenst $ */
 ?>
 <?php
 	include (dirname(__FILE__) .'/inline_imagewrap.inc');
diff -Naur gallery-1.5.3/html_wrap/inline_imagewrap.inc gallery-1.5.4/html_wrap/inline_imagewrap.inc
--- gallery-1.5.3/html_wrap/inline_imagewrap.inc	2006-03-27 18:07:16.000000000 +0200
+++ gallery-1.5.4/html_wrap/inline_imagewrap.inc	2006-03-27 18:07:16.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: inline_imagewrap.inc,v 1.36.4.2 2006/03/27 16:07:16 jenst Exp $
+// $Id: inline_imagewrap.inc 13340 2006-03-27 16:07:16Z jenst $
 
 
 //-- shorten the variables for convinience ---
diff -Naur gallery-1.5.3/html_wrap/inline_moviethumb.frame.default gallery-1.5.4/html_wrap/inline_moviethumb.frame.default
--- gallery-1.5.3/html_wrap/inline_moviethumb.frame.default	2004-03-02 15:10:38.000000000 +0100
+++ gallery-1.5.4/html_wrap/inline_moviethumb.frame.default	2004-03-02 15:10:38.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-/* $Id: inline_moviethumb.frame.default,v 1.8 2004/03/02 14:10:38 jenst Exp $ */
+/* $Id: inline_moviethumb.frame.default 5409 2004-03-02 14:10:38Z jenst $ */
 ?>
 <?php
 	include (dirname(__FILE__) . '/inline_imagewrap.inc');
diff -Naur gallery-1.5.3/html_wrap/inline_photo.footer.default gallery-1.5.4/html_wrap/inline_photo.footer.default
--- gallery-1.5.3/html_wrap/inline_photo.footer.default	2004-08-25 08:35:32.000000000 +0200
+++ gallery-1.5.4/html_wrap/inline_photo.footer.default	2004-08-25 08:35:32.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: inline_photo.footer.default,v 1.8 2004/08/25 06:35:32 h0bbel Exp $
+// $Id: inline_photo.footer.default 7304 2004-08-25 06:35:32Z h0bbel $
 // This is the default photo footer (for the gallery photo
 // page: view_album.php). It's companion is inline_photo.header.default.
 //
diff -Naur gallery-1.5.3/html_wrap/inline_photo.frame.default gallery-1.5.4/html_wrap/inline_photo.frame.default
--- gallery-1.5.3/html_wrap/inline_photo.frame.default	2004-03-02 15:10:38.000000000 +0100
+++ gallery-1.5.4/html_wrap/inline_photo.frame.default	2004-03-02 15:10:38.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-/* $Id: inline_photo.frame.default,v 1.5 2004/03/02 14:10:38 jenst Exp $ */
+/* $Id: inline_photo.frame.default 5409 2004-03-02 14:10:38Z jenst $ */
 ?>
 <?php
 	include (dirname(__FILE__) . '/inline_imagewrap.inc');
diff -Naur gallery-1.5.3/html_wrap/inline_photo.header.default gallery-1.5.4/html_wrap/inline_photo.header.default
--- gallery-1.5.3/html_wrap/inline_photo.header.default	2005-07-22 18:11:13.000000000 +0200
+++ gallery-1.5.4/html_wrap/inline_photo.header.default	2005-07-22 18:11:13.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: inline_photo.header.default,v 1.9 2005/07/22 16:11:13 jenst Exp $
+// $Id: inline_photo.header.default 10999 2005-07-22 16:11:13Z jenst $
 // This is the default photo header (for the gallery photo
 // page: view_album.php). It's companion is inline_photo.footer.default.
 //
diff -Naur gallery-1.5.3/html_wrap/inline_photothumb.frame.default gallery-1.5.4/html_wrap/inline_photothumb.frame.default
--- gallery-1.5.3/html_wrap/inline_photothumb.frame.default	2004-03-02 15:10:38.000000000 +0100
+++ gallery-1.5.4/html_wrap/inline_photothumb.frame.default	2004-03-02 15:10:38.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-/* $Id: inline_photothumb.frame.default,v 1.8 2004/03/02 14:10:38 jenst Exp $ */
+/* $Id: inline_photothumb.frame.default 5409 2004-03-02 14:10:38Z jenst $ */
 ?>
 <?php
 	include (dirname(__FILE__) . '/inline_imagewrap.inc');
diff -Naur gallery-1.5.3/html_wrap/photo.footer.default gallery-1.5.4/html_wrap/photo.footer.default
--- gallery-1.5.3/html_wrap/photo.footer.default	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/html_wrap/photo.footer.default	2006-03-27 17:32:14.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: photo.footer.default,v 1.30.2.1 2006/03/27 15:31:29 jenst Exp $
+// $Id: photo.footer.default 13338 2006-03-27 15:32:14Z jenst $
 // This is the default photo footer (for the gallery photo
 // page: view_photo.php). It's companion is photo.header.default.
 //
diff -Naur gallery-1.5.3/html_wrap/photo.header.default gallery-1.5.4/html_wrap/photo.header.default
--- gallery-1.5.3/html_wrap/photo.header.default	2005-08-16 01:01:22.000000000 +0200
+++ gallery-1.5.4/html_wrap/photo.header.default	2005-08-16 01:01:22.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: photo.header.default,v 1.16 2005/08/15 23:01:22 jenst Exp $
+// $Id: photo.header.default 11373 2005-08-15 23:01:22Z jenst $
 // This is the default photo header (for the gallery photo
 // page: view_photo.php). It's companion is photo.footer.default.
 //
diff -Naur gallery-1.5.3/html_wrap/slideshow.footer.default gallery-1.5.4/html_wrap/slideshow.footer.default
--- gallery-1.5.3/html_wrap/slideshow.footer.default	2005-04-25 12:47:46.000000000 +0200
+++ gallery-1.5.4/html_wrap/slideshow.footer.default	2005-04-25 12:47:46.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: slideshow.footer.default,v 1.20 2005/04/25 10:47:46 jenst Exp $
+// $Id: slideshow.footer.default 9875 2005-04-25 10:47:46Z jenst $
 // This is the default photo footer (for the gallery slideshow
 // page: slideshow.php). It's companion is slideshow.header.default.
 //
diff -Naur gallery-1.5.3/html_wrap/slideshow.header.default gallery-1.5.4/html_wrap/slideshow.header.default
--- gallery-1.5.3/html_wrap/slideshow.header.default	2005-08-16 01:01:22.000000000 +0200
+++ gallery-1.5.4/html_wrap/slideshow.header.default	2005-08-16 01:01:22.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: slideshow.header.default,v 1.13 2005/08/15 23:01:22 jenst Exp $
+// $Id: slideshow.header.default 11373 2005-08-15 23:01:22Z jenst $
 // This is the default slideshow header (for the gallery slideshow
 // page: slideshow.php). It's companion is slideshow.footer.default.
 //
diff -Naur gallery-1.5.3/html_wrap/stats.footer.default gallery-1.5.4/html_wrap/stats.footer.default
--- gallery-1.5.3/html_wrap/stats.footer.default	2005-05-23 14:39:04.000000000 +0200
+++ gallery-1.5.4/html_wrap/stats.footer.default	2005-05-23 14:39:26.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: stats.footer.default,v 1.3 2005/05/23 12:39:04 jenst Exp $
+// $Id: stats.footer.default 10343 2005-05-23 12:39:26Z jenst $
 // This is the default stats footer
 // It's companion is stats.header.default.
 //
diff -Naur gallery-1.5.3/html_wrap/stats.header.default gallery-1.5.4/html_wrap/stats.header.default
--- gallery-1.5.3/html_wrap/stats.header.default	2005-09-25 21:20:37.000000000 +0200
+++ gallery-1.5.4/html_wrap/stats.header.default	2005-09-25 21:20:37.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: stats.header.default,v 1.5 2005/09/25 19:20:37 jenst Exp $
+// $Id: stats.header.default 11682 2005-09-25 19:20:37Z jenst $
 // This is the default stats header (for the stats results page: stats.php).
 // It's companion is stats.footer.default. 
 //
diff -Naur gallery-1.5.3/html_wrap/wrapper.footer.default gallery-1.5.4/html_wrap/wrapper.footer.default
--- gallery-1.5.3/html_wrap/wrapper.footer.default	2005-08-07 16:11:03.000000000 +0200
+++ gallery-1.5.4/html_wrap/wrapper.footer.default	2005-08-07 16:11:04.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: wrapper.footer.default,v 1.16 2005/08/07 14:11:03 jenst Exp $
+// $Id: wrapper.footer.default 11223 2005-08-07 14:11:04Z jenst $
 // This footer file detects whether Gallery is embedded in any 
 // known PHP applications and then decorates Gallery appropriately.
 
diff -Naur gallery-1.5.3/html_wrap/wrapper.header.default gallery-1.5.4/html_wrap/wrapper.header.default
--- gallery-1.5.3/html_wrap/wrapper.header.default	2005-08-19 02:12:05.000000000 +0200
+++ gallery-1.5.4/html_wrap/wrapper.header.default	2005-08-19 02:12:05.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: wrapper.header.default,v 1.26 2005/08/19 00:12:05 jenst Exp $
+// $Id: wrapper.header.default 11400 2005-08-19 00:12:05Z jenst $
 ?>
 <?php
 /**
diff -Naur gallery-1.5.3/imagemap.php gallery-1.5.4/imagemap.php
--- gallery-1.5.3/imagemap.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/imagemap.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: imagemap.php,v 1.6.2.1 2006/03/27 15:31:25 jenst Exp $
+* $Id: imagemap.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/add_photos/add_applet.cfg gallery-1.5.4/includes/add_photos/add_applet.cfg
--- gallery-1.5.3/includes/add_photos/add_applet.cfg	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_applet.cfg	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_applet.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_applet.cfg 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/includes/add_photos/add_applet.inc gallery-1.5.4/includes/add_photos/add_applet.inc
--- gallery-1.5.3/includes/add_photos/add_applet.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_applet.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_applet.inc,v 1.10.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_applet.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/includes/add_photos/add_applet_mini.cfg gallery-1.5.4/includes/add_photos/add_applet_mini.cfg
--- gallery-1.5.3/includes/add_photos/add_applet_mini.cfg	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_applet_mini.cfg	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_applet_mini.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_applet_mini.cfg 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/includes/add_photos/add_applet_mini.inc gallery-1.5.4/includes/add_photos/add_applet_mini.inc
--- gallery-1.5.3/includes/add_photos/add_applet_mini.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_applet_mini.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_applet_mini.inc,v 1.9.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_applet_mini.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/includes/add_photos/add_form.inc gallery-1.5.4/includes/add_photos/add_form.inc
--- gallery-1.5.3/includes/add_photos/add_form.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_form.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_form.inc,v 1.32.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_form.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/add_photos/add_other.inc gallery-1.5.4/includes/add_photos/add_other.inc
--- gallery-1.5.3/includes/add_photos/add_other.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_other.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_other.inc,v 1.13.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_other.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <p>
diff -Naur gallery-1.5.3/includes/add_photos/add_url.inc gallery-1.5.4/includes/add_photos/add_url.inc
--- gallery-1.5.3/includes/add_photos/add_url.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/add_url.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: add_url.inc,v 1.18.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: add_url.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/add_photos/captionOptions.inc.php gallery-1.5.4/includes/add_photos/captionOptions.inc.php
--- gallery-1.5.3/includes/add_photos/captionOptions.inc.php	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/add_photos/captionOptions.inc.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: captionOptions.inc.php,v 1.6.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: captionOptions.inc.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <input type="radio" name="setCaption" value="0" id="setCaption0"><label for="setCaption0"><?php echo gTranslate('core', "Leave blank.") ?></label>
diff -Naur gallery-1.5.3/includes/definitions/albumProperties.php gallery-1.5.4/includes/definitions/albumProperties.php
--- gallery-1.5.3/includes/definitions/albumProperties.php	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/definitions/albumProperties.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: albumProperties.php,v 1.11.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: albumProperties.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/definitions/mime.mapping.php gallery-1.5.4/includes/definitions/mime.mapping.php
--- gallery-1.5.3/includes/definitions/mime.mapping.php	2005-10-11 19:38:29.000000000 +0200
+++ gallery-1.5.4/includes/definitions/mime.mapping.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,5 +1,9 @@
 <?php
 /**
+ * Gallery SVN info
+ * $Id: mime.mapping.php 13580 2006-05-02 10:22:26Z jenst $
+ *
+ *
  * This file contains a mapping of common file extensions to
  * MIME types.
  *
diff -Naur gallery-1.5.3/includes/definitions/navIcons.php gallery-1.5.4/includes/definitions/navIcons.php
--- gallery-1.5.3/includes/definitions/navIcons.php	2005-12-09 00:32:40.000000000 +0100
+++ gallery-1.5.4/includes/definitions/navIcons.php	2005-12-09 00:32:42.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: navIcons.php,v 1.1 2005/12/08 23:32:40 jenst Exp $ */ ?>
+<?php /* $Id: navIcons.php 12232 2005-12-08 23:32:42Z jenst $ */ ?>
 <?php
 
 if ($gallery->direction == "ltr") {
diff -Naur gallery-1.5.3/includes/definitions/services.php gallery-1.5.4/includes/definitions/services.php
--- gallery-1.5.3/includes/definitions/services.php	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/definitions/services.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: services.php,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: services.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/ecard/templates/error.htm gallery-1.5.4/includes/ecard/templates/error.htm
--- gallery-1.5.3/includes/ecard/templates/error.htm	2005-04-17 15:31:41.000000000 +0200
+++ gallery-1.5.4/includes/ecard/templates/error.htm	2005-04-17 15:31:43.000000000 +0200
@@ -1,17 +1,17 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD>
-<TITLE>E-C@rds - Errore</TITLE>
-</HEAD>
-<BODY>
-<BR>
-<DIV ALIGN="center">
-<FONT FACE="Arial, Helvetica, Sansserif" SIZE="2">
-<H3><img src="../../images/ecard_images/stop.gif" width="200" height="200"></H3>
-<BR>
-Error during processing the ecard!<BR>
-Please close this window and try again later, Thanks.<br>
-</FONT>
-</DIV>
-</BODY>
-</HTML>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<TITLE>E-C@rds - Errore</TITLE>
+</HEAD>
+<BODY>
+<BR>
+<DIV ALIGN="center">
+<FONT FACE="Arial, Helvetica, Sansserif" SIZE="2">
+<H3><img src="../../images/ecard_images/stop.gif" width="200" height="200"></H3>
+<BR>
+Error during processing the ecard!<BR>
+Please close this window and try again later, Thanks.<br>
+</FONT>
+</DIV>
+</BODY>
+</HTML>
diff -Naur gallery-1.5.3/includes/ecard/templates/leer.htm gallery-1.5.4/includes/ecard/templates/leer.htm
--- gallery-1.5.3/includes/ecard/templates/leer.htm	2005-04-17 15:31:41.000000000 +0200
+++ gallery-1.5.4/includes/ecard/templates/leer.htm	2005-04-17 15:31:43.000000000 +0200
@@ -1,9 +1,9 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD>
-<TITLE>E-C@rds</TITLE>
-</HEAD>
-<BODY BGCOLOR="#FFFFFF">
-<P>&nbsp;</P>
-</BODY>
-</HTML>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<TITLE>E-C@rds</TITLE>
+</HEAD>
+<BODY BGCOLOR="#FFFFFF">
+<P>&nbsp;</P>
+</BODY>
+</HTML>
diff -Naur gallery-1.5.3/includes/errors/configure_help.php gallery-1.5.4/includes/errors/configure_help.php
--- gallery-1.5.3/includes/errors/configure_help.php	2005-06-30 13:16:56.000000000 +0200
+++ gallery-1.5.4/includes/errors/configure_help.php	2005-06-30 13:17:13.000000000 +0200
@@ -1,3 +1,3 @@
-<?php /* $Id: configure_help.php,v 1.1 2005/06/30 11:16:56 jenst Exp $ */ ?>
+<?php /* $Id: configure_help.php 10669 2005-06-30 11:17:13Z jenst $ */ ?>
 <?php echo sprintf(_("If you experience problems, you can find help on the %sGallery Help Page%s."),
 '<a href="http://gallery.sourceforge.net/help.php">', '</a>') ?>
diff -Naur gallery-1.5.3/includes/errors/reconfigure.php gallery-1.5.4/includes/errors/reconfigure.php
--- gallery-1.5.3/includes/errors/reconfigure.php	2005-07-19 22:57:20.000000000 +0200
+++ gallery-1.5.4/includes/errors/reconfigure.php	2005-07-19 22:57:25.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: reconfigure.php,v 1.2 2005/07/19 20:57:20 jenst Exp $
+// $Id: reconfigure.php 10956 2005-07-19 20:57:25Z jenst $
 ?>
 <?php 
     doctype();
diff -Naur gallery-1.5.3/includes/errors/unconfigured.php gallery-1.5.4/includes/errors/unconfigured.php
--- gallery-1.5.3/includes/errors/unconfigured.php	2005-07-19 22:57:20.000000000 +0200
+++ gallery-1.5.4/includes/errors/unconfigured.php	2005-07-19 22:57:25.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: unconfigured.php,v 1.2 2005/07/19 20:57:20 jenst Exp $
+// $Id: unconfigured.php 10956 2005-07-19 20:57:25Z jenst $
 ?>
 <?php 
     doctype();
diff -Naur gallery-1.5.3/includes/slideshow/applet.cfg gallery-1.5.4/includes/slideshow/applet.cfg
--- gallery-1.5.3/includes/slideshow/applet.cfg	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/slideshow/applet.cfg	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: applet.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: applet.cfg 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/includes/slideshow/applet.inc gallery-1.5.4/includes/slideshow/applet.inc
--- gallery-1.5.3/includes/slideshow/applet.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/slideshow/applet.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: applet.inc,v 1.11.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: applet.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/slideshow/high.inc gallery-1.5.4/includes/slideshow/high.inc
--- gallery-1.5.3/includes/slideshow/high.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/slideshow/high.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: high.inc,v 1.19.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: high.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/includes/slideshow/low.inc gallery-1.5.4/includes/slideshow/low.inc
--- gallery-1.5.3/includes/slideshow/low.inc	2006-03-27 17:31:29.000000000 +0200
+++ gallery-1.5.4/includes/slideshow/low.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: low.inc,v 1.17.2.1 2006/03/27 15:31:29 jenst Exp $
+ * $Id: low.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 
 /*
diff -Naur gallery-1.5.3/includes/stats/stats.inc.php gallery-1.5.4/includes/stats/stats.inc.php
--- gallery-1.5.3/includes/stats/stats.inc.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/includes/stats/stats.inc.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: stats.inc.php,v 1.13.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: stats.inc.php 13338 2006-03-27 15:32:14Z jenst $
  *
  */
 ?>
diff -Naur gallery-1.5.3/index.php gallery-1.5.4/index.php
--- gallery-1.5.3/index.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/index.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: index.php,v 1.81.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: index.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/init.php gallery-1.5.4/init.php
--- gallery-1.5.3/init.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/init.php	2006-06-19 14:22:19.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: init.php,v 1.137.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: init.php 13849 2006-06-19 12:22:19Z jenst $
 */
 ?>
 <?php
@@ -182,12 +182,9 @@
 
 $gallerySanity = gallerySanityCheck();
 
-// Languages need to be initialized early or installations without gettext will break.
-// initLanguage is called again later in init.php to pick up user settings.
-initLanguage();
-
 /* Make sure that Gallery is set up properly */
 if ($gallerySanity != NULL) {
+    initLanguage();
     include_once(dirname(__FILE__) . "/includes/errors/$gallerySanity");
     exit;
 }
diff -Naur gallery-1.5.3/js/client_sniff.js gallery-1.5.4/js/client_sniff.js
--- gallery-1.5.3/js/client_sniff.js	2003-06-26 11:23:56.000000000 +0200
+++ gallery-1.5.4/js/client_sniff.js	2003-06-26 11:23:57.000000000 +0200
@@ -10,7 +10,7 @@
 // Revised 26 Mar 01 to correct Opera detection
 // Revised 02 Oct 01 to add IE6 detection
 
-// $Id: client_sniff.js,v 1.2 2003/06/26 09:23:56 jefmcg Exp $
+// $Id: client_sniff.js 3038 2003-06-26 09:23:57Z jefmcg $
 
 // Everything you always wanted to know about your JavaScript client
 // but were afraid to ask. Creates "is_" variables indicating:
diff -Naur gallery-1.5.3/js/fitToWindow.js.php gallery-1.5.4/js/fitToWindow.js.php
--- gallery-1.5.3/js/fitToWindow.js.php	2006-01-18 19:09:31.000000000 +0100
+++ gallery-1.5.4/js/fitToWindow.js.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,3 +1,9 @@
+<?php
+/**
+ * Gallery SVN info
+ * $Id: fitToWindow.js.php 13580 2006-05-02 10:22:26Z jenst $
+*/
+?>
 <script type="text/javascript">
 <!--
 
diff -Naur gallery-1.5.3/js/imagemap.js gallery-1.5.4/js/imagemap.js
--- gallery-1.5.3/js/imagemap.js	2005-12-09 15:59:12.000000000 +0100
+++ gallery-1.5.4/js/imagemap.js	2006-08-02 16:14:43.000000000 +0200
@@ -14,16 +14,19 @@
       jg.setColor("#FFFFFF");
 
       getMyPicCoords();
-      /* Update map coords */
-      for(i=0; i< map.length; ++i) {
-          for (j=0; j< map[i]['x_coords'].length; ++j) {
-              map[i]['x_coords'][j] = map[i]['x_coords'][j] + minX;
-              map[i]['y_coords'][j] = map[i]['y_coords'][j] + minY;
+
+      if(typeof map != "undefined") {
+          /* Update map coords */
+          for(i=0; i< map.length; ++i) {
+              for (j=0; j< map[i]['x_coords'].length; ++j) {
+                  map[i]['x_coords'][j] = map[i]['x_coords'][j] + minX;
+                  map[i]['y_coords'][j] = map[i]['y_coords'][j] + minY;
+              }
           }
       }
   }
 
-    
+
   // find out if ie runs in quirks mode
   var docEl = (typeof document.compatMode != "undefined" && document.compatMode != "BackCompat")? "documentElement" : "body";
 
@@ -68,7 +71,7 @@
       // for the dino pass event
       if (document.layers) routeEvent(e);
   }
-  
+
   function dpl_mouse_click(e) {
       getMyPicCoords();
       // position where mousemove fired
@@ -113,7 +116,7 @@
 
   function getMyPicCoords() {
       element = document.getElementById('myPic');
-    
+
       width   = element.width;
       height  = element.height;
 
@@ -125,7 +128,7 @@
       }
   };
 
-    
+
   function resetAndClear() {
       jg.clear();
       xVals = new Array();
@@ -135,7 +138,7 @@
       document.areas.xvals.value    =  xVals;
       document.areas.yvals.value    =  yVals;
   }
-  
+
   function updatePictureAndArea () {
       el = document.getElementById('imageareas');
       areaurl = document.getElementById('areaurl');
diff -Naur gallery-1.5.3/js/multifile.js.php gallery-1.5.4/js/multifile.js.php
--- gallery-1.5.3/js/multifile.js.php	2005-12-30 19:43:29.000000000 +0100
+++ gallery-1.5.4/js/multifile.js.php	2006-07-29 05:27:13.000000000 +0200
@@ -1,3 +1,9 @@
+<?php
+/**
+ * Gallery SVN info
+ * $Id: multifile.js.php 14113 2006-07-29 03:27:13Z jenst $
+*/
+?>
 <script language="JavaScript" type="text/javascript">
 /**
  *
@@ -31,7 +37,7 @@
         this.max = -1;
     };
     this.fieldname = fieldname;
-    
+
     /**
     * Add a new file input element
     */
@@ -54,7 +60,7 @@
                 new_element.type = 'file';
 
                 // Add new element
-                this.parentNode.insertBefore(new_element, this);
+                this.parentNode.insertBefore(new_element, this.nextSibling);
 
                 // Apply 'update' to element
                 this.multi_selector.addElement(new_element);
@@ -148,7 +154,7 @@
             // Set row value
             filenameCaptionDiv.innerHTML = '<b>'+ element.value +'</b>';
         }
-        
+
         // Add button
         line.appendChild(deleteButton);
 
diff -Naur gallery-1.5.3/js/sectionTabs.js.php gallery-1.5.4/js/sectionTabs.js.php
--- gallery-1.5.3/js/sectionTabs.js.php	2005-04-25 02:20:01.000000000 +0200
+++ gallery-1.5.4/js/sectionTabs.js.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,4 +1,8 @@
 <?php
+/**
+ * Gallery SVN info
+ * $Id: sectionTabs.js.php 13580 2006-05-02 10:22:26Z jenst $
+*/
 
 function insertSectionToggle() {
 ?>
diff -Naur gallery-1.5.3/js/wz_jsgraphics.js gallery-1.5.4/js/wz_jsgraphics.js
--- gallery-1.5.3/js/wz_jsgraphics.js	2005-11-21 22:06:24.000000000 +0100
+++ gallery-1.5.4/js/wz_jsgraphics.js	2005-11-21 22:06:24.000000000 +0100
@@ -1,943 +1,943 @@
-/* This notice must be untouched at all times.
-
-wz_jsgraphics.js    v. 2.33
-The latest version is available at
-http://www.walterzorn.com
-or http://www.devira.com
-or http://www.walterzorn.de
-
-Copyright (c) 2002-2004 Walter Zorn. All rights reserved.
-Created 3. 11. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
-Last modified: 24. 10. 2005
-
-Performance optimizations for Internet Explorer
-by Thomas Frank and John Holdsworth.
-fillPolygon method implemented by Matthieu Haller.
-
-High Performance JavaScript Graphics Library.
-Provides methods
-- to draw lines, rectangles, ellipses, polygons
-	with specifiable line thickness,
-- to fill rectangles and ellipses
-- to draw text.
-NOTE: Operations, functions and branching have rather been optimized
-to efficiency and speed than to shortness of source code.
-
-LICENSE: LGPL
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License (LGPL) as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library 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
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA,
-or see http://www.gnu.org/copyleft/lesser.html
-*/
-
-
-var jg_ihtm, jg_ie, jg_fast, jg_dom, jg_moz,
-jg_n4 = (document.layers && typeof document.classes != "undefined");
-
-
-function chkDHTM(x, i)
-{
-	x = document.body || null;
-	jg_ie = x && typeof x.insertAdjacentHTML != "undefined";
-	jg_dom = (x && !jg_ie &&
-		typeof x.appendChild != "undefined" &&
-		typeof document.createRange != "undefined" &&
-		typeof (i = document.createRange()).setStartBefore != "undefined" &&
-		typeof i.createContextualFragment != "undefined");
-	jg_ihtm = !jg_ie && !jg_dom && x && typeof x.innerHTML != "undefined";
-	jg_fast = jg_ie && document.all && !window.opera;
-	jg_moz = jg_dom && typeof x.style.MozOpacity != "undefined";
-}
-
-
-function pntDoc()
-{
-	this.wnd.document.write(jg_fast? this.htmRpc() : this.htm);
-	this.htm = '';
-}
-
-
-function pntCnvDom()
-{
-	var x = document.createRange();
-	x.setStartBefore(this.cnv);
-	x = x.createContextualFragment(jg_fast? this.htmRpc() : this.htm);
-	this.cnv.appendChild(x);
-	this.htm = '';
-}
-
-
-function pntCnvIe()
-{
-	this.cnv.insertAdjacentHTML("BeforeEnd", jg_fast? this.htmRpc() : this.htm);
-	this.htm = '';
-}
-
-
-function pntCnvIhtm()
-{
-	this.cnv.innerHTML += this.htm;
-	this.htm = '';
-}
-
-
-function pntCnv()
-{
-	this.htm = '';
-}
-
-
-function mkDiv(x, y, w, h)
-{
-	this.htm += '<div style="position:absolute;'+
-		'left:' + x + 'px;'+
-		'top:' + y + 'px;'+
-		'width:' + w + 'px;'+
-		'height:' + h + 'px;'+
-		'clip:rect(0,'+w+'px,'+h+'px,0);'+
-		'background-color:' + this.color +
-		(!jg_moz? ';overflow:hidden' : '')+
-		';"><\/div>';
-}
-
-
-function mkDivIe(x, y, w, h)
-{
-	this.htm += '%%'+this.color+';'+x+';'+y+';'+w+';'+h+';';
-}
-
-
-function mkDivPrt(x, y, w, h)
-{
-	this.htm += '<div style="position:absolute;'+
-		'border-left:' + w + 'px solid ' + this.color + ';'+
-		'left:' + x + 'px;'+
-		'top:' + y + 'px;'+
-		'width:0px;'+
-		'height:' + h + 'px;'+
-		'clip:rect(0,'+w+'px,'+h+'px,0);'+
-		'background-color:' + this.color +
-		(!jg_moz? ';overflow:hidden' : '')+
-		';"><\/div>';
-}
-
-
-function mkLyr(x, y, w, h)
-{
-	this.htm += '<layer '+
-		'left="' + x + '" '+
-		'top="' + y + '" '+
-		'width="' + w + '" '+
-		'height="' + h + '" '+
-		'bgcolor="' + this.color + '"><\/layer>\n';
-}
-
-
-var regex =  /%%([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);/g;
-function htmRpc()
-{
-	return this.htm.replace(
-		regex,
-		'<div style="overflow:hidden;position:absolute;background-color:'+
-		'$1;left:$2;top:$3;width:$4;height:$5"></div>\n');
-}
-
-
-function htmPrtRpc()
-{
-	return this.htm.replace(
-		regex,
-		'<div style="overflow:hidden;position:absolute;background-color:'+
-		'$1;left:$2;top:$3;width:$4;height:$5;border-left:$4px solid $1"></div>\n');
-}
-
-
-function mkLin(x1, y1, x2, y2)
-{
-	if (x1 > x2)
-	{
-		var _x2 = x2;
-		var _y2 = y2;
-		x2 = x1;
-		y2 = y1;
-		x1 = _x2;
-		y1 = _y2;
-	}
-	var dx = x2-x1, dy = Math.abs(y2-y1),
-	x = x1, y = y1,
-	yIncr = (y1 > y2)? -1 : 1;
-
-	if (dx >= dy)
-	{
-		var pr = dy<<1,
-		pru = pr - (dx<<1),
-		p = pr-dx,
-		ox = x;
-		while ((dx--) > 0)
-		{
-			++x;
-			if (p > 0)
-			{
-				this.mkDiv(ox, y, x-ox, 1);
-				y += yIncr;
-				p += pru;
-				ox = x;
-			}
-			else p += pr;
-		}
-		this.mkDiv(ox, y, x2-ox+1, 1);
-	}
-
-	else
-	{
-		var pr = dx<<1,
-		pru = pr - (dy<<1),
-		p = pr-dy,
-		oy = y;
-		if (y2 <= y1)
-		{
-			while ((dy--) > 0)
-			{
-				if (p > 0)
-				{
-					this.mkDiv(x++, y, 1, oy-y+1);
-					y += yIncr;
-					p += pru;
-					oy = y;
-				}
-				else
-				{
-					y += yIncr;
-					p += pr;
-				}
-			}
-			this.mkDiv(x2, y2, 1, oy-y2+1);
-		}
-		else
-		{
-			while ((dy--) > 0)
-			{
-				y += yIncr;
-				if (p > 0)
-				{
-					this.mkDiv(x++, oy, 1, y-oy);
-					p += pru;
-					oy = y;
-				}
-				else p += pr;
-			}
-			this.mkDiv(x2, oy, 1, y2-oy+1);
-		}
-	}
-}
-
-
-function mkLin2D(x1, y1, x2, y2)
-{
-	if (x1 > x2)
-	{
-		var _x2 = x2;
-		var _y2 = y2;
-		x2 = x1;
-		y2 = y1;
-		x1 = _x2;
-		y1 = _y2;
-	}
-	var dx = x2-x1, dy = Math.abs(y2-y1),
-	x = x1, y = y1,
-	yIncr = (y1 > y2)? -1 : 1;
-
-	var s = this.stroke;
-	if (dx >= dy)
-	{
-		if (dx > 0 && s-3 > 0)
-		{
-			var _s = (s*dx*Math.sqrt(1+dy*dy/(dx*dx))-dx-(s>>1)*dy) / dx;
-			_s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1;
-		}
-		else var _s = s;
-		var ad = Math.ceil(s/2);
-
-		var pr = dy<<1,
-		pru = pr - (dx<<1),
-		p = pr-dx,
-		ox = x;
-		while ((dx--) > 0)
-		{
-			++x;
-			if (p > 0)
-			{
-				this.mkDiv(ox, y, x-ox+ad, _s);
-				y += yIncr;
-				p += pru;
-				ox = x;
-			}
-			else p += pr;
-		}
-		this.mkDiv(ox, y, x2-ox+ad+1, _s);
-	}
-
-	else
-	{
-		if (s-3 > 0)
-		{
-			var _s = (s*dy*Math.sqrt(1+dx*dx/(dy*dy))-(s>>1)*dx-dy) / dy;
-			_s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1;
-		}
-		else var _s = s;
-		var ad = Math.round(s/2);
-
-		var pr = dx<<1,
-		pru = pr - (dy<<1),
-		p = pr-dy,
-		oy = y;
-		if (y2 <= y1)
-		{
-			++ad;
-			while ((dy--) > 0)
-			{
-				if (p > 0)
-				{
-					this.mkDiv(x++, y, _s, oy-y+ad);
-					y += yIncr;
-					p += pru;
-					oy = y;
-				}
-				else
-				{
-					y += yIncr;
-					p += pr;
-				}
-			}
-			this.mkDiv(x2, y2, _s, oy-y2+ad);
-		}
-		else
-		{
-			while ((dy--) > 0)
-			{
-				y += yIncr;
-				if (p > 0)
-				{
-					this.mkDiv(x++, oy, _s, y-oy+ad);
-					p += pru;
-					oy = y;
-				}
-				else p += pr;
-			}
-			this.mkDiv(x2, oy, _s, y2-oy+ad+1);
-		}
-	}
-}
-
-
-function mkLinDott(x1, y1, x2, y2)
-{
-	if (x1 > x2)
-	{
-		var _x2 = x2;
-		var _y2 = y2;
-		x2 = x1;
-		y2 = y1;
-		x1 = _x2;
-		y1 = _y2;
-	}
-	var dx = x2-x1, dy = Math.abs(y2-y1),
-	x = x1, y = y1,
-	yIncr = (y1 > y2)? -1 : 1,
-	drw = true;
-	if (dx >= dy)
-	{
-		var pr = dy<<1,
-		pru = pr - (dx<<1),
-		p = pr-dx;
-		while ((dx--) > 0)
-		{
-			if (drw) this.mkDiv(x, y, 1, 1);
-			drw = !drw;
-			if (p > 0)
-			{
-				y += yIncr;
-				p += pru;
-			}
-			else p += pr;
-			++x;
-		}
-		if (drw) this.mkDiv(x, y, 1, 1);
-	}
-
-	else
-	{
-		var pr = dx<<1,
-		pru = pr - (dy<<1),
-		p = pr-dy;
-		while ((dy--) > 0)
-		{
-			if (drw) this.mkDiv(x, y, 1, 1);
-			drw = !drw;
-			y += yIncr;
-			if (p > 0)
-			{
-				++x;
-				p += pru;
-			}
-			else p += pr;
-		}
-		if (drw) this.mkDiv(x, y, 1, 1);
-	}
-}
-
-
-function mkOv(left, top, width, height)
-{
-	var a = width>>1, b = height>>1,
-	wod = width&1, hod = (height&1)+1,
-	cx = left+a, cy = top+b,
-	x = 0, y = b,
-	ox = 0, oy = b,
-	aa = (a*a)<<1, bb = (b*b)<<1,
-	st = (aa>>1)*(1-(b<<1)) + bb,
-	tt = (bb>>1) - aa*((b<<1)-1),
-	w, h;
-	while (y > 0)
-	{
-		if (st < 0)
-		{
-			st += bb*((x<<1)+3);
-			tt += (bb<<1)*(++x);
-		}
-		else if (tt < 0)
-		{
-			st += bb*((x<<1)+3) - (aa<<1)*(y-1);
-			tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
-			w = x-ox;
-			h = oy-y;
-			if (w&2 && h&2)
-			{
-				this.mkOvQds(cx, cy, -x+2, ox+wod, -oy, oy-1+hod, 1, 1);
-				this.mkOvQds(cx, cy, -x+1, x-1+wod, -y-1, y+hod, 1, 1);
-			}
-			else this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, oy-h+hod, w, h);
-			ox = x;
-			oy = y;
-		}
-		else
-		{
-			tt -= aa*((y<<1)-3);
-			st -= (aa<<1)*(--y);
-		}
-	}
-	this.mkDiv(cx-a, cy-oy, a-ox+1, (oy<<1)+hod);
-	this.mkDiv(cx+ox+wod, cy-oy, a-ox+1, (oy<<1)+hod);
-}
-
-
-function mkOv2D(left, top, width, height)
-{
-	var s = this.stroke;
-	width += s-1;
-	height += s-1;
-	var a = width>>1, b = height>>1,
-	wod = width&1, hod = (height&1)+1,
-	cx = left+a, cy = top+b,
-	x = 0, y = b,
-	aa = (a*a)<<1, bb = (b*b)<<1,
-	st = (aa>>1)*(1-(b<<1)) + bb,
-	tt = (bb>>1) - aa*((b<<1)-1);
-
-	if (s-4 < 0 && (!(s-2) || width-51 > 0 && height-51 > 0))
-	{
-		var ox = 0, oy = b,
-		w, h,
-		pxl, pxr, pxt, pxb, pxw;
-		while (y > 0)
-		{
-			if (st < 0)
-			{
-				st += bb*((x<<1)+3);
-				tt += (bb<<1)*(++x);
-			}
-			else if (tt < 0)
-			{
-				st += bb*((x<<1)+3) - (aa<<1)*(y-1);
-				tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
-				w = x-ox;
-				h = oy-y;
-
-				if (w-1)
-				{
-					pxw = w+1+(s&1);
-					h = s;
-				}
-				else if (h-1)
-				{
-					pxw = s;
-					h += 1+(s&1);
-				}
-				else pxw = h = s;
-				this.mkOvQds(cx, cy, -x+1, ox-pxw+w+wod, -oy, -h+oy+hod, pxw, h);
-				ox = x;
-				oy = y;
-			}
-			else
-			{
-				tt -= aa*((y<<1)-3);
-				st -= (aa<<1)*(--y);
-			}
-		}
-		this.mkDiv(cx-a, cy-oy, s, (oy<<1)+hod);
-		this.mkDiv(cx+a+wod-s+1, cy-oy, s, (oy<<1)+hod);
-	}
-
-	else
-	{
-		var _a = (width-((s-1)<<1))>>1,
-		_b = (height-((s-1)<<1))>>1,
-		_x = 0, _y = _b,
-		_aa = (_a*_a)<<1, _bb = (_b*_b)<<1,
-		_st = (_aa>>1)*(1-(_b<<1)) + _bb,
-		_tt = (_bb>>1) - _aa*((_b<<1)-1),
-
-		pxl = new Array(),
-		pxt = new Array(),
-		_pxb = new Array();
-		pxl[0] = 0;
-		pxt[0] = b;
-		_pxb[0] = _b-1;
-		while (y > 0)
-		{
-			if (st < 0)
-			{
-				st += bb*((x<<1)+3);
-				tt += (bb<<1)*(++x);
-				pxl[pxl.length] = x;
-				pxt[pxt.length] = y;
-			}
-			else if (tt < 0)
-			{
-				st += bb*((x<<1)+3) - (aa<<1)*(y-1);
-				tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
-				pxl[pxl.length] = x;
-				pxt[pxt.length] = y;
-			}
-			else
-			{
-				tt -= aa*((y<<1)-3);
-				st -= (aa<<1)*(--y);
-			}
-
-			if (_y > 0)
-			{
-				if (_st < 0)
-				{
-					_st += _bb*((_x<<1)+3);
-					_tt += (_bb<<1)*(++_x);
-					_pxb[_pxb.length] = _y-1;
-				}
-				else if (_tt < 0)
-				{
-					_st += _bb*((_x<<1)+3) - (_aa<<1)*(_y-1);
-					_tt += (_bb<<1)*(++_x) - _aa*(((_y--)<<1)-3);
-					_pxb[_pxb.length] = _y-1;
-				}
-				else
-				{
-					_tt -= _aa*((_y<<1)-3);
-					_st -= (_aa<<1)*(--_y);
-					_pxb[_pxb.length-1]--;
-				}
-			}
-		}
-
-		var ox = 0, oy = b,
-		_oy = _pxb[0],
-		l = pxl.length,
-		w, h;
-		for (var i = 0; i < l; i++)
-		{
-			if (typeof _pxb[i] != "undefined")
-			{
-				if (_pxb[i] < _oy || pxt[i] < oy)
-				{
-					x = pxl[i];
-					this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, _oy+hod, x-ox, oy-_oy);
-					ox = x;
-					oy = pxt[i];
-					_oy = _pxb[i];
-				}
-			}
-			else
-			{
-				x = pxl[i];
-				this.mkDiv(cx-x+1, cy-oy, 1, (oy<<1)+hod);
-				this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod);
-				ox = x;
-				oy = pxt[i];
-			}
-		}
-		this.mkDiv(cx-a, cy-oy, 1, (oy<<1)+hod);
-		this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod);
-	}
-}
-
-
-function mkOvDott(left, top, width, height)
-{
-	var a = width>>1, b = height>>1,
-	wod = width&1, hod = height&1,
-	cx = left+a, cy = top+b,
-	x = 0, y = b,
-	aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1,
-	st = (aa2>>1)*(1-(b<<1)) + bb,
-	tt = (bb>>1) - aa2*((b<<1)-1),
-	drw = true;
-	while (y > 0)
-	{
-		if (st < 0)
-		{
-			st += bb*((x<<1)+3);
-			tt += (bb<<1)*(++x);
-		}
-		else if (tt < 0)
-		{
-			st += bb*((x<<1)+3) - aa4*(y-1);
-			tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3);
-		}
-		else
-		{
-			tt -= aa2*((y<<1)-3);
-			st -= aa4*(--y);
-		}
-		if (drw) this.mkOvQds(cx, cy, -x, x+wod, -y, y+hod, 1, 1);
-		drw = !drw;
-	}
-}
-
-
-function mkRect(x, y, w, h)
-{
-	var s = this.stroke;
-	this.mkDiv(x, y, w, s);
-	this.mkDiv(x+w, y, s, h);
-	this.mkDiv(x, y+h, w+s, s);
-	this.mkDiv(x, y+s, s, h-s);
-}
-
-
-function mkRectDott(x, y, w, h)
-{
-	this.drawLine(x, y, x+w, y);
-	this.drawLine(x+w, y, x+w, y+h);
-	this.drawLine(x, y+h, x+w, y+h);
-	this.drawLine(x, y, x, y+h);
-}
-
-
-function jsgFont()
-{
-	this.PLAIN = 'font-weight:normal;';
-	this.BOLD = 'font-weight:bold;';
-	this.ITALIC = 'font-style:italic;';
-	this.ITALIC_BOLD = this.ITALIC + this.BOLD;
-	this.BOLD_ITALIC = this.ITALIC_BOLD;
-}
-var Font = new jsgFont();
-
-
-function jsgStroke()
-{
-	this.DOTTED = -1;
-}
-var Stroke = new jsgStroke();
-
-
-function jsGraphics(id, wnd)
-{
-	this.setColor = new Function('arg', 'this.color = arg.toLowerCase();');
-
-	this.setStroke = function(x)
-	{
-		this.stroke = x;
-		if (!(x+1))
-		{
-			this.drawLine = mkLinDott;
-			this.mkOv = mkOvDott;
-			this.drawRect = mkRectDott;
-		}
-		else if (x-1 > 0)
-		{
-			this.drawLine = mkLin2D;
-			this.mkOv = mkOv2D;
-			this.drawRect = mkRect;
-		}
-		else
-		{
-			this.drawLine = mkLin;
-			this.mkOv = mkOv;
-			this.drawRect = mkRect;
-		}
-	};
-
-
-	this.setPrintable = function(arg)
-	{
-		this.printable = arg;
-		if (jg_fast)
-		{
-			this.mkDiv = mkDivIe;
-			this.htmRpc = arg? htmPrtRpc : htmRpc;
-		}
-		else this.mkDiv = jg_n4? mkLyr : arg? mkDivPrt : mkDiv;
-	};
-
-
-	this.setFont = function(fam, sz, sty)
-	{
-		this.ftFam = fam;
-		this.ftSz = sz;
-		this.ftSty = sty || Font.PLAIN;
-	};
-
-
-	this.drawPolyline = this.drawPolyLine = function(x, y, s)
-	{
-		for (var i=0 ; i<x.length-1 ; i++ )
-			this.drawLine(x[i], y[i], x[i+1], y[i+1]);
-	};
-
-
-	this.fillRect = function(x, y, w, h)
-	{
-		this.mkDiv(x, y, w, h);
-	};
-
-
-	this.drawPolygon = function(x, y)
-	{
-		this.drawPolyline(x, y);
-		this.drawLine(x[x.length-1], y[x.length-1], x[0], y[0]);
-	};
-
-
-	this.drawEllipse = this.drawOval = function(x, y, w, h)
-	{
-		this.mkOv(x, y, w, h);
-	};
-
-
-	this.fillEllipse = this.fillOval = function(left, top, w, h)
-	{
-		var a = (w -= 1)>>1, b = (h -= 1)>>1,
-		wod = (w&1)+1, hod = (h&1)+1,
-		cx = left+a, cy = top+b,
-		x = 0, y = b,
-		ox = 0, oy = b,
-		aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1,
-		st = (aa2>>1)*(1-(b<<1)) + bb,
-		tt = (bb>>1) - aa2*((b<<1)-1),
-		pxl, dw, dh;
-		if (w+1) while (y > 0)
-		{
-			if (st < 0)
-			{
-				st += bb*((x<<1)+3);
-				tt += (bb<<1)*(++x);
-			}
-			else if (tt < 0)
-			{
-				st += bb*((x<<1)+3) - aa4*(y-1);
-				pxl = cx-x;
-				dw = (x<<1)+wod;
-				tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3);
-				dh = oy-y;
-				this.mkDiv(pxl, cy-oy, dw, dh);
-				this.mkDiv(pxl, cy+y+hod, dw, dh);
-				ox = x;
-				oy = y;
-			}
-			else
-			{
-				tt -= aa2*((y<<1)-3);
-				st -= aa4*(--y);
-			}
-		}
-		this.mkDiv(cx-a, cy-oy, w+1, (oy<<1)+hod);
-	};
-
-
-/* fillPolygon method, implemented by Matthieu Haller.
-This javascript function is an adaptation of the gdImageFilledPolygon for Walter Zorn lib.
-C source of GD 1.8.4 found at http://www.boutell.com/gd/
-
-THANKS to Kirsten Schulz for the polygon fixes!
-
-The intersection finding technique of this code could be improved
-by remembering the previous intertersection, and by using the slope.
-That could help to adjust intersections to produce a nice
-interior_extrema. */
-	this.fillPolygon = function(array_x, array_y)
-	{
-		var i;
-		var y;
-		var miny, maxy;
-		var x1, y1;
-		var x2, y2;
-		var ind1, ind2;
-		var ints;
-
-		var n = array_x.length;
-
-		if (!n) return;
-
-
-		miny = array_y[0];
-		maxy = array_y[0];
-		for (i = 1; i < n; i++)
-		{
-			if (array_y[i] < miny)
-				miny = array_y[i];
-
-			if (array_y[i] > maxy)
-				maxy = array_y[i];
-		}
-		for (y = miny; y <= maxy; y++)
-		{
-			var polyInts = new Array();
-			ints = 0;
-			for (i = 0; i < n; i++)
-			{
-				if (!i)
-				{
-					ind1 = n-1;
-					ind2 = 0;
-				}
-				else
-				{
-					ind1 = i-1;
-					ind2 = i;
-				}
-				y1 = array_y[ind1];
-				y2 = array_y[ind2];
-				if (y1 < y2)
-				{
-					x1 = array_x[ind1];
-					x2 = array_x[ind2];
-				}
-				else if (y1 > y2)
-				{
-					y2 = array_y[ind1];
-					y1 = array_y[ind2];
-					x2 = array_x[ind1];
-					x1 = array_x[ind2];
-				}
-				else continue;
-
-				 // modified 11. 2. 2004 Walter Zorn
-				if ((y >= y1) && (y < y2))
-					polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1);
-
-				else if ((y == maxy) && (y > y1) && (y <= y2))
-					polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1);
-			}
-			polyInts.sort(integer_compare);
-			for (i = 0; i < ints; i+=2)
-				this.mkDiv(polyInts[i], y, polyInts[i+1]-polyInts[i]+1, 1);
-		}
-	};
-
-
-	this.drawString = function(txt, x, y)
-	{
-		this.htm += '<div style="position:absolute;white-space:nowrap;'+
-			'left:' + x + 'px;'+
-			'top:' + y + 'px;'+
-			'font-family:' +  this.ftFam + ';'+
-			'font-size:' + this.ftSz + ';'+
-			'color:' + this.color + ';' + this.ftSty + '">'+
-			txt +
-			'<\/div>';
-	};
-
-
-/* drawStringRect() added by Rick Blommers.
-Allows to specify the size of the text rectangle and to align the
-text both horizontally (e.g. right) and vertically within that rectangle */
-	this.drawStringRect = function(txt, x, y, width, halign)
-	{
-		this.htm += '<div style="position:absolute;overflow:hidden;'+
-			'left:' + x + 'px;'+
-			'top:' + y + 'px;'+
-			'width:'+width +'px;'+
-			'text-align:'+halign+';'+
-			'font-family:' +  this.ftFam + ';'+
-			'font-size:' + this.ftSz + ';'+
-			'color:' + this.color + ';' + this.ftSty + '">'+
-			txt +
-			'<\/div>';
-	};
-
-
-	this.drawImage = function(imgSrc, x, y, w, h, a)
-	{
-		this.htm += '<div style="position:absolute;'+
-			'left:' + x + 'px;'+
-			'top:' + y + 'px;'+
-			'width:' +  w + ';'+
-			'height:' + h + ';">'+
-			'<img src="' + imgSrc + '" width="' + w + '" height="' + h + '"' + (a? (' '+a) : '') + '>'+
-			'<\/div>';
-	};
-
-
-	this.clear = function()
-	{
-		this.htm = "";
-		if (this.cnv) this.cnv.innerHTML = this.defhtm;
-	};
-
-
-	this.mkOvQds = function(cx, cy, xl, xr, yt, yb, w, h)
-	{
-		this.mkDiv(xr+cx, yt+cy, w, h);
-		this.mkDiv(xr+cx, yb+cy, w, h);
-		this.mkDiv(xl+cx, yb+cy, w, h);
-		this.mkDiv(xl+cx, yt+cy, w, h);
-	};
-
-	this.setStroke(1);
-	this.setFont('verdana,geneva,helvetica,sans-serif', String.fromCharCode(0x31, 0x32, 0x70, 0x78), Font.PLAIN);
-	this.color = '#000000';
-	this.htm = '';
-	this.wnd = wnd || window;
-
-	if (!(jg_ie || jg_dom || jg_ihtm)) chkDHTM();
-	if (typeof id != 'string' || !id) this.paint = pntDoc;
-	else
-	{
-		this.cnv = document.all? (this.wnd.document.all[id] || null)
-			: document.getElementById? (this.wnd.document.getElementById(id) || null)
-			: null;
-		this.defhtm = (this.cnv && this.cnv.innerHTML)? this.cnv.innerHTML : '';
-		this.paint = jg_dom? pntCnvDom : jg_ie? pntCnvIe : jg_ihtm? pntCnvIhtm : pntCnv;
-	}
-
-	this.setPrintable(false);
-}
-
-
-
-function integer_compare(x,y)
-{
-	return (x < y) ? -1 : ((x > y)*1);
-}
-
+/* This notice must be untouched at all times.
+
+wz_jsgraphics.js    v. 2.33
+The latest version is available at
+http://www.walterzorn.com
+or http://www.devira.com
+or http://www.walterzorn.de
+
+Copyright (c) 2002-2004 Walter Zorn. All rights reserved.
+Created 3. 11. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
+Last modified: 24. 10. 2005
+
+Performance optimizations for Internet Explorer
+by Thomas Frank and John Holdsworth.
+fillPolygon method implemented by Matthieu Haller.
+
+High Performance JavaScript Graphics Library.
+Provides methods
+- to draw lines, rectangles, ellipses, polygons
+	with specifiable line thickness,
+- to fill rectangles and ellipses
+- to draw text.
+NOTE: Operations, functions and branching have rather been optimized
+to efficiency and speed than to shortness of source code.
+
+LICENSE: LGPL
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License (LGPL) as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA,
+or see http://www.gnu.org/copyleft/lesser.html
+*/
+
+
+var jg_ihtm, jg_ie, jg_fast, jg_dom, jg_moz,
+jg_n4 = (document.layers && typeof document.classes != "undefined");
+
+
+function chkDHTM(x, i)
+{
+	x = document.body || null;
+	jg_ie = x && typeof x.insertAdjacentHTML != "undefined";
+	jg_dom = (x && !jg_ie &&
+		typeof x.appendChild != "undefined" &&
+		typeof document.createRange != "undefined" &&
+		typeof (i = document.createRange()).setStartBefore != "undefined" &&
+		typeof i.createContextualFragment != "undefined");
+	jg_ihtm = !jg_ie && !jg_dom && x && typeof x.innerHTML != "undefined";
+	jg_fast = jg_ie && document.all && !window.opera;
+	jg_moz = jg_dom && typeof x.style.MozOpacity != "undefined";
+}
+
+
+function pntDoc()
+{
+	this.wnd.document.write(jg_fast? this.htmRpc() : this.htm);
+	this.htm = '';
+}
+
+
+function pntCnvDom()
+{
+	var x = document.createRange();
+	x.setStartBefore(this.cnv);
+	x = x.createContextualFragment(jg_fast? this.htmRpc() : this.htm);
+	this.cnv.appendChild(x);
+	this.htm = '';
+}
+
+
+function pntCnvIe()
+{
+	this.cnv.insertAdjacentHTML("BeforeEnd", jg_fast? this.htmRpc() : this.htm);
+	this.htm = '';
+}
+
+
+function pntCnvIhtm()
+{
+	this.cnv.innerHTML += this.htm;
+	this.htm = '';
+}
+
+
+function pntCnv()
+{
+	this.htm = '';
+}
+
+
+function mkDiv(x, y, w, h)
+{
+	this.htm += '<div style="position:absolute;'+
+		'left:' + x + 'px;'+
+		'top:' + y + 'px;'+
+		'width:' + w + 'px;'+
+		'height:' + h + 'px;'+
+		'clip:rect(0,'+w+'px,'+h+'px,0);'+
+		'background-color:' + this.color +
+		(!jg_moz? ';overflow:hidden' : '')+
+		';"><\/div>';
+}
+
+
+function mkDivIe(x, y, w, h)
+{
+	this.htm += '%%'+this.color+';'+x+';'+y+';'+w+';'+h+';';
+}
+
+
+function mkDivPrt(x, y, w, h)
+{
+	this.htm += '<div style="position:absolute;'+
+		'border-left:' + w + 'px solid ' + this.color + ';'+
+		'left:' + x + 'px;'+
+		'top:' + y + 'px;'+
+		'width:0px;'+
+		'height:' + h + 'px;'+
+		'clip:rect(0,'+w+'px,'+h+'px,0);'+
+		'background-color:' + this.color +
+		(!jg_moz? ';overflow:hidden' : '')+
+		';"><\/div>';
+}
+
+
+function mkLyr(x, y, w, h)
+{
+	this.htm += '<layer '+
+		'left="' + x + '" '+
+		'top="' + y + '" '+
+		'width="' + w + '" '+
+		'height="' + h + '" '+
+		'bgcolor="' + this.color + '"><\/layer>\n';
+}
+
+
+var regex =  /%%([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);/g;
+function htmRpc()
+{
+	return this.htm.replace(
+		regex,
+		'<div style="overflow:hidden;position:absolute;background-color:'+
+		'$1;left:$2;top:$3;width:$4;height:$5"></div>\n');
+}
+
+
+function htmPrtRpc()
+{
+	return this.htm.replace(
+		regex,
+		'<div style="overflow:hidden;position:absolute;background-color:'+
+		'$1;left:$2;top:$3;width:$4;height:$5;border-left:$4px solid $1"></div>\n');
+}
+
+
+function mkLin(x1, y1, x2, y2)
+{
+	if (x1 > x2)
+	{
+		var _x2 = x2;
+		var _y2 = y2;
+		x2 = x1;
+		y2 = y1;
+		x1 = _x2;
+		y1 = _y2;
+	}
+	var dx = x2-x1, dy = Math.abs(y2-y1),
+	x = x1, y = y1,
+	yIncr = (y1 > y2)? -1 : 1;
+
+	if (dx >= dy)
+	{
+		var pr = dy<<1,
+		pru = pr - (dx<<1),
+		p = pr-dx,
+		ox = x;
+		while ((dx--) > 0)
+		{
+			++x;
+			if (p > 0)
+			{
+				this.mkDiv(ox, y, x-ox, 1);
+				y += yIncr;
+				p += pru;
+				ox = x;
+			}
+			else p += pr;
+		}
+		this.mkDiv(ox, y, x2-ox+1, 1);
+	}
+
+	else
+	{
+		var pr = dx<<1,
+		pru = pr - (dy<<1),
+		p = pr-dy,
+		oy = y;
+		if (y2 <= y1)
+		{
+			while ((dy--) > 0)
+			{
+				if (p > 0)
+				{
+					this.mkDiv(x++, y, 1, oy-y+1);
+					y += yIncr;
+					p += pru;
+					oy = y;
+				}
+				else
+				{
+					y += yIncr;
+					p += pr;
+				}
+			}
+			this.mkDiv(x2, y2, 1, oy-y2+1);
+		}
+		else
+		{
+			while ((dy--) > 0)
+			{
+				y += yIncr;
+				if (p > 0)
+				{
+					this.mkDiv(x++, oy, 1, y-oy);
+					p += pru;
+					oy = y;
+				}
+				else p += pr;
+			}
+			this.mkDiv(x2, oy, 1, y2-oy+1);
+		}
+	}
+}
+
+
+function mkLin2D(x1, y1, x2, y2)
+{
+	if (x1 > x2)
+	{
+		var _x2 = x2;
+		var _y2 = y2;
+		x2 = x1;
+		y2 = y1;
+		x1 = _x2;
+		y1 = _y2;
+	}
+	var dx = x2-x1, dy = Math.abs(y2-y1),
+	x = x1, y = y1,
+	yIncr = (y1 > y2)? -1 : 1;
+
+	var s = this.stroke;
+	if (dx >= dy)
+	{
+		if (dx > 0 && s-3 > 0)
+		{
+			var _s = (s*dx*Math.sqrt(1+dy*dy/(dx*dx))-dx-(s>>1)*dy) / dx;
+			_s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1;
+		}
+		else var _s = s;
+		var ad = Math.ceil(s/2);
+
+		var pr = dy<<1,
+		pru = pr - (dx<<1),
+		p = pr-dx,
+		ox = x;
+		while ((dx--) > 0)
+		{
+			++x;
+			if (p > 0)
+			{
+				this.mkDiv(ox, y, x-ox+ad, _s);
+				y += yIncr;
+				p += pru;
+				ox = x;
+			}
+			else p += pr;
+		}
+		this.mkDiv(ox, y, x2-ox+ad+1, _s);
+	}
+
+	else
+	{
+		if (s-3 > 0)
+		{
+			var _s = (s*dy*Math.sqrt(1+dx*dx/(dy*dy))-(s>>1)*dx-dy) / dy;
+			_s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1;
+		}
+		else var _s = s;
+		var ad = Math.round(s/2);
+
+		var pr = dx<<1,
+		pru = pr - (dy<<1),
+		p = pr-dy,
+		oy = y;
+		if (y2 <= y1)
+		{
+			++ad;
+			while ((dy--) > 0)
+			{
+				if (p > 0)
+				{
+					this.mkDiv(x++, y, _s, oy-y+ad);
+					y += yIncr;
+					p += pru;
+					oy = y;
+				}
+				else
+				{
+					y += yIncr;
+					p += pr;
+				}
+			}
+			this.mkDiv(x2, y2, _s, oy-y2+ad);
+		}
+		else
+		{
+			while ((dy--) > 0)
+			{
+				y += yIncr;
+				if (p > 0)
+				{
+					this.mkDiv(x++, oy, _s, y-oy+ad);
+					p += pru;
+					oy = y;
+				}
+				else p += pr;
+			}
+			this.mkDiv(x2, oy, _s, y2-oy+ad+1);
+		}
+	}
+}
+
+
+function mkLinDott(x1, y1, x2, y2)
+{
+	if (x1 > x2)
+	{
+		var _x2 = x2;
+		var _y2 = y2;
+		x2 = x1;
+		y2 = y1;
+		x1 = _x2;
+		y1 = _y2;
+	}
+	var dx = x2-x1, dy = Math.abs(y2-y1),
+	x = x1, y = y1,
+	yIncr = (y1 > y2)? -1 : 1,
+	drw = true;
+	if (dx >= dy)
+	{
+		var pr = dy<<1,
+		pru = pr - (dx<<1),
+		p = pr-dx;
+		while ((dx--) > 0)
+		{
+			if (drw) this.mkDiv(x, y, 1, 1);
+			drw = !drw;
+			if (p > 0)
+			{
+				y += yIncr;
+				p += pru;
+			}
+			else p += pr;
+			++x;
+		}
+		if (drw) this.mkDiv(x, y, 1, 1);
+	}
+
+	else
+	{
+		var pr = dx<<1,
+		pru = pr - (dy<<1),
+		p = pr-dy;
+		while ((dy--) > 0)
+		{
+			if (drw) this.mkDiv(x, y, 1, 1);
+			drw = !drw;
+			y += yIncr;
+			if (p > 0)
+			{
+				++x;
+				p += pru;
+			}
+			else p += pr;
+		}
+		if (drw) this.mkDiv(x, y, 1, 1);
+	}
+}
+
+
+function mkOv(left, top, width, height)
+{
+	var a = width>>1, b = height>>1,
+	wod = width&1, hod = (height&1)+1,
+	cx = left+a, cy = top+b,
+	x = 0, y = b,
+	ox = 0, oy = b,
+	aa = (a*a)<<1, bb = (b*b)<<1,
+	st = (aa>>1)*(1-(b<<1)) + bb,
+	tt = (bb>>1) - aa*((b<<1)-1),
+	w, h;
+	while (y > 0)
+	{
+		if (st < 0)
+		{
+			st += bb*((x<<1)+3);
+			tt += (bb<<1)*(++x);
+		}
+		else if (tt < 0)
+		{
+			st += bb*((x<<1)+3) - (aa<<1)*(y-1);
+			tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
+			w = x-ox;
+			h = oy-y;
+			if (w&2 && h&2)
+			{
+				this.mkOvQds(cx, cy, -x+2, ox+wod, -oy, oy-1+hod, 1, 1);
+				this.mkOvQds(cx, cy, -x+1, x-1+wod, -y-1, y+hod, 1, 1);
+			}
+			else this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, oy-h+hod, w, h);
+			ox = x;
+			oy = y;
+		}
+		else
+		{
+			tt -= aa*((y<<1)-3);
+			st -= (aa<<1)*(--y);
+		}
+	}
+	this.mkDiv(cx-a, cy-oy, a-ox+1, (oy<<1)+hod);
+	this.mkDiv(cx+ox+wod, cy-oy, a-ox+1, (oy<<1)+hod);
+}
+
+
+function mkOv2D(left, top, width, height)
+{
+	var s = this.stroke;
+	width += s-1;
+	height += s-1;
+	var a = width>>1, b = height>>1,
+	wod = width&1, hod = (height&1)+1,
+	cx = left+a, cy = top+b,
+	x = 0, y = b,
+	aa = (a*a)<<1, bb = (b*b)<<1,
+	st = (aa>>1)*(1-(b<<1)) + bb,
+	tt = (bb>>1) - aa*((b<<1)-1);
+
+	if (s-4 < 0 && (!(s-2) || width-51 > 0 && height-51 > 0))
+	{
+		var ox = 0, oy = b,
+		w, h,
+		pxl, pxr, pxt, pxb, pxw;
+		while (y > 0)
+		{
+			if (st < 0)
+			{
+				st += bb*((x<<1)+3);
+				tt += (bb<<1)*(++x);
+			}
+			else if (tt < 0)
+			{
+				st += bb*((x<<1)+3) - (aa<<1)*(y-1);
+				tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
+				w = x-ox;
+				h = oy-y;
+
+				if (w-1)
+				{
+					pxw = w+1+(s&1);
+					h = s;
+				}
+				else if (h-1)
+				{
+					pxw = s;
+					h += 1+(s&1);
+				}
+				else pxw = h = s;
+				this.mkOvQds(cx, cy, -x+1, ox-pxw+w+wod, -oy, -h+oy+hod, pxw, h);
+				ox = x;
+				oy = y;
+			}
+			else
+			{
+				tt -= aa*((y<<1)-3);
+				st -= (aa<<1)*(--y);
+			}
+		}
+		this.mkDiv(cx-a, cy-oy, s, (oy<<1)+hod);
+		this.mkDiv(cx+a+wod-s+1, cy-oy, s, (oy<<1)+hod);
+	}
+
+	else
+	{
+		var _a = (width-((s-1)<<1))>>1,
+		_b = (height-((s-1)<<1))>>1,
+		_x = 0, _y = _b,
+		_aa = (_a*_a)<<1, _bb = (_b*_b)<<1,
+		_st = (_aa>>1)*(1-(_b<<1)) + _bb,
+		_tt = (_bb>>1) - _aa*((_b<<1)-1),
+
+		pxl = new Array(),
+		pxt = new Array(),
+		_pxb = new Array();
+		pxl[0] = 0;
+		pxt[0] = b;
+		_pxb[0] = _b-1;
+		while (y > 0)
+		{
+			if (st < 0)
+			{
+				st += bb*((x<<1)+3);
+				tt += (bb<<1)*(++x);
+				pxl[pxl.length] = x;
+				pxt[pxt.length] = y;
+			}
+			else if (tt < 0)
+			{
+				st += bb*((x<<1)+3) - (aa<<1)*(y-1);
+				tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3);
+				pxl[pxl.length] = x;
+				pxt[pxt.length] = y;
+			}
+			else
+			{
+				tt -= aa*((y<<1)-3);
+				st -= (aa<<1)*(--y);
+			}
+
+			if (_y > 0)
+			{
+				if (_st < 0)
+				{
+					_st += _bb*((_x<<1)+3);
+					_tt += (_bb<<1)*(++_x);
+					_pxb[_pxb.length] = _y-1;
+				}
+				else if (_tt < 0)
+				{
+					_st += _bb*((_x<<1)+3) - (_aa<<1)*(_y-1);
+					_tt += (_bb<<1)*(++_x) - _aa*(((_y--)<<1)-3);
+					_pxb[_pxb.length] = _y-1;
+				}
+				else
+				{
+					_tt -= _aa*((_y<<1)-3);
+					_st -= (_aa<<1)*(--_y);
+					_pxb[_pxb.length-1]--;
+				}
+			}
+		}
+
+		var ox = 0, oy = b,
+		_oy = _pxb[0],
+		l = pxl.length,
+		w, h;
+		for (var i = 0; i < l; i++)
+		{
+			if (typeof _pxb[i] != "undefined")
+			{
+				if (_pxb[i] < _oy || pxt[i] < oy)
+				{
+					x = pxl[i];
+					this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, _oy+hod, x-ox, oy-_oy);
+					ox = x;
+					oy = pxt[i];
+					_oy = _pxb[i];
+				}
+			}
+			else
+			{
+				x = pxl[i];
+				this.mkDiv(cx-x+1, cy-oy, 1, (oy<<1)+hod);
+				this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod);
+				ox = x;
+				oy = pxt[i];
+			}
+		}
+		this.mkDiv(cx-a, cy-oy, 1, (oy<<1)+hod);
+		this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod);
+	}
+}
+
+
+function mkOvDott(left, top, width, height)
+{
+	var a = width>>1, b = height>>1,
+	wod = width&1, hod = height&1,
+	cx = left+a, cy = top+b,
+	x = 0, y = b,
+	aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1,
+	st = (aa2>>1)*(1-(b<<1)) + bb,
+	tt = (bb>>1) - aa2*((b<<1)-1),
+	drw = true;
+	while (y > 0)
+	{
+		if (st < 0)
+		{
+			st += bb*((x<<1)+3);
+			tt += (bb<<1)*(++x);
+		}
+		else if (tt < 0)
+		{
+			st += bb*((x<<1)+3) - aa4*(y-1);
+			tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3);
+		}
+		else
+		{
+			tt -= aa2*((y<<1)-3);
+			st -= aa4*(--y);
+		}
+		if (drw) this.mkOvQds(cx, cy, -x, x+wod, -y, y+hod, 1, 1);
+		drw = !drw;
+	}
+}
+
+
+function mkRect(x, y, w, h)
+{
+	var s = this.stroke;
+	this.mkDiv(x, y, w, s);
+	this.mkDiv(x+w, y, s, h);
+	this.mkDiv(x, y+h, w+s, s);
+	this.mkDiv(x, y+s, s, h-s);
+}
+
+
+function mkRectDott(x, y, w, h)
+{
+	this.drawLine(x, y, x+w, y);
+	this.drawLine(x+w, y, x+w, y+h);
+	this.drawLine(x, y+h, x+w, y+h);
+	this.drawLine(x, y, x, y+h);
+}
+
+
+function jsgFont()
+{
+	this.PLAIN = 'font-weight:normal;';
+	this.BOLD = 'font-weight:bold;';
+	this.ITALIC = 'font-style:italic;';
+	this.ITALIC_BOLD = this.ITALIC + this.BOLD;
+	this.BOLD_ITALIC = this.ITALIC_BOLD;
+}
+var Font = new jsgFont();
+
+
+function jsgStroke()
+{
+	this.DOTTED = -1;
+}
+var Stroke = new jsgStroke();
+
+
+function jsGraphics(id, wnd)
+{
+	this.setColor = new Function('arg', 'this.color = arg.toLowerCase();');
+
+	this.setStroke = function(x)
+	{
+		this.stroke = x;
+		if (!(x+1))
+		{
+			this.drawLine = mkLinDott;
+			this.mkOv = mkOvDott;
+			this.drawRect = mkRectDott;
+		}
+		else if (x-1 > 0)
+		{
+			this.drawLine = mkLin2D;
+			this.mkOv = mkOv2D;
+			this.drawRect = mkRect;
+		}
+		else
+		{
+			this.drawLine = mkLin;
+			this.mkOv = mkOv;
+			this.drawRect = mkRect;
+		}
+	};
+
+
+	this.setPrintable = function(arg)
+	{
+		this.printable = arg;
+		if (jg_fast)
+		{
+			this.mkDiv = mkDivIe;
+			this.htmRpc = arg? htmPrtRpc : htmRpc;
+		}
+		else this.mkDiv = jg_n4? mkLyr : arg? mkDivPrt : mkDiv;
+	};
+
+
+	this.setFont = function(fam, sz, sty)
+	{
+		this.ftFam = fam;
+		this.ftSz = sz;
+		this.ftSty = sty || Font.PLAIN;
+	};
+
+
+	this.drawPolyline = this.drawPolyLine = function(x, y, s)
+	{
+		for (var i=0 ; i<x.length-1 ; i++ )
+			this.drawLine(x[i], y[i], x[i+1], y[i+1]);
+	};
+
+
+	this.fillRect = function(x, y, w, h)
+	{
+		this.mkDiv(x, y, w, h);
+	};
+
+
+	this.drawPolygon = function(x, y)
+	{
+		this.drawPolyline(x, y);
+		this.drawLine(x[x.length-1], y[x.length-1], x[0], y[0]);
+	};
+
+
+	this.drawEllipse = this.drawOval = function(x, y, w, h)
+	{
+		this.mkOv(x, y, w, h);
+	};
+
+
+	this.fillEllipse = this.fillOval = function(left, top, w, h)
+	{
+		var a = (w -= 1)>>1, b = (h -= 1)>>1,
+		wod = (w&1)+1, hod = (h&1)+1,
+		cx = left+a, cy = top+b,
+		x = 0, y = b,
+		ox = 0, oy = b,
+		aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1,
+		st = (aa2>>1)*(1-(b<<1)) + bb,
+		tt = (bb>>1) - aa2*((b<<1)-1),
+		pxl, dw, dh;
+		if (w+1) while (y > 0)
+		{
+			if (st < 0)
+			{
+				st += bb*((x<<1)+3);
+				tt += (bb<<1)*(++x);
+			}
+			else if (tt < 0)
+			{
+				st += bb*((x<<1)+3) - aa4*(y-1);
+				pxl = cx-x;
+				dw = (x<<1)+wod;
+				tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3);
+				dh = oy-y;
+				this.mkDiv(pxl, cy-oy, dw, dh);
+				this.mkDiv(pxl, cy+y+hod, dw, dh);
+				ox = x;
+				oy = y;
+			}
+			else
+			{
+				tt -= aa2*((y<<1)-3);
+				st -= aa4*(--y);
+			}
+		}
+		this.mkDiv(cx-a, cy-oy, w+1, (oy<<1)+hod);
+	};
+
+
+/* fillPolygon method, implemented by Matthieu Haller.
+This javascript function is an adaptation of the gdImageFilledPolygon for Walter Zorn lib.
+C source of GD 1.8.4 found at http://www.boutell.com/gd/
+
+THANKS to Kirsten Schulz for the polygon fixes!
+
+The intersection finding technique of this code could be improved
+by remembering the previous intertersection, and by using the slope.
+That could help to adjust intersections to produce a nice
+interior_extrema. */
+	this.fillPolygon = function(array_x, array_y)
+	{
+		var i;
+		var y;
+		var miny, maxy;
+		var x1, y1;
+		var x2, y2;
+		var ind1, ind2;
+		var ints;
+
+		var n = array_x.length;
+
+		if (!n) return;
+
+
+		miny = array_y[0];
+		maxy = array_y[0];
+		for (i = 1; i < n; i++)
+		{
+			if (array_y[i] < miny)
+				miny = array_y[i];
+
+			if (array_y[i] > maxy)
+				maxy = array_y[i];
+		}
+		for (y = miny; y <= maxy; y++)
+		{
+			var polyInts = new Array();
+			ints = 0;
+			for (i = 0; i < n; i++)
+			{
+				if (!i)
+				{
+					ind1 = n-1;
+					ind2 = 0;
+				}
+				else
+				{
+					ind1 = i-1;
+					ind2 = i;
+				}
+				y1 = array_y[ind1];
+				y2 = array_y[ind2];
+				if (y1 < y2)
+				{
+					x1 = array_x[ind1];
+					x2 = array_x[ind2];
+				}
+				else if (y1 > y2)
+				{
+					y2 = array_y[ind1];
+					y1 = array_y[ind2];
+					x2 = array_x[ind1];
+					x1 = array_x[ind2];
+				}
+				else continue;
+
+				 // modified 11. 2. 2004 Walter Zorn
+				if ((y >= y1) && (y < y2))
+					polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1);
+
+				else if ((y == maxy) && (y > y1) && (y <= y2))
+					polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1);
+			}
+			polyInts.sort(integer_compare);
+			for (i = 0; i < ints; i+=2)
+				this.mkDiv(polyInts[i], y, polyInts[i+1]-polyInts[i]+1, 1);
+		}
+	};
+
+
+	this.drawString = function(txt, x, y)
+	{
+		this.htm += '<div style="position:absolute;white-space:nowrap;'+
+			'left:' + x + 'px;'+
+			'top:' + y + 'px;'+
+			'font-family:' +  this.ftFam + ';'+
+			'font-size:' + this.ftSz + ';'+
+			'color:' + this.color + ';' + this.ftSty + '">'+
+			txt +
+			'<\/div>';
+	};
+
+
+/* drawStringRect() added by Rick Blommers.
+Allows to specify the size of the text rectangle and to align the
+text both horizontally (e.g. right) and vertically within that rectangle */
+	this.drawStringRect = function(txt, x, y, width, halign)
+	{
+		this.htm += '<div style="position:absolute;overflow:hidden;'+
+			'left:' + x + 'px;'+
+			'top:' + y + 'px;'+
+			'width:'+width +'px;'+
+			'text-align:'+halign+';'+
+			'font-family:' +  this.ftFam + ';'+
+			'font-size:' + this.ftSz + ';'+
+			'color:' + this.color + ';' + this.ftSty + '">'+
+			txt +
+			'<\/div>';
+	};
+
+
+	this.drawImage = function(imgSrc, x, y, w, h, a)
+	{
+		this.htm += '<div style="position:absolute;'+
+			'left:' + x + 'px;'+
+			'top:' + y + 'px;'+
+			'width:' +  w + ';'+
+			'height:' + h + ';">'+
+			'<img src="' + imgSrc + '" width="' + w + '" height="' + h + '"' + (a? (' '+a) : '') + '>'+
+			'<\/div>';
+	};
+
+
+	this.clear = function()
+	{
+		this.htm = "";
+		if (this.cnv) this.cnv.innerHTML = this.defhtm;
+	};
+
+
+	this.mkOvQds = function(cx, cy, xl, xr, yt, yb, w, h)
+	{
+		this.mkDiv(xr+cx, yt+cy, w, h);
+		this.mkDiv(xr+cx, yb+cy, w, h);
+		this.mkDiv(xl+cx, yb+cy, w, h);
+		this.mkDiv(xl+cx, yt+cy, w, h);
+	};
+
+	this.setStroke(1);
+	this.setFont('verdana,geneva,helvetica,sans-serif', String.fromCharCode(0x31, 0x32, 0x70, 0x78), Font.PLAIN);
+	this.color = '#000000';
+	this.htm = '';
+	this.wnd = wnd || window;
+
+	if (!(jg_ie || jg_dom || jg_ihtm)) chkDHTM();
+	if (typeof id != 'string' || !id) this.paint = pntDoc;
+	else
+	{
+		this.cnv = document.all? (this.wnd.document.all[id] || null)
+			: document.getElementById? (this.wnd.document.getElementById(id) || null)
+			: null;
+		this.defhtm = (this.cnv && this.cnv.innerHTML)? this.cnv.innerHTML : '';
+		this.paint = jg_dom? pntCnvDom : jg_ie? pntCnvIe : jg_ihtm? pntCnvIhtm : pntCnv;
+	}
+
+	this.setPrintable(false);
+}
+
+
+
+function integer_compare(x,y)
+{
+	return (x < y) ? -1 : ((x > y)*1);
+}
+
diff -Naur gallery-1.5.3/layout/adminAlbumCommands.inc gallery-1.5.4/layout/adminAlbumCommands.inc
--- gallery-1.5.3/layout/adminAlbumCommands.inc	2006-01-08 21:15:13.000000000 +0100
+++ gallery-1.5.4/layout/adminAlbumCommands.inc	2006-05-02 12:22:26.000000000 +0200
@@ -1,3 +1,9 @@
+<?php
+/**
+ * Gallery SVN info
+ * $Id: adminAlbumCommands.inc 13580 2006-05-02 10:22:26Z jenst $
+*/
+?>
 <!-- Begin adminAlbumCommands -->
 <div class="admin"><?php
 
diff -Naur gallery-1.5.3/layout/adminbox.inc gallery-1.5.4/layout/adminbox.inc
--- gallery-1.5.3/layout/adminbox.inc	2005-07-11 14:02:53.000000000 +0200
+++ gallery-1.5.4/layout/adminbox.inc	2005-07-11 14:02:54.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: adminbox.inc,v 1.27 2005/07/11 12:02:53 jenst Exp $
+// $Id: adminbox.inc 10797 2005-07-11 12:02:54Z jenst $
 // Note that this box is assumed to be attached to a navigator and uses the navigator's
 // width parameters .
 
diff -Naur gallery-1.5.3/layout/breadcrumb.inc gallery-1.5.4/layout/breadcrumb.inc
--- gallery-1.5.3/layout/breadcrumb.inc	2005-12-04 20:43:46.000000000 +0100
+++ gallery-1.5.4/layout/breadcrumb.inc	2005-12-04 20:43:46.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-// $Id: breadcrumb.inc,v 1.31 2005/12/04 19:43:46 jenst Exp $
+// $Id: breadcrumb.inc 12188 2005-12-04 19:43:46Z jenst $
 ?>
 <?php
 global $breadcrumb, $navigator, $gallery;
diff -Naur gallery-1.5.3/layout/commentboxbottom.inc gallery-1.5.4/layout/commentboxbottom.inc
--- gallery-1.5.3/layout/commentboxbottom.inc	2006-03-27 18:04:33.000000000 +0200
+++ gallery-1.5.4/layout/commentboxbottom.inc	2006-03-27 18:04:33.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: commentboxbottom.inc,v 1.15.8.1 2006/03/27 16:04:33 jenst Exp $ */ ?>
+<?php /* $Id: commentboxbottom.inc 13339 2006-03-27 16:04:33Z jenst $ */ ?>
 <?php global $embeddedAlbum, $id, $index ;
 if(!$embeddedAlbum == 1) {
         $url = "add_comment.php?set_albumName={$gallery->album->fields['name']}&id=$id";
diff -Naur gallery-1.5.3/layout/commentbox.inc gallery-1.5.4/layout/commentbox.inc
--- gallery-1.5.3/layout/commentbox.inc	2005-10-17 19:46:12.000000000 +0200
+++ gallery-1.5.4/layout/commentbox.inc	2005-10-17 19:46:13.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: commentbox.inc,v 1.23 2005/10/17 17:46:12 jenst Exp $ */ ?>
+<?php /* $Id: commentbox.inc 11822 2005-10-17 17:46:13Z jenst $ */ ?>
 <?php 
 	global $gallery, $comment, $index, $j;
 
diff -Naur gallery-1.5.3/layout/commentboxtop.inc gallery-1.5.4/layout/commentboxtop.inc
--- gallery-1.5.3/layout/commentboxtop.inc	2005-10-05 00:29:01.000000000 +0200
+++ gallery-1.5.4/layout/commentboxtop.inc	2005-10-05 00:29:01.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: commentboxtop.inc,v 1.24 2005/10/04 22:29:01 jenst Exp $ */ ?>
+<?php /* $Id: commentboxtop.inc 11736 2005-10-04 22:29:01Z jenst $ */ ?>
 <?php global $commentbox, $embeddedAlbum, $myAlbumName, $myHighlightTag, $myAlbum, $index, $id, $i; ?>
         
 
diff -Naur gallery-1.5.3/layout/commentdraw.inc gallery-1.5.4/layout/commentdraw.inc
--- gallery-1.5.3/layout/commentdraw.inc	2005-06-19 15:44:35.000000000 +0200
+++ gallery-1.5.4/layout/commentdraw.inc	2005-06-19 15:44:36.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: commentdraw.inc,v 1.27 2005/06/19 13:44:35 jenst Exp $ */ ?>
+<?php /* $Id: commentdraw.inc 10595 2005-06-19 13:44:36Z jenst $ */ ?>
 <?php 
 
 global $commentdraw, $i, $index, $id;
diff -Naur gallery-1.5.3/layout/navigator.inc gallery-1.5.4/layout/navigator.inc
--- gallery-1.5.3/layout/navigator.inc	2005-12-09 00:32:38.000000000 +0100
+++ gallery-1.5.4/layout/navigator.inc	2005-12-09 00:32:42.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: navigator.inc,v 1.40 2005/12/08 23:32:38 jenst Exp $ */ ?>
+<?php /* $Id: navigator.inc 12232 2005-12-08 23:32:42Z jenst $ */ ?>
 <?php
 global $navigator;
 if(!includeTemplate('navigator.tpl')) {
diff -Naur gallery-1.5.3/layout/navmicro.inc gallery-1.5.4/layout/navmicro.inc
--- gallery-1.5.3/layout/navmicro.inc	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/layout/navmicro.inc	2006-03-27 17:32:14.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: navmicro.inc,v 1.6.2.1 2006/03/27 15:31:30 jenst Exp $ */ ?>
+<?php /* $Id: navmicro.inc 13338 2006-03-27 15:32:14Z jenst $ */ ?>
 <?php
 global $navigator;
 global $full;
diff -Naur gallery-1.5.3/layout/navphoto.inc gallery-1.5.4/layout/navphoto.inc
--- gallery-1.5.3/layout/navphoto.inc	2005-12-28 19:11:17.000000000 +0100
+++ gallery-1.5.4/layout/navphoto.inc	2005-12-28 19:11:17.000000000 +0100
@@ -1,4 +1,4 @@
-<?php /* $Id: navphoto.inc,v 1.40 2005/12/28 18:11:17 jenst Exp $ */ ?>
+<?php /* $Id: navphoto.inc 12407 2005-12-28 18:11:17Z jenst $ */ ?>
 <?php
 global $navigator;
 global $full;
diff -Naur gallery-1.5.3/layout/navtablebegin.inc gallery-1.5.4/layout/navtablebegin.inc
--- gallery-1.5.3/layout/navtablebegin.inc	2004-06-15 02:53:09.000000000 +0200
+++ gallery-1.5.4/layout/navtablebegin.inc	2004-06-15 02:53:32.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: navtablebegin.inc,v 1.3 2004/06/15 00:53:09 jenst Exp $ */ ?>
+<?php /* $Id: navtablebegin.inc 6352 2004-06-15 00:53:32Z jenst $ */ ?>
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
 	<td class="navtableborderbegin">
diff -Naur gallery-1.5.3/layout/navtableend.inc gallery-1.5.4/layout/navtableend.inc
--- gallery-1.5.3/layout/navtableend.inc	2004-06-15 02:53:09.000000000 +0200
+++ gallery-1.5.4/layout/navtableend.inc	2004-06-15 02:53:32.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: navtableend.inc,v 1.2 2004/06/15 00:53:09 jenst Exp $ */ ?>
+<?php /* $Id: navtableend.inc 6352 2004-06-15 00:53:32Z jenst $ */ ?>
 	</td>
 </tr>
 </table>
diff -Naur gallery-1.5.3/layout/navtablemiddle.inc gallery-1.5.4/layout/navtablemiddle.inc
--- gallery-1.5.3/layout/navtablemiddle.inc	2004-06-15 02:53:09.000000000 +0200
+++ gallery-1.5.4/layout/navtablemiddle.inc	2004-06-15 02:53:32.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: navtablemiddle.inc,v 1.2 2004/06/15 00:53:09 jenst Exp $ */ ?>
+<?php /* $Id: navtablemiddle.inc 6352 2004-06-15 00:53:32Z jenst $ */ ?>
 	</td>
 </tr>
 <tr>
diff -Naur gallery-1.5.3/layout/searchdraw.inc gallery-1.5.4/layout/searchdraw.inc
--- gallery-1.5.3/layout/searchdraw.inc	2004-10-20 00:07:30.000000000 +0200
+++ gallery-1.5.4/layout/searchdraw.inc	2004-10-20 00:07:35.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: searchdraw.inc,v 1.16 2004/10/19 22:07:30 jenst Exp $ */ ?>
+<?php /* $Id: searchdraw.inc 7931 2004-10-19 22:07:35Z jenst $ */ ?>
 <?php
 global $searchdraw;
 
diff -Naur gallery-1.5.3/layout/watermarkform.inc gallery-1.5.4/layout/watermarkform.inc
--- gallery-1.5.3/layout/watermarkform.inc	2006-04-04 23:58:25.000000000 +0200
+++ gallery-1.5.4/layout/watermarkform.inc	2006-04-04 23:58:25.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: watermarkform.inc,v 1.26.2.2 2006/04/04 21:58:25 jenst Exp $
+ * $Id: watermarkform.inc 13361 2006-04-04 21:58:25Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/lib/albumItem.php gallery-1.5.4/lib/albumItem.php
--- gallery-1.5.3/lib/albumItem.php	2006-04-06 13:21:49.000000000 +0200
+++ gallery-1.5.4/lib/albumItem.php	2006-04-06 13:21:49.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: albumItem.php,v 1.18.2.3 2006/04/06 11:21:49 jenst Exp $
+ * $Id: albumItem.php 13407 2006-04-06 11:21:49Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/lib/album.php gallery-1.5.4/lib/album.php
--- gallery-1.5.3/lib/album.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: album.php,v 1.6.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/lib/colorpicker.php gallery-1.5.4/lib/colorpicker.php
--- gallery-1.5.3/lib/colorpicker.php	2005-07-23 15:59:47.000000000 +0200
+++ gallery-1.5.4/lib/colorpicker.php	2006-05-02 12:22:26.000000000 +0200
@@ -7,9 +7,11 @@
  */
 
 /* This file was taken from the Horde Framework (http://www.horde.org)
-** The Version was: horde/services/images/colorpicker.php,v 1.21
-**
-** Jens Tkotz 25.04.2005
+ * The Version was: horde/services/images/colorpicker.php,v 1.21
+ *
+ * Jens Tkotz 25.04.2005
+ *
+ * $Id: colorpicker.php 13580 2006-05-02 10:22:26Z jenst $
 */
 
 /*
diff -Naur gallery-1.5.3/lib/content.php gallery-1.5.4/lib/content.php
--- gallery-1.5.3/lib/content.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/content.php	2006-08-14 09:49:09.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: content.php,v 1.18.2.1 2006/03/27 15:31:30 jenst Exp $
+* $Id: content.php 14311 2006-08-14 07:49:09Z jenst $
 */
 
 /**
@@ -42,7 +42,7 @@
         }
         $url = "edit_field.php?set_albumName={$album->fields['name']}&field=$field"; // should replace with &amp; for validatation
         $buf .= ' <span class="editlink">';
-        $buf .= popup_link( "[". sprintf(gTranslate('common', "edit %s"), _($field)) . "]", $url) ;
+        $buf .= popup_link( "[". sprintf(gTranslate('common', "edit %s"), gTranslate('common', $field)) . "]", $url) ;
         $buf .= '</span>';
     }
     return $buf;
@@ -56,7 +56,7 @@
 
     if (($gallery->user->canChangeTextOfAlbum($album) ||
       ($gallery->album->getItemOwnerModify() &&
-      $gallery->album->isItemOwner($gallery->user->getUid(), $index))) && 
+      $gallery->album->isItemOwner($gallery->user->getUid(), $index))) &&
       !$gallery->session->offline) {
 
         if (empty($buf)) {
@@ -139,7 +139,7 @@
 	<td colspan="2" class="commentboxfooter" align="right"><input name="save" type="submit" value="<?php echo gTranslate('common', "Post comment") ?>"></td>
 </tr>
 </table>
-<?php 
+<?php
 }
 
 function drawApplet($width, $height, $code, $archive, $album, $defaults, $overrides, $configFile, $errorMsg) {
@@ -308,7 +308,7 @@
                 $microthumb = "<a href=\"$albumUrl\">$highlightTag</a> ";
 		$tree[] = array(
 		    'albumUrl' => $albumUrl,
-		    'albumName' => $myName, 
+		    'albumName' => $myName,
 		    'titel' => $title,
 		    'clicksText' => $clicksText,
 		    'microthumb' => $microthumb,
@@ -595,10 +595,10 @@
 }
 
 /**
- * This is either a wrapper around fs_file_size(), 
+ * This is either a wrapper around fs_file_size(),
  * or just a formatter for a filesize given in bytes.
  * Return a human readable filesize.
- * 
+ *
  * @param   string  $filesize   if omitted, function gets filesize of given filename
  * @param	string	$filename
  * @return	string  the formated filesize
@@ -610,7 +610,7 @@
     if($filesize == 0 || $filename != '') {
         $filesize = fs_filesize($filename);
     }
-    
+
     $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
     $unit_count = (count($units) - 1);
 
@@ -909,7 +909,7 @@
         return  '';
     }
     if ($gallery->app->comments_indication_verbose == 'yes') {
-        $ret = "<br>". 
+        $ret = "<br>".
           sprintf(gTranslate('common', "Last comment %s."), strftime($gallery->app->dateString, $lastCommentDate));
     } else {
         $ret= '<span class="commentIndication">*</span>';
@@ -935,7 +935,7 @@
     $dir = "$base/skins";
     $opts['none'] = gTranslate('common', "No Skin");
     $descriptions = '<dl>';
-    $name = "<a href=\"#\" onClick=\"document.config.skinname.options[0].selected=true; return false;\">". 
+    $name = "<a href=\"#\" onClick=\"document.config.skinname.options[0].selected=true; return false;\">".
 	gTranslate('common', "No Skin") . "</a>";
     $descriptions .= sprintf("<dt>%s</dt>", $name);
     $descriptions .= '<dd>'. gTranslate('common', "The original look and feel.") .'</dd>';
@@ -970,9 +970,11 @@
             $opts[$file]=$name;
             if (fs_file_exists("$dir/$file/images/screenshot.jpg")) {
                 $screenshot = $base_url . "/skins/$file/images/screenshot.jpg";
-            } elseif (fs_file_exists("$dir/$file/images/screenshot.gif")) {
+            }
+            elseif (fs_file_exists("$dir/$file/images/screenshot.gif")) {
                 $screenshot = $base_url . "/skins/$file/images/screenshot.gif";
-            } else {
+            }
+            else {
                 $screenshot = '';
             }
 
@@ -1015,14 +1017,14 @@
         'dots' => gTranslate('common', "Dots"),
         'solid' => gTranslate('common', "Solid"),
         );
-        
+
     $descriptions="<dl>" .
         "<dt>" . popup_link(gTranslate('common', "None"), "frame_test.php?frame=none", 1)  . "</dt><dd>". gTranslate('common', "No frames")."</dd>" .
         "<dt>" . popup_link(gTranslate('common', "Dots"), "frame_test.php?frame=dots", 1)  . "</dt><dd>". gTranslate('common', "Just a simple dashed border around the thumb.")."</dd>" .
         "<dt>" . popup_link(gTranslate('common', "Solid"), "frame_test.php?frame=solid", 1) . "</dt><dd>". gTranslate('common', "Just a simple solid border around the thumb.")."</dd>" ;
-        
+
     $dir = $GALLERY_BASE . '/html_wrap/frames';
-    
+
     if (fs_is_dir($dir) && is_readable($dir) && $fd = fs_opendir($dir)) {
         while ($file = readdir($fd)) {
             $subdir = "$dir/$file";
@@ -1038,7 +1040,7 @@
                     $description = $file;
                 }
                 $opts[$file] = $name;
-                $descriptions.="\n<dt>" . popup_link($name, "frame_test.php?frame=$file", 1) . "</a></dt><dd>$description</dd>";
+                $descriptions.="\n<dt>" . popup_link($name, "frame_test.php?frame=$file", 1) . "</dt><dd>$description</dd>";
             } else {
                 if (false && isDebugging()) {
                     echo gallery_error(sprintf(gTranslate('common', "Skipping %s."),
@@ -1095,7 +1097,7 @@
 
 /**
  * Generates a link to w3c validator
- * 
+ *
  * @param	string	$file	file to validate, relative to gallery dir
  * @param	boolean	$valid	true/false wether we know the result ;)
  * @param	array	$arg	optional array with urlargs
@@ -1140,7 +1142,7 @@
       urlencode(eregi_replace("&amp;", "&",
       makeAlbumURL($album, $photo, $args))).
       '"> <img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a>';
-    
+
     if (!$valid) {
         $link .= gTranslate('common', "Not valid yet");
     }
@@ -1172,10 +1174,10 @@
 
 function showImageMap($index) {
     global $gallery;
-    
+
     $allImageAreas = $gallery->album->getAllImageAreas($index);
     $html = '';
-   
+
     if (!empty($allImageAreas)) {
         $html .= "\n". '<map name="myMap">';
         foreach($allImageAreas as $nr => $area) {
@@ -1216,7 +1218,7 @@
         }
     }
     $html .= '>';
-    
+
     return $html;
 }
 
diff -Naur gallery-1.5.3/lib/Form.php gallery-1.5.4/lib/Form.php
--- gallery-1.5.3/lib/Form.php	2006-04-06 13:21:49.000000000 +0200
+++ gallery-1.5.4/lib/Form.php	2006-08-14 09:49:09.000000000 +0200
@@ -17,10 +17,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Form.php,v 1.32.2.3 2006/04/06 11:21:49 jenst Exp $
+ * $Id: Form.php 14311 2006-08-14 07:49:09Z jenst $
  */
 ?>
-<?php 
+<?php
 
 function insertFormJS($formName) {
 
@@ -66,11 +66,11 @@
 
 function insertFormJSLinks($elementName) {
     $buf='
-	<a href="javascript:setCheck(1,\'' . $elementName . '\')">'. _("Check All") . '</a>
+	<a href="javascript:setCheck(1,\'' . $elementName . '\')">'. gTranslate('common', "Check All") . '</a>
 	-
-	<a href="javascript:setCheck(0,\'' . $elementName . '\')">'. _("Clear All") . '</a>
+	<a href="javascript:setCheck(0,\'' . $elementName . '\')">'. gTranslate('common', "Clear All") . '</a>
 	-
-	<a href="javascript:invertCheck(\'' . $elementName . '\')">'. _("Invert Selection") .'</a>';
+	<a href="javascript:invertCheck(\'' . $elementName . '\')">'. gTranslate('common', "Invert Selection") .'</a>';
 
     return $buf;
 }
@@ -103,7 +103,7 @@
 			}
 		}
 	}
-	
+
 	return $attrs;
 }
 
@@ -120,7 +120,7 @@
                     $sel = ' selected';
                 }
             }
-            else if ($value == $selected || $text == $selected || $selected === '__ALL__') {
+            else if ($value == $selected || $text === $selected || $selected === '__ALL__') {
                 $sel = ' selected';
             }
             $buf .= "<option value=\"$value\"$sel>". $text ."</option>" . $crlf;
@@ -139,7 +139,7 @@
     }
 
     $attrs = generateAttrs($attrList);
-    
+
     $buf = "<select name=\"$name\" $attrs>$crlf";
 
     if(!empty($options)) {
@@ -189,7 +189,7 @@
     }
 
     $attrs = generateAttrs($attrList);
-    
+
     $form = "\n<form action=\"$target\"$attrs>\n";
 
     $args = split("&", $tmp);
@@ -228,16 +228,16 @@
         'gallery_popup' => true
     );
 
-    $colorPickerUrl = makeGalleryUrl('lib/colorpicker.php', $args);
-    $imgColorpicker = '<img src="'. getImagePath('colorpicker.png') .'" height="16"></a></td>';
+    $colorPickerUrl = makeGalleryUrl('colorpicker.php', $args);
+    $imgColorpicker = '<img src="'. getImagePath('colorpicker.png') .'" height="16" alt="colorpicker">';
 
-    $html = '<table border="0" cellspacing="0">';
-    $html .= '<tr>';
-    $html .= '<td><input type="text" size="10" maxlength="7" name="'. $attrs['name'] .'" id="'. $attrs['name'] .'" value="'. $attrs['value'] .'"></td>';
-    $html .= '<td width="20" id="colordemo_' . $attrs['name'] . '" style="background-color:' . $attrs['value'] . '"> </td>';
-    $html .= "<td><a href=\"$colorPickerUrl\" onclick=\"window.open('$colorPickerUrl', 'colorpicker', 'toolbar=no,location=no,status=no,scrollbars=no,resizable=no,width=120,height=250,left=100,top=100'); return false;\" onmouseout=\"window.status='';\" onmouseover=\"window.status='". _("Colorpicker") ."'; return true;\" target=\"colorpicker\">".  $imgColorpicker .'</a></td>';
-    $html .= '<td><div id="colorpicker_' . $attrs['name'] . '" class="control"></div></td>';
-    $html .= '</tr></table>';
+    $html = "\n<table cellspacing=\"0\">";
+    $html .= "\n<tr>";
+    $html .= "\n". '<td><input type="text" size="10" maxlength="7" name="'. $attrs['name'] .'" id="'. $attrs['name'] .'" value="'. $attrs['value'] .'"></td>';
+    $html .= "\n". '<td width="20" id="colordemo_' . $attrs['name'] . '" style="background-color:' . $attrs['value'] . '"> </td>';
+    $html .= "\n<td><a href=\"$colorPickerUrl\" onclick=\"window.open('$colorPickerUrl', 'colorpicker', 'toolbar=no,location=no,status=no,scrollbars=no,resizable=no,width=120,height=250,left=100,top=100'); return false;\" onmouseout=\"window.status='';\" onmouseover=\"window.status='". gTranslate('common', "Colorpicker") ."'; return true;\" target=\"colorpicker\">".  $imgColorpicker .'</a></td>';
+    $html .= "\n". '<td><div id="colorpicker_' . $attrs['name'] . '"></div></td>';
+    $html .= "\n</tr></table>\n";
 
     return $html;
 }
diff -Naur gallery-1.5.3/lib/imageManipulation.php gallery-1.5.4/lib/imageManipulation.php
--- gallery-1.5.3/lib/imageManipulation.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/imageManipulation.php	2006-05-02 11:59:13.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: imageManipulation.php,v 1.12.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: imageManipulation.php 13579 2006-05-02 09:59:13Z jenst $
  */
 
 /**
@@ -93,7 +93,10 @@
         }
         processingMsg("&nbsp;&nbsp;&nbsp;". sprintf(_("target file size %d kbytes"), $target_fs)."\n");
 
+        $loop = 0;
         do {
+            $loop ++;
+            processingMsg("Loop: $loop"); 
             compressImage($src, $out, $target, $quality, $keepProfiles, $createThumbnail);
 
             $prev_quality = $quality;
@@ -684,7 +687,7 @@
     global $gallery;
     static $ImVersion;
 
-    if (empty($src) || empty($dest) || empty($targetSize)) {
+    if (empty($src) || empty($dest)) {
         echo gallery_error(_("Not all necessary params for resizing given."));
         echo debugMessage(sprintf(_("Resizing params: src: %s, dest : %s, targetSize: %s"), $src, $dest, $targetSize), __FILE__, __LINE__);
         return false;
@@ -697,17 +700,25 @@
     }
 
     if ($targetSize === 'off') {
-        $targetSize = '';
+        $targetSize = 0;
     }
+
     $srcFile = fs_import_filename($src);
     $destFile = fs_import_filename($dest);
 
     switch($gallery->app->graphics)	{
         case "NetPBM":
-            $result = exec_wrapper(toPnmCmd($src) . ' | ' .
-              NetPBM('pnmscale', " -xysize $targetSize $targetSize")  . ' | ' .
-              fromPnmCmd($dest, $quality)
-            );
+            if ($targetSize) {
+                 $result = exec_wrapper(toPnmCmd($src) .' | '.
+                        NetPBM('pnmscale', " -xysize $targetSize $targetSize")  .' | '.
+                        fromPnmCmd($dest, $quality)
+                );
+            }
+            else {
+                 /* If no targetSize is given, then this is just for setting (decreasing) quality */
+                 $result = exec_wrapper(toPnmCmd($src) .' | '. fromPnmCmd($dest, $quality));
+            }
+
             if (!$result) {
                 return false;
             }
@@ -744,7 +755,8 @@
 
             $destOperator = '';
             $srcOperator = '';
-            /* If not targetSize is given, then this is just for setting (decreasing) quality */
+
+            /* If no targetSize is given, then this is just for setting (decreasing) quality */
             $destOperator = "-quality $quality";
 
             if ($targetSize) {
diff -Naur gallery-1.5.3/lib/lang.php gallery-1.5.4/lib/lang.php
--- gallery-1.5.3/lib/lang.php	2006-04-04 23:58:25.000000000 +0200
+++ gallery-1.5.4/lib/lang.php	2006-05-02 11:59:13.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: lang.php,v 1.70.2.2 2006/04/04 21:58:25 jenst Exp $
+ * $Id: lang.php 13579 2006-05-02 09:59:13Z jenst $
  */
 
 /**
@@ -35,7 +35,7 @@
  * @param	string    $plural
  * @param	int       $count
  * @param	string    $nonetext
- * @return  string    $translation	string with translation on success, otherwise '--- TranslationError --'
+ * @return      string    $translation	string with translation on success, otherwise '--- TranslationError --'
  * @author	Jens Tkotz
  */
 function gTranslate($domain = null, $singular, $plural = '', $count = null, $nonetext = '') {
@@ -50,11 +50,11 @@
         return $nonetext;
     }
 
-	if (gettext_installed()) {        	
-	    $gDomain = $gallery->language. "-gallery_$domain";
-	    bindtextdomain($gDomain, dirname(dirname(__FILE__)) . '/locale');
-	    textdomain($gDomain);
-	}
+    if (gettext_installed()) {        	
+	$gDomain = $gallery->language. "-gallery_$domain";
+	bindtextdomain($gDomain, dirname(dirname(__FILE__)) . '/locale');
+	textdomain($gDomain);
+    }
 
     if(!$plural) {
     	if (gettext_installed()) {        	
diff -Naur gallery-1.5.3/lib/mail.php gallery-1.5.4/lib/mail.php
--- gallery-1.5.3/lib/mail.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/mail.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: mail.php,v 1.9.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: mail.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/lib/messages.php gallery-1.5.4/lib/messages.php
--- gallery-1.5.3/lib/messages.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/messages.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: messages.php,v 1.7.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: messages.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/lib/popup.php gallery-1.5.4/lib/popup.php
--- gallery-1.5.3/lib/popup.php	2006-03-27 18:11:15.000000000 +0200
+++ gallery-1.5.4/lib/popup.php	2006-05-02 12:22:26.000000000 +0200
@@ -1,4 +1,26 @@
 <?php
+/*
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2006 Bharat Mediratta
+ *
+ * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: popup.php 13580 2006-05-02 10:22:26Z jenst $
+ */
+?>
+<?php
 function build_popup_url($url, $url_is_complete=0) {
 	/* Separate the target from the arguments */
 	$result = explode('?', $url);
diff -Naur gallery-1.5.3/lib/setup.php gallery-1.5.4/lib/setup.php
--- gallery-1.5.3/lib/setup.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/setup.php	2006-08-14 09:41:08.000000000 +0200
@@ -17,43 +17,36 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: setup.php,v 1.14.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: setup.php 14310 2006-08-14 07:41:08Z jenst $
  */
 ?>
 <?php
 
 function evenOdd_row($fields) {
-	$buf = '';
+    $html = '';
 
-	/* why was this added ? Jens Tkotz, 05.04.2005 */
-	// $f0 = str_replace(" ", "&nbsp;", $fields[0]);
-	$f0 = $fields[0];
-	if (isset($fields[4])) {
-                        $f0 .= '&nbsp;<span class="littlered">*</span>';
-	}
-	if ($fields[3] == "block_element") {
-		$buf .= "\n<tr><td class=\"shortdesc\" width=\"30%\">$f0</td><td class=\"shortdesc\">".$fields[1]."</td></tr>";
-	} else if ($fields[3] == "block_start") {
-		$buf .= "\n<tr><td class=\"shortdesc\" colspan=\"2\" valign=\"top\">";
-		$buf .= "\n<table><tr>";
-		$buf .= "\n\t<td class=\"content\" valign=\"top\">$f0<p>";
-		$buf .= "\n\t".$fields[2]."</td>";
-		$buf .= "\n</tr></table >";
-	} else if ($fields[3] == "block_end") {
-		$buf .= "\n</td></tr>";
-	} else {
-		$buf .= "\n<tr>";
-		$buf .= "\n\t<td class=\"shortdesc\" width=\"40%\" valign=\"top\">$fields[0]</td>";
-		$buf .= "\n\t<td class=\"shortdesc\" valign=\"top\">$fields[1]</td>";
-		$buf .= "\n</tr>";
-		$buf .= "\n<tr>";
-		if (!empty($fields[2])) {
-			$buf .= "\n\t<td class=\"desc\" colspan=\"2\" valign=\"top\">$fields[2]</td>";
-			$buf .= "\n</tr>\n";
-		}
-	}
+    $f0 = $fields[0];
+    if ($fields[4]) {
+        $f0 .= '&nbsp;<span class="littlered">*</span>';
+    }
 
-	return $buf;
+    if ($fields[3] == "block_start") {
+        $html .= "\n<tr>" .
+        "\n\t<td class=\"shortdesc\" colspan=\"2\">$f0<p>" . $fields[2] ."</p></td>" .
+        "\n</tr>";
+    }
+    else {
+        $html .= "\n<tr>" .
+        "\n\t<td class=\"shortdesc\" width=\"40%\">$f0</td>" .
+        "\n\t<td class=\"shortdesc\">$fields[1]</td>" .
+        "\n</tr>";
+
+        if (!empty($fields[2])) {
+            $html .= "\n\t<tr><td class=\"desc\" colspan=\"2\">$fields[2]</td></tr>";
+        }
+    }
+
+    return $html;
 }
 
 function make_attrs($attrList) {
@@ -80,7 +73,7 @@
 	} else {
 		$col1 = '';
 	}
-	if (isset($arr['type']) && 
+	if (isset($arr['type']) &&
 		($arr['type'] == 'text' || $arr['type'] == 'hidden' || $arr['type'] == 'checkbox')) {
 		$col2 = form_input($key, $arr);
 	} else if (isset($arr['choices'])) {
@@ -125,7 +118,7 @@
     $attrs = (isset($arr['attrs'])) ? make_attrs($arr['attrs']) : '';
 
     $name  = (isset($arr['name'])) ? $arr['name'] : $key;
-	
+
     return "<input $type name=\"$name\" value=\"". $arr['value'] ."\" $attrs>";
 }
 
@@ -387,8 +380,8 @@
 
 	/*
 	 * the .htaccess file in the parent directory tries to
-	 * auto_prepend the got-htaccess.php file.  If that worked, 
-	 * then GALLERY_PHP_VALUE_OK will be set. 
+	 * auto_prepend the got-htaccess.php file.  If that worked,
+	 * then GALLERY_PHP_VALUE_OK will be set.
 	 */
 	$success = array();
 	$fail = array();
@@ -403,24 +396,25 @@
 }
 
 function check_php() {
-	global $MIN_PHP_MAJOR_VERSION;
-
-	$version = phpversion();
-	$success = array();
-	$fail = array();
-	$warn = array();
+    global $MIN_PHP_MAJOR_VERSION;
 
-	if (!function_exists('version_compare') || !version_compare($version, "4.1.0", ">=")) {
-		$fail['fail-too-old'] = 1;
+    $version = phpversion();
+    $success = array();
+    $fail = array();
+    $warn = array();
+
+    if (!function_exists('version_compare') ||
+	!version_compare($version, $MIN_PHP_MAJOR_VERSION, ">=")) {
+	$fail['fail-too-old'] = 1;
+    }
+    else {
+	if (strstr(__FILE__, 'lib/setup.php') || strstr(__FILE__, 'lib\\setup.php')) {
+	    $success[] = sprintf(_("PHP v%s is OK."), $version);
 	}
-	
-	if (strstr(__FILE__, 'lib/setup.php') ||
-	  strstr(__FILE__, 'lib\\setup.php')) {
-        $success[] = sprintf(_("PHP v%s is OK."), $version);
-	} else {
+	else {
 		$fail['fail-buggy__FILE__'] = 1;
 	}
-	
+    }
 	return array($success, $fail, $warn);
 }
 
@@ -468,17 +462,17 @@
 	$fail = array();
 	$success = array();
 	$warn = array();
-	
+
 	$missing_critical = array();
 	$missing = 0;
 	$netpbm = array(
-		fs_executable("jpegtopnm"), 
-		fs_executable("giftopnm"), 
-		fs_executable("pngtopnm"), 
-		fs_executable("pnmtojpeg"), 
-		fs_executable("ppmtogif"), 
-		fs_executable("pnmtopng"), 
-		fs_executable("pnmscale"), 
+		fs_executable("jpegtopnm"),
+		fs_executable("giftopnm"),
+		fs_executable("pngtopnm"),
+		fs_executable("pnmtojpeg"),
+		fs_executable("ppmtogif"),
+		fs_executable("pnmtopng"),
+		fs_executable("pnmscale"),
 		fs_executable("pnmfile"),
 		fs_executable("ppmquant"),
 		fs_executable("pnmcut"),
@@ -493,14 +487,14 @@
 	);
 
 	$optional = array(
-		fs_executable("pnmcomp") => 
+		fs_executable("pnmcomp") =>
 			_("Without pnmcomp and pamcomp gallery will not be able to watermark images, unless you use ImageMagick and have the composite binary installed."),
 	);
-	
+
 	$missing_optional = 0;
-	
+
 	/* Start checks */
-	
+
 	if ($graphtool == 'ImageMagick') {
 		$success[] = _("NetPBM not being used in this installation.");
 		return array($success, $fail, $warn);
@@ -538,7 +532,7 @@
 				$bin = $newbin;
 			}
 		}
-		
+
 		if (empty($dir)) {
 		    if (isset($optional[$bin])) {
 			$warn[$bin] = '<br>'. sprintf(_("Missing optional binary %s. %s"), $bin, $optional[$bin]);
@@ -550,19 +544,19 @@
 		}
 
 		if (!empty($dir) && inOpenBasedir($dir) && !fs_is_executable("$dir/$bin")) {
-		    $warn[$bin] = '<br>'. sprintf(_("%s is not executable!"), "<i>$bin</i> "); 
+		    $warn[$bin] = '<br>'. sprintf(_("%s is not executable!"), "<i>$bin</i> ");
 		}
 	}
-	
+
 	if ($missing == count($netpbm)) {
 		$fail["fail-netpbm"] = 1;
 		/* Any other warning doesnt care */
 		$warn = array();
 	}
 	elseif ($missing > 0) {
-		$warn[] = sprintf(_("%d of %d NetPBM binaries located."), 
+		$warn[] = sprintf(_("%d of %d NetPBM binaries located."),
 			count($netpbm) - $missing, count($netpbm));
-		
+
 		if(count($missing_critical) > 0) {
 			$fail["fail-netpbm-partial"] = array_values($missing_critical);
 		}
@@ -584,13 +578,13 @@
 	$missing_critical = array();
 	$missing = 0;
 	$imagick = array(
-		fs_executable("identify"), 
+		fs_executable("identify"),
 		fs_executable("convert"),
 		fs_executable("composite"),
 	);
 
 	$optional = array(
-		fs_executable("composite") => 
+		fs_executable("composite") =>
 			_("Without composite gallery will not be able to watermark images, except you use NetPBM and have the pnmcomp binary installed."),
 	);
 
@@ -631,16 +625,16 @@
 		$warn[$bin] = '<br>'. sprintf(_("%s is not executable!"), "<i>$bin</i> ");
 	    }
 	}
-	
+
 	if ($missing == count($imagick)) {
 		$fail["fail-imagemagick"] = 1;
 		/* Any other warning doesnt care */
 		$warn = array();
 	}
 	elseif ($missing > 0) {
-		$warn[] = sprintf(_("%d of %d ImageMagick binaries located."), 
+		$warn[] = sprintf(_("%d of %d ImageMagick binaries located."),
 			count($imagick) - $missing, count($imagick));
-		
+
 		if(count($missing_critical) > 0) {
 			$fail["fail-imagemagick-partial"] = array_values($missing_critical);
 		}
@@ -711,6 +705,7 @@
 
 function check_gallery_version() {
 	global $gallery;
+
 	$fail = array();
 	$success = array();
 	$warn = array();
@@ -726,6 +721,7 @@
 	$visit = sprintf(_("You can check for more recent versions by visiting %s."), $link);
 	$this_version = sprintf(_("This version of %s was released on %s."),
 			Gallery(), strftime("%x", $gallery->last_change));
+
 	$this_beta_version = sprintf(_("This is a development build of %s that was released on %s."),
 			Gallery(), strftime("%x", $gallery->last_change));
 
@@ -734,7 +730,7 @@
 	} else if ($age > 14 && $beta) {
 		$fail["too_old"] = "$this_beta_version  $visit";
 	} else if ($beta) {
-		$success["ok"] = "$this_beta_version  $visit" . "  "  
+		$success["ok"] = "$this_beta_version  $visit" . "  "
 			. _("Please check regularly for updates.");
 	} else {
 		$success["ok"] = "$this_version  $visit";
@@ -785,13 +781,13 @@
 	$nls = getNLS();
 	$gallery_languages = array_keys(gallery_languages());
 	$system_locales = array();
-	
+
 	$available_locales = array();
 	$maybe_locales = array();
 	$unavailable_locales = array();
 
 	/* Lets see which system locales are installed. */
-	if (getOS() != OS_WINDOWS) { 
+	if (getOS() != OS_WINDOWS) {
 		# Unix / Linux
 		# Check which locales are installed
 
@@ -808,7 +804,7 @@
 		}
 	}
 
-	/* DAMN, there are none we use Linux and our PHP uses gettext*/ 
+	/* DAMN, there are none we use Linux and our PHP uses gettext*/
 	if( sizeof($system_locales) == 0 && getOS() == OS_LINUX && gettext_installed()) {
 		return NULL;
 	}
@@ -818,16 +814,16 @@
 	*/
 	foreach ($gallery_languages as $locale) {
 		$aliases=array();
-		
+
 		/* Found an supported one, put it in availables */
 		if ( (in_array($locale, $system_locales)) || (setlocale(LC_ALL, $locale))) {
 			$available_locales[$locale]=$locale;
 			continue;
 		}
-		
-		/* 
-		** First, we try using the full lang, (first 5 chars) if 
-		** that doesn't match then 
+
+		/*
+		** First, we try using the full lang, (first 5 chars) if
+		** that doesn't match then
 		** we use the first 2 letter to build an alias list
 		**  e.g. nl to find nl_BE or nl_NL
 		*/
@@ -854,7 +850,7 @@
 		}
 
 		$aliases=array_unique($aliases);
-		$noway=Array ('zh_TW.eucTW'); 
+		$noway=Array ('zh_TW.eucTW');
 		if ($aliases) {
 			foreach ($aliases as $test) {
 				// We do this because all locales in $noway seem to crash at least some NetBSD
@@ -874,9 +870,9 @@
 	}
 
 
-	// Set locale correct back      
+	// Set locale correct back
 	if (isset($gallery->locale)) {
-		setlocale(LC_ALL,$gallery->locale);  
+		setlocale(LC_ALL,$gallery->locale);
 	} else {
 		setlocale(LC_ALL,"");
 	}
@@ -903,14 +899,14 @@
 	$maybe = $locales["maybe_locales"];
 	$unavailable = $locales["unavailable_locales"];
 
-	// If we are in Linux, our PHP has gettext, 
+	// If we are in Linux, our PHP has gettext,
 	// but we could not find any locale we skip the whole aliasing part.
 	if($locales == NULL) return $results; // blank array
 
 	$nls = getNLS();
 
 	$block_start_done = false;
-	
+
 	$nr=0;
 	foreach ($maybe as $key => $aliases) {
 		if (sizeof($aliases) < 1) {
@@ -920,7 +916,7 @@
 /*
 		if (sizeof($aliases) == 1) {
 			$results["locale_alias['$key']"] = array (
-				"type" => "hidden", 
+				"type" => "hidden",
 				"value" => array_pop($aliases),
 				"desc" => "locale_alias[$key]",
 				"prompt" => "locale_alias[$key]"
@@ -932,7 +928,7 @@
 		if (!$block_start_done) {
 			$block_start_done=true;
 			$results[] = array (
-					"type" => "block_start", 
+					"type" => "block_start",
 					"prompt" => "<b>(" . _("Advanced") . ")</b><br> ".sprintf(_("<b>System</b> locale selection required")),
 					"desc" => _("There is more than one suitable <b>system</b> locale installed on your machine for the following languages.  Please chose the one you think is most suitable.") .
 					"<p></p>" .
@@ -943,7 +939,7 @@
 
 		$choices=array();
 
-		foreach ($aliases as $value) { 
+		foreach ($aliases as $value) {
 			$choices[$value]=$value;
 		}
 		if (getOS() != OS_WINDOWS) {
@@ -962,7 +958,7 @@
 			"remove_empty" => true
 			);
 
-			
+
         }
 
 	if ($block_start_done) {
@@ -973,7 +969,7 @@
 	$choices=array();
 	if (getOS() != OS_WINDOWS) $choices=array("" => _("System locale"));
 	if (sizeof($available) > 0) {
-		foreach ($available as $choice => $value) { 
+		foreach ($available as $choice => $value) {
 			$choices[$choice]=$nls['language'][$value];
 		}
 
@@ -993,13 +989,13 @@
 			$skip=true;
 		}
 	}
-	
+
 	if (! isset ($skip)) {
 	$avail_keys=array_keys($choices);
         foreach ($unavailable as $key) {
 		if (sizeof($choices) == 1) {
 			$results["locale_alias['$key']"] = array (
-				"type" => "hidden", 
+				"type" => "hidden",
 				"value" => $avail_keys[0],
 				"desc" => "locale_alias[$key]",
 				"prompt" => "locale_alias[$key]",
@@ -1012,7 +1008,7 @@
 		if (!$block_start_done) {
 			$block_start_done=true;
 			$results[] = array (
-					"type" => "block_start", 
+					"type" => "block_start",
 					"prompt" => "<b>(" . _("Advanced") . ")</b><br> ".sprintf(_("<b>System</b> locale problems")),
 						"desc" => _("There are no apparently suitable <b>system</b> locales installed on your machine for the following languages.  Please choose the one you think is most suitable.") .
 							"<p></p>" .
@@ -1040,7 +1036,7 @@
 
 function default_graphics() {
 	list ($imageMagick,) = check_graphics_im();
-        
+
 	if (count ($imageMagick)) {
 		return "ImageMagick";
 	} else {
@@ -1088,8 +1084,8 @@
 			$finished=true;
 			if ($element["value"]) {
 				$fail[]=sprintf(_("In %s, missing %s in row %d with %s %s."),
-					_("Vote words and values"), 
-					_("Name"), $rownum, _("Value"), 
+					_("Vote words and values"),
+					_("Name"), $rownum, _("Value"),
 					$element["value"]);
 				break;
 			}
@@ -1097,13 +1093,13 @@
 		} else {
 			if ($finished) {
 				$fail[]=sprintf(_("In %s, blank in row %d."),
-					_("Vote words and values"), 
-					$rownum-1); 
+					_("Vote words and values"),
+					$rownum-1);
 				break;
 			} else if (!ereg("^[1-9][0-9]*$", $element["value"])) {
-				$fail[]=sprintf(_("In %s, for name %s (row %d) value %s should be a positive whole number"), 
-					_("Vote words and values"), 
-					$element["name"], 
+				$fail[]=sprintf(_("In %s, for name %s (row %d) value %s should be a positive whole number"),
+					_("Vote words and values"),
+					$element["name"],
 					$rownum, $element["value"]);
 				break;
 			}
@@ -1136,7 +1132,7 @@
 		return $gallery->app->expectedExecStatus;
 	}
 
-	// If PHP is compiled with the --enable-sigchild option, then every 
+	// If PHP is compiled with the --enable-sigchild option, then every
 	// exec() call returns an error status of -1.  WTF?!?!  Sigh.  So
 	// Let's do some checking on some pretty standard programs and see
 	// what they return.
@@ -1162,7 +1158,7 @@
 				} else {
 					$count[$status]=1;
 				}
-			} 
+			}
 		}
 	}
 
@@ -1201,32 +1197,31 @@
 function inOpenBasedir($dir) {
     $openBasedir = ini_get('open_basedir');
     if (empty($openBasedir)) {
-	return true;
+        return true;
     }
 
     /*
-     * XXX: this is not perfect.  For example, if the open_basedir list
-     * contains "/usr/localx" this code will match "/usr/local".  Let's not
-     * worry too much about that now.
-     */
+    * XXX: this is not perfect.  For example, if the open_basedir list
+    * contains "/usr/localx" this code will match "/usr/local".  Let's not
+    * worry too much about that now.
+    */
     foreach (explode(':', $openBasedir) as $basedir) {
-	if (!strncmp($basedir, $dir, strlen($basedir))) {
-	    return true;
-	}
+        if (!strncmp($basedir, $dir, strlen($basedir))) {
+            return true;
+        }
     }
-    
+
     return false;
 }
 
 function make_separator($key, $arr)  {
-    $buf ="\n<div class=\"inner\">";
-    $buf .= "\n\t<div class=\"separator\">". $arr["title"] ."</div>";
-    if( isset($arr["desc"])) {
-	   $buf .= "\n<div class=\"desc\">". $arr["desc"] ."</div>";
-    }
-    $buf .="\n</div>";
+    $html = "\n\t<div class=\"separator\">{$arr["title"]}</div>";
+
+    if(!empty($arr["desc"])) {
+		$html .= "\n<div class=\"desc\">{$arr["desc"]}</div>";
+	}
 
-    return $buf;
+    return $html;
 }
 
 function array_stripslashes($subject) {
@@ -1240,14 +1235,14 @@
 	foreach ($subject as $key => $value) {
 		$ret[$key] = array_stripslashes($value);
 	}
-	
+
 	return $ret;
 }
 
 /*
 ** Check if Magic Quotes are On
 ** If yes stripslashes and return the cleaned input.
-** 
+**
 ** Jens Tkotz, 02/2004
 */
 function stripWQuotesON($mixed) {
@@ -1325,7 +1320,7 @@
 			       	$adminEmail .= "$join$email";
 			       	$join=",";
 				if (! check_email($email)) {
-				       	$fail[] = sprintf(_("%s is not a valid email address."), 
+				       	$fail[] = sprintf(_("%s is not a valid email address."),
 							$email);
 			       	} else {
 				       	$success[] = "Valid admin email given.";
@@ -1341,10 +1336,10 @@
 	if (!empty($gallery->session->configForm->emailGreeting) && !strstr($gallery->session->configForm->emailGreeting, "!!USERNAME!!")) {
 	       	$fail[]= sprintf(_("You must include %s in your welcome email"), "<b>!!USERNAME!!</b>");
        	}
-       	if (!empty($emailGreeting) && 
+       	if (!empty($emailGreeting) &&
 			!strstr($gallery->session->configForm->emailGreeting, "!!PASSWORD!!" ) &&
 			!strstr($gallery->session->configForm->emailGreeting, "!!NEWPASSWORDLINK!!" )) {
-	       	$fail[]= sprintf(_("You must include %s or %s in your welcome email"), 
+	       	$fail[]= sprintf(_("You must include %s or %s in your welcome email"),
 				"<b>!!PASSWORD!!</b>",
 				"<b>!!NEWPASSWORDLINK!!</b>");
        	}
@@ -1368,14 +1363,14 @@
 	$warn = array();
        	list($oks, $errors, $warnings) = checkVersions(false);
 	if ($errors)  {
-		$fail[]=sprintf(_("The following files are out of date, corrupted or missing:<br>&nbsp;&nbsp;&nbsp;&nbsp;%s."), 
+		$fail[]=sprintf(_("The following files are out of date, corrupted or missing:<br>&nbsp;&nbsp;&nbsp;&nbsp;%s."),
 				implode('<br>&nbsp;&nbsp;&nbsp;&nbsp;', array_keys($errors))). "<p>" .
-			"<br>" . _("This should be fixed before proceeding") . 
-		      	"<br>" . sprintf(_("Look at %sCheck Versions%s for more details."), 
+			"<br>" . _("This should be fixed before proceeding") .
+		      	"<br>" . sprintf(_("Look at %sCheck Versions%s for more details."),
 					"<a href=check_versions.php>", "</a>");
 	} else if ($warnings) {
-		$warn[]=sprintf(_("%d files are more recent than expected.  This is OK if you are using pre-release, beta, CVS or modified code."), count($warnings)) .
-		      	"<br>" . sprintf(_("Look at %sCheck Versions%s for more details."), 
+		$warn[]=sprintf(_("%d files are more recent than expected.  This is OK if you are using pre-release, beta, SVN or modified code."), count($warnings)) .
+		      	"<br>" . sprintf(_("Look at %sCheck Versions%s for more details."),
 					"<a href=check_versions.php>", "</a>");
 	} else {
 		if (count($oks) == 0) {
@@ -1418,7 +1413,7 @@
 	global $gallery;
 
 	$admins=array();
-	
+
 	if (isset($gallery->app->userDir) && fs_is_dir($gallery->app->userDir)) {
 		require_once(GALLERY_BASE . '/classes/User.php');
 		require_once(GALLERY_BASE . '/classes/EverybodyUser.php');
@@ -1428,7 +1423,7 @@
 		require_once(GALLERY_BASE . '/classes/gallery/UserDB.php');
 		require_once(GALLERY_BASE . '/classes/gallery/User.php');
 
-	
+
 		$userDB = new Gallery_UserDB();
 
 		$admins=array();
@@ -1451,7 +1446,7 @@
 	else if (! in_array("admin",$admins)) {
 		if (sizeof($admins) == 1) {
 			$desc_text=sprintf(_("It seems you've already configured Gallery, because there is one admin account, but its not called %s."), '<b>admin</b>');
-		} 
+		}
 		else {
 			$desc_text=sprintf(_("It seems you've already configured Gallery, because there are %d admin accounts, but no user called %s."), sizeof($admins), '<b>admin</b>');
 		}
@@ -1479,7 +1474,7 @@
 		"attrs" => array("size" => 20),
 		"required" => true,
 	));
-	
+
 	return $result;
 }
 
@@ -1505,65 +1500,89 @@
 }
 
 function checkVersions($verbose=false) {
-	global $gallery;
-	/* we assume setup/init.php was loaded ! */
+        global $gallery;
+        /* we assume setup/init.php was loaded ! */
 
-	$manifest=GALLERY_BASE . '/manifest.inc';
-	$success=array();
-	$fail=array();
-	$warn=array();
-	if (!fs_file_exists($manifest)) {
-	       	$fail["manifest.inc"]=_("File missing or unreadable.  Please install then re-run this test.");
-		return array($success, $fail, $warn);
-	}
-	if (!function_exists('getCVSVersion')) {
-		$fail['util.php']=sprintf(_("Please ensure that %s is the latest version."), "util.php");
-		return array($success, $fail, $warn);
-	}
-	include (GALLERY_BASE . '/manifest.inc');
-       	if ($verbose) {
-	       	print sprintf(_("Testing status of %d files."), count($versions));
-	}
+        $manifest = GALLERY_BASE . '/manifest.inc';
+	$fileskiplist = array(
+		'includes/ecard/templates/error.htm',
+		'includes/ecard/templates/leer.htm',
+		'js/imagemap.js',
+		'js/toggle.js',
+		'js/wz_jsgraphics.js',
+		'js/wz_tooltip.js');
+        $success = array();
+        $fail = array();
+        $warn = array();
+        if (!fs_file_exists($manifest)) {
+                $fail["manifest.inc"]=_("File missing or unreadable.  Please install then re-run this test.");
+                return array($success, $fail, $warn);
+        }
+        if (!function_exists('getSVNRevision')) {
+                $fail['util.php'] = sprintf(_("Please ensure that %s is the latest version."), "util.php");
+                return array($success, $fail, $warn);
+        }
+        include (GALLERY_BASE . '/manifest.inc');
+        if ($verbose) {
+                print sprintf(_("Testing status of %d files."), count($versions));
+        }
 	foreach ($versions as $file => $version) {
-		$found_version=getCVSVersion($file);
-		if ($found_version === NULL) {
-		       	if ($verbose) {
-			       	print "<br>\n";
-			       	print sprintf(_("Cannot read file %s."), $file);
-			}
-			$fail[$file]=_("File missing or unreadable.");
-			continue;
-		} else if ($found_version === "") {
-			if ($verbose) {
-			       	print "<br>\n";
-			       	print sprintf(_("Version information not found in %s.  File must be old version or corrupted."), $file);
-		       	}
-		       	$fail[$file]=_("Missing version");
-		       	continue;
-	       	} 
-		$compare=compareVersions($version, $found_version);
-		if ($compare < 0) {
-			if ($verbose) {
-			       	print "<br>\n";
-			       	print sprintf(_("Problem with %s.  Expected version %s (or greater) but found %s."), $file, $version, $found_version);
-		       	}
-		       	$fail[$file]=sprintf(_("Expected version %s (or greater) but found %s."), $version, $found_version);
-	       	} else if ($compare > 0) {
-			if ($verbose) {
-			       	print "<br>\n";
-				print sprintf(_("%s OK.  Actual version (%s) more recent than expected version (%s)"), $file, $found_version, $version);
-			}
-			$warn[$file]=sprintf(_("Expected version %s but found %s."), $version, $found_version);
-		} else {
-			if ($verbose) {
-			       	print "<br>\n";
-			       	print sprintf(_("%s OK"), $file);
-		       	}
-			$success[$file]=sprintf(_("Found expected version %s."), $version);
-		}
-			
-	}
-       	return array($success, $fail, $warn);
+                $found_version = getSVNRevision($file);
+                if ($found_version === NULL) {
+                        if ($verbose) {
+                                print "<br>\n";
+                                print sprintf(_("Cannot read file %s."), $file);
+                        }
+                        $fail[$file]=_("File missing or unreadable.");
+                        continue;
+                }
+                else if ($found_version === "" ) {
+                    if (preg_match('/(\.jpg|\.png|\.gif|\.jar|.\mo|\.ico|\.tpl|Changelog)$/i', $file, $matches)) {
+                        if($verbose) {
+                            echo "<br>\n";
+                            printf("File with type: %s can not have a compareable Revision Nr.", $matches[1]);
+                            continue;
+                        }
+                        $success[$file] = sprintf("No comparabel Rev for type: %s", $matches[1]);
+                        continue;
+                    }
+		    elseif (in_array($file, $fileskiplist)) {
+                        $success[$file] = sprintf("File '%s' is in skiplist", $file);
+                        continue;
+                    }
+                    else {
+                        if ($verbose) {
+                                print "<br>\n";
+                                print sprintf(_("Version information not found in %s.  File must be old version or corrupted."), $file);
+                        }
+                        $fail[$file]=_("Missing version");
+                        continue;
+                    }
+                }
+
+$compare=compareVersions($version, $found_version);
+     if ($compare < 0) {
+             if ($verbose) {
+                     print "<br>\n";
+                     print sprintf(_("Problem with %s.  Expected version %s (or greater) but found %s."), $file, $version, $found_version);
+             }
+             $fail[$file]=sprintf(_("Expected version %s (or greater) but found %s."), $version, $found_version);
+     } else if ($compare > 0) {
+             if ($verbose) {
+                     print "<br>\n";
+                     print sprintf(_("%s OK.  Actual version (%s) more recent than expected version (%s)"), $file, $found_version, $version);
+             }
+             $warn[$file]=sprintf(_("Expected version %s but found %s."), $version, $found_version);
+     } else {
+             if ($verbose) {
+                     print "<br>\n";
+                     print sprintf(_("%s OK"), $file);
+             }
+             $success[$file]=sprintf(_("Found expected version %s."), $version);
+     }
+
+        }
+        return array($success, $fail, $warn);
 }
 
 /**
@@ -1590,73 +1609,67 @@
  *	 - You always need a group_end for a group. Otherwise everything below will belong to the group.
  *
  * @author Jens Tkotz
- */ 
+ */
 
-function makeSectionTabs($array, $break = 7, $initialtab = '', $sortByTitle = false) {
+function makeSectionTabs($array, $initialtab = '', $sortByTitle = false, $visibilityKeyword = '', $visibilityValue = '') {
 	$tabs = array();
 
 	foreach ($array as $key => $var) {
-        	if(isset($var['type']) && $var['type'] == 'group_start') {
-			$tabs[]=$var;
+		if(isset($var['type']) && $var['type'] == 'group_start') {
+			$tabs[$key] = $var;
 		}
 	}
 
 	if ($sortByTitle) {
-	    array_sort_by_fields($tabs, 'title');
+		array_sort_by_fields($tabs, 'title');
 	}
 
-	echo "\n<table width=\"100%\" cellspacing=\"0\">";
-	echo "\n<tr>";
-	$tabcount = 0;
+	echo "\n<div class=\"g-tabset\" style=\"float:". langleft() ."\">\n";
 
 	foreach ($tabs as $cell) {
-        	$tabcount++;
+		$attrList = array();
+
 		if (($cell['default'] == 'inline' && !$initialtab) || $initialtab == $cell['name']) {
-		        $class = 'class="tab-hi"';
+			$attrList['class'] = 'tab-hi';
 			if (empty($initialtab)) {
 				$initialtab = $cell['name'];
 			}
 		}
-		else { 
-			$class = 'class="tab"';
-		}
-		echo "\n\t<td $class id=\"tab_". $cell['name'] ."\" onClick=\"section_tabs.toggle('" . $cell['name'] ."')\">";
-		echo $cell['title'];
+
+		$attrList['id'] = 'tab_'. $cell['name'];
+		$attrList['onClick'] = "section_tabs.toggle('" . $cell['name'] ."')";
+		$attrList['style'] = "float:". langleft();
+		$text = $cell['title'];
 		if (!empty($cell['contains_required'])) {
-			echo '<span class="littlered">*</span>';
-		}
-		echo '</td>';
-		echo "\n\t<td class=\"tabspacer\">&nbsp;</td>";
-		if ($tabcount % $break == 0 && $tabcount < sizeof($tabs)) {
-			echo "\n</tr>\n</table>";
-			echo "\n<table width=\"100%\"cellspacing=\"0\" style=\"margin-top:5px;\">\n<tr>";
+			$text .= '<span class="g-littlered">*</span>';
 		}
+
+		echo galleryLink('', $text, $attrList);
 	}
-	echo "\n</tr>";
-	echo "\n</table>\n";	
 
-	echo "\n". '<input name="initialtab" id="initialtab" type="hidden" value="'. $initialtab .'">';
-	echo "\n". '<script language="JavaScript" type="text/javascript">';
+	echo "</div>\n";
 
-        $i=0;
+    $i = 0;
+	echo '<script language="JavaScript" type="text/javascript">';
 	echo "\n\t". 'var Sections=new Array()';
-
-        foreach ($array as $key => $var) {
-                if(isset($var['type']) && $var['type'] == 'group_start') {
-                        echo "\n\tSections[$i] ='". $var['name'] ."' ;";
-                        $i++;
-                }
-        }
+	foreach ($tabs as $key => $var) {
+		if(isset($var['type']) && $var['type'] == 'group_start') {
+			echo "\n\tSections[$i] ='". $var['name'] ."' ;";
+			$i++;
+		}
+	}
 
 	echo "\n\tsection_tabs = new configSection('$initialtab')";
 	insertSectionToggle();
 
 	echo "\n</script>\n";
+
+	return $initialtab;
 }
 
 function configLogin($target) {
 	global $gallery;
-	
+
 	if (fs_file_exists(GALLERY_SETUPDIR . "/resetadmin")) {
 		$resetFile = getFile(GALLERY_SETUPDIR . "/resetadmin");
 		$resetFile = trim($resetFile);
@@ -1666,7 +1679,7 @@
 		// unset the Guid so we don't keep asking for something that's not there.
 		$gallery->session->resetAdminGuid = null;
 	}
-	
+
 	// The gallery has never been configured, or the admin password has been lost and needs to be reset - ignore login requirement
 	// If the user has already logged in, and is viewing one of the setup pages, they will be logged in automatically by the form
 	if (!isset($gallery->app->userDir) || (isset($gallery->session->resetAdminGuid) && $gallery->session->resetAdminGuid == $resetFile)) {
@@ -1694,12 +1707,12 @@
 }
 
 function placeholderDescription() {
-    $placeholderDescription =  
+    $placeholderDescription =
 	_("This email will be sent when new accounts are created.") .
 	_("Leaving this field empty sets Gallery to use the default message (see below) which can be translated, or use your own welcome message.") .
 	_("The following placeholder can be used:") .
 	'<p><table>';
-	
+
     foreach(welcomeMsgPlaceholderList() as $placeholder => $description) {
 	$placeholderDescription .= '<tr>'.
 				   '<td>!!'. strtoupper($placeholder) . '!!</td>'.
@@ -1708,8 +1721,8 @@
     }
     $placeholderDescription .= '</table></p>'.
 
-	'<div style="border: 1px black solid; padding-left:10%; padding-right:10%">'. 
-		nl2br(welcome_email(true)) . 
+	'<div style="border: 1px black solid; padding-left:10%; padding-right:10%">'.
+		nl2br(welcome_email(true)) .
 	'</div>';
 
     return $placeholderDescription;
diff -Naur gallery-1.5.3/lib/url.php gallery-1.5.4/lib/url.php
--- gallery-1.5.3/lib/url.php	2005-12-26 22:23:03.000000000 +0100
+++ gallery-1.5.4/lib/url.php	2006-08-14 09:41:08.000000000 +0200
@@ -1,4 +1,26 @@
 <?php
+/*
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2006 Bharat Mediratta
+ *
+ * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: url.php 14310 2006-08-14 07:41:08Z jenst $
+ */
+?>
+<?php
 
 /**
  * Functions that provide possibility to create and modify URLS
@@ -76,7 +98,7 @@
 	/* Needed for phpBB2 */
 	global $userdata;
 	global $board_config;
-        
+
 	/* Needed for Mambo / Joomla! */
 	global $MOS_GALLERY_PARAMS;
 
@@ -94,10 +116,10 @@
 	else {
 	    $urlprefix = '';
 	}
-	
+
 	/* make sure the urlprefix doesnt end with a / */
 	$urlprefix = ereg_replace("\/$", "", $urlprefix);
-	
+
 	/* Add the folder to the url when *Nuke is not direct in the main folder */
 	$addpath = substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));
 
@@ -150,7 +172,7 @@
 				else {
 					$url = $urlprefix . pnGetBaseURI()."/index.php";
 				}
-				
+
 				$args["name"] = $GALLERY_MODULENAME;
 				/*
 				 * include *must* be last so that the JavaScript code in
@@ -158,7 +180,7 @@
 				 */
 				$args["include"] = $target;
 			break;
-							
+
 			case 'mambo':
 			case 'joomla':
 				$args['option'] = $GALLERY_MODULENAME;
@@ -189,7 +211,7 @@
 		}
 	}
 
-	if (empty($url)) {       
+	if (empty($url)) {
 	    $url = getGalleryBaseUrl() ."/$target";
 	}
 
@@ -357,8 +379,16 @@
 
 function galleryLink($url, $content, $attrList = array()) {
 	$attrs = generateAttrs($attrList);
-	$html = "<a href=\"$url\"$attrs>$content</a>";
-	
+
+	if (!empty($url)) {
+        $html = "<a href=\"$url\"$attrs>$content</a>\n";
+    }
+    else {
+        $html = "<a$attrs>$content</a>\n";
+    }
+
 	return $html;
 }
+
+
 ?>
diff -Naur gallery-1.5.3/lib/valchecks.php gallery-1.5.4/lib/valchecks.php
--- gallery-1.5.3/lib/valchecks.php	2006-03-28 12:54:53.000000000 +0200
+++ gallery-1.5.4/lib/valchecks.php	2006-05-02 11:59:13.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: valchecks.php,v 1.4.2.2 2006/03/28 10:54:53 jenst Exp $
+ * $Id: valchecks.php 13579 2006-05-02 09:59:13Z jenst $
  */
 ?>
 <?php
@@ -118,8 +118,13 @@
 }
 
 function sanitizeInput($value) {
+    if(!is_array($value) && strip_tags($value) == $value) {
+        return $value;
+    }
+
     require_once(dirname(dirname(__FILE__)) .'/classes/HTML_Safe/Safe.php');
     static $safehtml;
+
     if (empty($safehtml)) {
         $safehtml =& new HTML_Safe();
     }
diff -Naur gallery-1.5.3/lib/voting.php gallery-1.5.4/lib/voting.php
--- gallery-1.5.3/lib/voting.php	2006-03-27 17:31:30.000000000 +0200
+++ gallery-1.5.4/lib/voting.php	2006-08-13 07:02:55.000000000 +0200
@@ -2,22 +2,22 @@
 /*
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
- * 
+ *
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: voting.php,v 1.11.2.1 2006/03/27 15:31:30 jenst Exp $
+ * $Id: voting.php 14292 2006-08-13 05:02:55Z jenst $
  */
 ?>
 <?php
@@ -102,7 +102,7 @@
 			}
 			foreach ($gallery->album->fields["votes"] as $previous_key => $previous_vote) {
 				if (isset($previous_vote[getVotingID()]) &&
-						$previous_vote[getVotingID()] 
+						$previous_vote[getVotingID()]
 							=== intval($vote_value)) {
 					unset($gallery->album->fields["votes"][$previous_key][getVotingID()]);
 				}
@@ -133,8 +133,8 @@
 	global $gallery;
 
 	if ($gallery->album->numPhotos($gallery->user->canWriteToAlbum($gallery->album)) == 0) {
-	       return false; 
-	}	       
+	       return false;
+	}
 
 	if ($gallery->album->getVoterClass() == "Everybody") {
 		return true;
@@ -227,61 +227,62 @@
 }
 
 function showResultsGraph($num_rows) {
-	global $gallery;
+    global $gallery;
 
-	$results=array();
-	$results_count=array();
-	$nv_pairs=$gallery->album->getVoteNVPairs();
-	$buf='';
+    $results = array();
+    $results_count = array();
+    $nv_pairs = $gallery->album->getVoteNVPairs();
+    $buf = '';
+
+    $voters = array();
+    foreach ($gallery->album->fields["votes"] as $element => $image_votes) {
+        $accum_votes = 0;
+        $count = 0;
+        foreach ($image_votes as $voter => $vote_value ) {
+            $voters[$voter] = true;
+            if ($vote_value> $gallery->album->getPollScale()) { // scale has changed
+                $vote_value = $gallery->album->getPollScale();
+            }
+            $accum_votes += $nv_pairs[$vote_value]["value"];
+            $count++;
+        }
+        if ($accum_votes > 0)  {
+            $results_count[$element]=$count;
+            if ($gallery->album->getPollType() == "rank" || $gallery->album->getPollScale() == 1) {
+                $results[$element]=$accum_votes;
+                $summary = gTranslate('common', "(Total points in brackets)");
+            }
+            else {
+                $results[$element] = number_format(((double)$accum_votes)/$count, 2);
+                $summary = gTranslate('common', "(Average points in brackets)");
+            }
+        }
+    }
 
-	$voters=array();
-	foreach ($gallery->album->fields["votes"] as $element => $image_votes) {
-		$accum_votes=0;
-		$count=0;
-		foreach ($image_votes as $voter => $vote_value ) {
-			$voters[$voter]=true;
-			if ($vote_value> $gallery->album->getPollScale()) { // scale has changed
-				$vote_value=$gallery->album->getPollScale();
-			}
-			$accum_votes+=$nv_pairs[$vote_value]["value"];
-			$count++;
-		    }
-		    if ($accum_votes > 0)  {
-	        	$results_count[$element]=$count;
-			if ($gallery->album->getPollType() == "rank" || $gallery->album->getPollScale() == 1) {
-		    		$results[$element]=$accum_votes;
-				$summary="("._("Total points in brackets") . ")";
-			}
-		    	else {
-				$results[$element]=number_format(((double)$accum_votes)/$count, 2);
-				$summary="("._("Average points in brackets") . ")";
-			}
-		}
-	}
 	array_multisort($results, SORT_NUMERIC, SORT_DESC, $results_count, SORT_NUMERIC, SORT_DESC);
-	$rank=0;
-	$graph=array();
-	$needs_saving=false;
+	$rank = 0;
+	$graph = array();
+	$needs_saving = false;
 	foreach ($results as $element => $count) {
-		$index=$gallery->album->getIndexByVotingId($element);
+		$index = $gallery->album->getIndexByVotingId($element);
 		if ($index < 0)  {
 			// image has been deleted!
 			continue;
-		} 
+		}
 
 		if ($gallery->album->isAlbum($index)) {
 			$url = makeAlbumUrl($gallery->album->getAlbumName($index));
-			$album=$gallery->album->getSubAlbum($index);
-			$desc=sprintf(_("Album: %s"), 
+			$album = $gallery->album->getSubAlbum($index);
+			$desc = sprintf(gTranslate('common', "Album: %s"),
 					$album->fields['title']);
 
 		} else {
 			$id = $gallery->album->getPhotoId($index);
-			$url=makeAlbumUrl($gallery->session->albumName, $id);
-			$desc=$gallery->album->getCaption($index);
-			if (trim($desc)== "") {
-				$desc=$id;
-			}	
+			$url = makeAlbumUrl($gallery->session->albumName, $id);
+			$desc = $gallery->album->getCaption($index);
+			if (trim($desc) == '') {
+				$desc = $id;
+			}
 		}
 		$current_rank = $gallery->album->getRank($index);
 		$rank++;
@@ -293,46 +294,50 @@
 		if ($rank > $num_rows) {
 			continue;
 		}
-		
-	    	$name_string='<a href="';
+
+        $name_string = '<a href="';
+
 		$name_string.= $url;
 		$name_string.= '">';
 		$name_string.= $desc;
 		$name_string.= "</a>";
 		$name_string.= " - ".
-		      	gTranslate('common', "1 voter", "%d voters", $results_count[$element]);
-	       	$graph[$name_string]=$count;
+		  gTranslate('common', "1 voter", "%d voters", $results_count[$element]);
+
+        $graph[$name_string] = $count;
 	}
 
 	if ($needs_saving) {
 		$gallery->album->save();
 	}
 
-	$graph=arrayToBarGraph($graph, 300, "border=0");
-	$buf .="\n<br>";
+	$graph = arrayToBarGraph($graph, 300);
 	if ($graph) {
-            $buf .="<span class=\"title\">".
-		gTranslate('common', "Result from one voter", "Result of %d voters", sizeof($voters)).
-                "</span>";
-                if ($gallery->album->getPollType() == "critique") {
-                        $key_string="";
-                        foreach ($nv_pairs as $nv_pair) {
-				if (empty($nv_pair["name"])) {
-					continue;
-				}
-				$key_string .= sprintf(_("%s: %s points; "), 
-						$nv_pair["name"],
-						$nv_pair["value"]);
-			}
-                        if (strlen($key_string) > 0) {
-                                $buf .= "<br>". sprintf(_("Key - %s"), 
-						$key_string)." $summary<br>";
-			}
-		}
-                $buf .= $graph;
-        } else if ($num_rows > 0 && $gallery->user->canWriteToAlbum($gallery->album)) {
-		$buf .= "<span class=\"title\">"._("No votes so far.")."<br></span>";
+	    $buf .="<div class=\"g-va-poll-resultbox\"><span class=\"admin\">".
+        	    gTranslate('common',
+        	    "Result from one voter",
+        	    "Result of %d voters",
+        	    sizeof($voters), '', true) .
+    	    '</span>';
+
+	    if ($gallery->album->getPollType() == "critique") {
+	        $key_string="";
+	        foreach ($nv_pairs as $nv_pair) {
+	            if (empty($nv_pair["name"])) {
+	                continue;
+	            }
+	            $key_string .= sprintf(gTranslate('common',"%s: %s points; "),
+	            $nv_pair["name"],
+	            $nv_pair["value"]);
+	        }
+	        if (strlen($key_string) > 0) {
+	            $buf .= "<br>". sprintf(gTranslate('common',"Key - %s"),
+	            $key_string)." $summary<br>";
+	        }
+	    }
+	    $buf .= $graph . '</div>';
 	}
+
 	return array($buf, $results);
 }
 
diff -Naur gallery-1.5.3/LICENSE.txt gallery-1.5.4/LICENSE.txt
--- gallery-1.5.3/LICENSE.txt	2005-09-12 19:31:20.000000000 +0200
+++ gallery-1.5.4/LICENSE.txt	2005-09-12 19:32:54.000000000 +0200
@@ -1,4 +1,4 @@
-$Id: LICENSE.txt,v 1.3 2005/09/12 17:31:20 dmolavi Exp $
+$Id: LICENSE.txt 11584 2005-09-12 17:32:54Z dmolavi $
 
 		    GNU GENERAL PUBLIC LICENSE
 		       Version 2, June 1991
diff -Naur gallery-1.5.3/login.php gallery-1.5.4/login.php
--- gallery-1.5.3/login.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/login.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: login.php,v 1.71.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: login.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/manage_users.php gallery-1.5.4/manage_users.php
--- gallery-1.5.3/manage_users.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/manage_users.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: manage_users.php,v 1.50.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: manage_users.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/manifest.inc gallery-1.5.4/manifest.inc
--- gallery-1.5.3/manifest.inc	2006-04-10 04:16:41.000000000 +0200
+++ gallery-1.5.4/manifest.inc	2006-08-15 14:20:00.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: gpl.txt,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: manifest.inc 14328 2006-08-15 12:20:00Z jenst $
  */
 ?>
 <?php
@@ -28,4 +28,605 @@
  */
 
 $versions=array();
+$versions['AUTHORS']='11306';
+$versions['ChangeLog']='';
+$versions['LICENSE.txt']='11584';
+$versions['README']='3848';
+$versions['Version.php']='14315';
+$versions['add_comment.php']='13409';
+$versions['add_photos.php']='13338';
+$versions['add_photos_frame.php']='13338';
+$versions['add_photos_refresh.php']='13579';
+$versions['admin-page.php']='13338';
+$versions['administer_startpage.php']='13338';
+$versions['album_permissions.php']='13433';
+$versions['albums.php']='13362';
+$versions['block-random.php']='13338';
+$versions['captionator.php']='13338';
+$versions['classes/Album.php']='13579';
+$versions['classes/AlbumDB.php']='13338';
+$versions['classes/AlbumItem.php']='13338';
+$versions['classes/Comment.php']='13504';
+$versions['classes/Database.php']='13338';
+$versions['classes/EverybodyUser.php']='13338';
+$versions['classes/HTML/table.php']='13338';
+$versions['classes/HTML_Safe/Safe.php']='13455';
+$versions['classes/Image.php']='13338';
+$versions['classes/LoggedInUser.php']='13338';
+$versions['classes/Mail/RFC822.php']='13580';
+$versions['classes/Mail/htmlMimeMail.php']='13848';
+$versions['classes/Mail/mimePart.php']='13580';
+$versions['classes/Mail/smtp.php']='13580';
+$versions['classes/NobodyUser.php']='13338';
+$versions['classes/User.php']='13338';
+$versions['classes/UserDB.php']='13338';
+$versions['classes/XML_HTMLSax3/HTMLSax3.php']='13349';
+$versions['classes/XML_HTMLSax3/HTMLSax3/Decorators.php']='13349';
+$versions['classes/XML_HTMLSax3/HTMLSax3/States.php']='13349';
+$versions['classes/database/mysql/Database.php']='13338';
+$versions['classes/gallery/User.php']='13338';
+$versions['classes/gallery/UserDB.php']='13338';
+$versions['classes/geeklog/User.php']='13580';
+$versions['classes/geeklog/UserDB.php']='13580';
+$versions['classes/mambo/User.php']='13338';
+$versions['classes/mambo/UserDB.php']='13338';
+$versions['classes/nsnnuke/AdminUser.php']='13338';
+$versions['classes/nsnnuke/User.php']='13338';
+$versions['classes/nsnnuke/UserDB.php']='13338';
+$versions['classes/nuke5/AdminUser.php']='13338';
+$versions['classes/nuke5/User.php']='13338';
+$versions['classes/nuke5/UserDB.php']='13338';
+$versions['classes/phpbb/User.php']='13580';
+$versions['classes/phpbb/UserDB.php']='13580';
+$versions['classes/postnuke/User.php']='13338';
+$versions['classes/postnuke/UserDB.php']='13338';
+$versions['classes/postnuke0.7.1/User.php']='13338';
+$versions['classes/postnuke0.7.1/UserDB.php']='13338';
+$versions['classes/remote/GalleryRemoteProperties.php']='13338';
+$versions['configure.sh']='6290';
+$versions['contrib/joomla/admin.gallery.html.php']='13338';
+$versions['contrib/joomla/admin.gallery.php']='13338';
+$versions['contrib/joomla/classes/mambo.php']='11822';
+$versions['contrib/joomla/gallery.php']='13338';
+$versions['contrib/joomla/gallery.xml']='13338';
+$versions['contrib/joomla/images/logo-228x67.png']='';
+$versions['contrib/joomla/includes/frontend.php']='11822';
+$versions['contrib/joomla/toolbar.gallery.php']='13338';
+$versions['contrib/mambo/admin.gallery.html.php']='13338';
+$versions['contrib/mambo/admin.gallery.php']='13338';
+$versions['contrib/mambo/classes/mambo.php']='7038';
+$versions['contrib/mambo/gallery.php']='13338';
+$versions['contrib/mambo/gallery.xml']='13338';
+$versions['contrib/mambo/images/logo-228x67.png']='';
+$versions['contrib/mambo/includes/frontend.php']='5898';
+$versions['contrib/mambo/toolbar.gallery.php']='13338';
+$versions['contrib/phpBB2/modules.php']='13338';
+$versions['contrib/phpnuke/block-Random_Image.php.sample']='13338';
+$versions['copy_photo.php']='13338';
+$versions['create_user.php']='13338';
+$versions['css/base.css.default']='14310';
+$versions['css/config.css.default']='14310';
+$versions['css/embedded_style.css.default']='10654';
+$versions['css/screen.css.default']='14310';
+$versions['delete_album.php']='13338';
+$versions['delete_photo.php']='13338';
+$versions['delete_user.php']='13338';
+$versions['do_command.php']='13848';
+$versions['download.php']='13338';
+$versions['ecard_form.php']='13579';
+$versions['ecard_preview.php']='13338';
+$versions['edit_appearance.php']='14310';
+$versions['edit_caption.php']='13338';
+$versions['edit_field.php']='13349';
+$versions['edit_thumb.php']='13338';
+$versions['edit_watermark.php']='13361';
+$versions['extra_fields.php']='13338';
+$versions['gallery_remote.php']='13338';
+$versions['gallery_remote2.php']='13338';
+$versions['help/imagemap.php']='13338';
+$versions['help/metadataOnUpload.php']='13338';
+$versions['html/userData.inc']='12387';
+$versions['html_wrap/album.footer.default']='11686';
+$versions['html_wrap/album.header.default']='11373';
+$versions['html_wrap/frames/README.php']='5431';
+$versions['html_wrap/frames/golden/BB.gif']='';
+$versions['html_wrap/frames/golden/BL.gif']='';
+$versions['html_wrap/frames/golden/BR.gif']='';
+$versions['html_wrap/frames/golden/LL.gif']='';
+$versions['html_wrap/frames/golden/RR.gif']='';
+$versions['html_wrap/frames/golden/TL.gif']='';
+$versions['html_wrap/frames/golden/TR.gif']='';
+$versions['html_wrap/frames/golden/TT.gif']='';
+$versions['html_wrap/frames/golden/frame.def']='5600';
+$versions['html_wrap/frames/notebook/BB.gif']='';
+$versions['html_wrap/frames/notebook/BL.gif']='';
+$versions['html_wrap/frames/notebook/BR.gif']='';
+$versions['html_wrap/frames/notebook/LL.gif']='';
+$versions['html_wrap/frames/notebook/RR.gif']='';
+$versions['html_wrap/frames/notebook/TL.gif']='';
+$versions['html_wrap/frames/notebook/TR.gif']='';
+$versions['html_wrap/frames/notebook/TT.gif']='';
+$versions['html_wrap/frames/notebook/frame.def']='5600';
+$versions['html_wrap/frames/polaroid/BB.gif']='';
+$versions['html_wrap/frames/polaroid/BL.gif']='';
+$versions['html_wrap/frames/polaroid/BR.gif']='';
+$versions['html_wrap/frames/polaroid/LL.gif']='';
+$versions['html_wrap/frames/polaroid/RR.gif']='';
+$versions['html_wrap/frames/polaroid/TL.gif']='';
+$versions['html_wrap/frames/polaroid/TR.gif']='';
+$versions['html_wrap/frames/polaroid/TT.gif']='';
+$versions['html_wrap/frames/polaroid/frame.def']='5600';
+$versions['html_wrap/frames/polaroid/pixel_trans.gif']='';
+$versions['html_wrap/frames/polaroids/BB.gif']='';
+$versions['html_wrap/frames/polaroids/BL.gif']='';
+$versions['html_wrap/frames/polaroids/BR.gif']='';
+$versions['html_wrap/frames/polaroids/LL.gif']='';
+$versions['html_wrap/frames/polaroids/RR.gif']='';
+$versions['html_wrap/frames/polaroids/TL.gif']='';
+$versions['html_wrap/frames/polaroids/TR.gif']='';
+$versions['html_wrap/frames/polaroids/TT.gif']='';
+$versions['html_wrap/frames/polaroids/frame.def']='5600';
+$versions['html_wrap/frames/polaroids/pixel_trans.gif']='';
+$versions['html_wrap/frames/postage_stamp/BB5.gif']='';
+$versions['html_wrap/frames/postage_stamp/BL5.gif']='';
+$versions['html_wrap/frames/postage_stamp/BR5.gif']='';
+$versions['html_wrap/frames/postage_stamp/LL5.gif']='';
+$versions['html_wrap/frames/postage_stamp/RR5.gif']='';
+$versions['html_wrap/frames/postage_stamp/TL5.gif']='';
+$versions['html_wrap/frames/postage_stamp/TR5.gif']='';
+$versions['html_wrap/frames/postage_stamp/TT5.gif']='';
+$versions['html_wrap/frames/postage_stamp/pixel_trans.gif']='';
+$versions['html_wrap/frames/shadows/BB.png']='';
+$versions['html_wrap/frames/shadows/BBL.png']='';
+$versions['html_wrap/frames/shadows/BR.png']='';
+$versions['html_wrap/frames/shadows/RR.png']='';
+$versions['html_wrap/frames/shadows/RRT.png']='';
+$versions['html_wrap/frames/shadows/frame.def']='4789';
+$versions['html_wrap/frames/shadows/pixel_trans.png']='';
+$versions['html_wrap/frames/simple_book/BB.gif']='';
+$versions['html_wrap/frames/simple_book/BL.gif']='';
+$versions['html_wrap/frames/simple_book/BR.gif']='';
+$versions['html_wrap/frames/simple_book/RR.gif']='';
+$versions['html_wrap/frames/simple_book/TR.gif']='';
+$versions['html_wrap/frames/simple_book/dot.gif']='';
+$versions['html_wrap/frames/simple_book/frame.def']='4522';
+$versions['html_wrap/frames/simple_book/pixel_trans.gif']='';
+$versions['html_wrap/frames/wooden/BB.gif']='';
+$versions['html_wrap/frames/wooden/BL.gif']='';
+$versions['html_wrap/frames/wooden/BR.gif']='';
+$versions['html_wrap/frames/wooden/LL.gif']='';
+$versions['html_wrap/frames/wooden/RR.gif']='';
+$versions['html_wrap/frames/wooden/TL.gif']='';
+$versions['html_wrap/frames/wooden/TR.gif']='';
+$versions['html_wrap/frames/wooden/TT.gif']='';
+$versions['html_wrap/frames/wooden/frame.def']='5600';
+$versions['html_wrap/gallery.footer.default']='11686';
+$versions['html_wrap/gallery.header.default']='11373';
+$versions['html_wrap/general.footer.default']='11686';
+$versions['html_wrap/inline_albumthumb.footer.default']='7304';
+$versions['html_wrap/inline_albumthumb.frame.default']='5409';
+$versions['html_wrap/inline_albumthumb.header.default']='4372';
+$versions['html_wrap/inline_gallerythumb.frame.default']='5409';
+$versions['html_wrap/inline_imagewrap.inc']='13340';
+$versions['html_wrap/inline_moviethumb.frame.default']='5409';
+$versions['html_wrap/inline_photo.footer.default']='7304';
+$versions['html_wrap/inline_photo.frame.default']='5409';
+$versions['html_wrap/inline_photo.header.default']='10999';
+$versions['html_wrap/inline_photothumb.frame.default']='5409';
+$versions['html_wrap/photo.footer.default']='13338';
+$versions['html_wrap/photo.header.default']='11373';
+$versions['html_wrap/slideshow.footer.default']='9875';
+$versions['html_wrap/slideshow.header.default']='11373';
+$versions['html_wrap/stats.footer.default']='10343';
+$versions['html_wrap/stats.header.default']='11682';
+$versions['html_wrap/wrapper.footer.default']='11223';
+$versions['html_wrap/wrapper.header.default']='11400';
+$versions['imagemap.php']='13338';
+$versions['images/BB1.gif']='';
+$versions['images/BL1.gif']='';
+$versions['images/BR1.gif']='';
+$versions['images/LL1.gif']='';
+$versions['images/RR1.gif']='';
+$versions['images/TL1.gif']='';
+$versions['images/TR1.gif']='';
+$versions['images/TT1.gif']='';
+$versions['images/admin_delete.gif']='';
+$versions['images/admin_hide.gif']='';
+$versions['images/admin_highlight.gif']='';
+$versions['images/admin_move.gif']='';
+$versions['images/admin_rotate.gif']='';
+$versions['images/admin_unhide.gif']='';
+$versions['images/albumthumb_BB.gif']='';
+$versions['images/albumthumb_BL.gif']='';
+$versions['images/albumthumb_BR.gif']='';
+$versions['images/albumthumb_RR.gif']='';
+$versions['images/albumthumb_TR.gif']='';
+$versions['images/bar.gif']='';
+$versions['images/collapse.gif']='';
+$versions['images/colorpicker.png']='';
+$versions['images/colorscale.png']='';
+$versions['images/computer.gif']='';
+$versions['images/donate.jpg']='';
+$versions['images/ecard_images/00.gif']='';
+$versions['images/ecard_images/01.gif']='';
+$versions['images/ecard_images/02.gif']='';
+$versions['images/ecard_images/03.gif']='';
+$versions['images/ecard_images/04.gif']='';
+$versions['images/ecard_images/05.gif']='';
+$versions['images/ecard_images/06.gif']='';
+$versions['images/ecard_images/07.gif']='';
+$versions['images/ecard_images/08.gif']='';
+$versions['images/ecard_images/09.gif']='';
+$versions['images/ecard_images/10.gif']='';
+$versions['images/ecard_images/11.gif']='';
+$versions['images/ecard_images/12.gif']='';
+$versions['images/ecard_images/13.gif']='';
+$versions['images/ecard_images/14.gif']='';
+$versions['images/ecard_images/15.gif']='';
+$versions['images/ecard_images/16.gif']='';
+$versions['images/ecard_images/17.gif']='';
+$versions['images/ecard_images/18.gif']='';
+$versions['images/ecard_images/19.gif']='';
+$versions['images/ecard_images/20.gif']='';
+$versions['images/ecard_images/21.gif']='';
+$versions['images/ecard_images/22.gif']='';
+$versions['images/ecard_images/23.gif']='';
+$versions['images/ecard_images/24.gif']='';
+$versions['images/ecard_images/25.gif']='';
+$versions['images/ecard_images/26.gif']='';
+$versions['images/ecard_images/27.gif']='';
+$versions['images/ecard_images/eCards.gif']='';
+$versions['images/ecard_images/ecards_eng.png']='';
+$versions['images/ecard_images/icon_help.gif']='';
+$versions['images/ecard_images/icon_square.gif']='';
+$versions['images/ecard_images/leer.gif']='';
+$versions['images/ecard_images/postcard.gif']='';
+$versions['images/expand.gif']='';
+$versions['images/favicon.ico']='';
+$versions['images/g1-phpBB2-icon.png']='';
+$versions['images/gallery-tag.png']='';
+$versions['images/green_trafficlight.gif']='';
+$versions['images/icons/1leftarrow.gif']='';
+$versions['images/icons/1rightarrow.gif']='';
+$versions['images/icons/2downarrow.gif']='';
+$versions['images/icons/behavior-capplet.gif']='';
+$versions['images/icons/camera.gif']='';
+$versions['images/icons/compressed.png']='';
+$versions['images/icons/decrypted.gif']='';
+$versions['images/icons/delete.gif']='';
+$versions['images/icons/display.gif']='';
+$versions['images/icons/ecard.gif']='';
+$versions['images/icons/editcopy.gif']='';
+$versions['images/icons/exit.gif']='';
+$versions['images/icons/folder_new.gif']='';
+$versions['images/icons/frame_query.gif']='';
+$versions['images/icons/help.gif']='';
+$versions['images/icons/history.gif']='';
+$versions['images/icons/idea.gif']='';
+$versions['images/icons/identity.gif']='';
+$versions['images/icons/imageedit/flip.gif']='';
+$versions['images/icons/imageedit/mirror.gif']='';
+$versions['images/icons/imageedit/rotate-180.gif']='';
+$versions['images/icons/imageedit/rotate-270.gif']='';
+$versions['images/icons/imageedit/rotate-90.gif']='';
+$versions['images/icons/info.gif']='';
+$versions['images/icons/kcmfontinst.gif']='';
+$versions['images/icons/kdf.gif']='';
+$versions['images/icons/nav_first.gif']='';
+$versions['images/icons/nav_last.gif']='';
+$versions['images/icons/nav_next.gif']='';
+$versions['images/icons/nav_prev.gif']='';
+$versions['images/icons/no_idea.gif']='';
+$versions['images/icons/reload.gif']='';
+$versions['images/icons/showcomment.gif']='';
+$versions['images/icons/tab_duplicate.gif']='';
+$versions['images/icons/thumbnail.gif']='';
+$versions['images/icons/tree/join-left.gif']='';
+$versions['images/icons/tree/join-right.gif']='';
+$versions['images/icons/tree/joinbottom-left.gif']='';
+$versions['images/icons/tree/joinbottom-right.gif']='';
+$versions['images/icons/unsortedList.gif']='';
+$versions['images/icons/viewmag1.gif']='';
+$versions['images/icons/window_fullscreen.gif']='';
+$versions['images/icons/window_nofullscreen.gif']='';
+$versions['images/icons/yast_kuser.gif']='';
+$versions['images/icons/yast_sysadmin.gif']='';
+$versions['images/icons/yast_sysadmin2.gif']='';
+$versions['images/movie.thumb.jpg']='';
+$versions['images/nav_dot.gif']='';
+$versions['images/nav_dot_left.gif']='';
+$versions['images/nav_dot_right.gif']='';
+$versions['images/nav_home.gif']='';
+$versions['images/nav_page.gif']='';
+$versions['images/pixel_trans.gif']='';
+$versions['images/red_trafficlight.gif']='';
+$versions['images/simplex-bkg.gif']='';
+$versions['images/tab_bottom.gif']='';
+$versions['images/uploading.gif']='';
+$versions['images/yellow_red_trafficlight.gif']='';
+$versions['images/yellow_trafficlight.gif']='';
+$versions['includes/add_photos/add_applet.cfg']='13338';
+$versions['includes/add_photos/add_applet.inc']='13338';
+$versions['includes/add_photos/add_applet_mini.cfg']='13338';
+$versions['includes/add_photos/add_applet_mini.inc']='13338';
+$versions['includes/add_photos/add_form.inc']='13338';
+$versions['includes/add_photos/add_other.inc']='13338';
+$versions['includes/add_photos/add_url.inc']='13338';
+$versions['includes/add_photos/captionOptions.inc.php']='13338';
+$versions['includes/definitions/albumProperties.php']='13338';
+$versions['includes/definitions/mime.mapping.php']='13580';
+$versions['includes/definitions/navIcons.php']='12232';
+$versions['includes/definitions/services.php']='13338';
+$versions['includes/ecard/templates/ecard_1.tpl']='';
+$versions['includes/ecard/templates/error.htm']='';
+$versions['includes/ecard/templates/leer.htm']='';
+$versions['includes/errors/configure_help.php']='10669';
+$versions['includes/errors/reconfigure.php']='10956';
+$versions['includes/errors/unconfigured.php']='10956';
+$versions['includes/slideshow/applet.cfg']='13338';
+$versions['includes/slideshow/applet.inc']='13338';
+$versions['includes/slideshow/high.inc']='13338';
+$versions['includes/slideshow/low.inc']='13338';
+$versions['includes/stats/stats.inc.php']='13338';
+$versions['index.php']='13338';
+$versions['init.php']='13849';
+$versions['java/GalleryRemoteApplet.jar']='';
+$versions['java/GalleryRemoteAppletMini.jar']='';
+$versions['java/GalleryRemoteHTTPClient.jar']='';
+$versions['java/ImageTools.jar']='';
+$versions['java/applet_img.jar']='';
+$versions['java/metadata-extractor-2.1.jar']='';
+$versions['js/client_sniff.js']='3038';
+$versions['js/fitToWindow.js.php']='13580';
+$versions['js/imagemap.js']='';
+$versions['js/multifile.js.php']='14113';
+$versions['js/sectionTabs.js.php']='13580';
+$versions['js/toggle.js']='';
+$versions['js/wz_jsgraphics.js']='';
+$versions['js/wz_tooltip.js']='';
+$versions['layout/adminAlbumCommands.inc']='13580';
+$versions['layout/adminbox.inc']='10797';
+$versions['layout/breadcrumb.inc']='12188';
+$versions['layout/commentbox.inc']='11822';
+$versions['layout/commentboxbottom.inc']='13339';
+$versions['layout/commentboxtop.inc']='11736';
+$versions['layout/commentdraw.inc']='10595';
+$versions['layout/navigator.inc']='12232';
+$versions['layout/navmicro.inc']='13338';
+$versions['layout/navphoto.inc']='12407';
+$versions['layout/navtablebegin.inc']='6352';
+$versions['layout/navtableend.inc']='6352';
+$versions['layout/navtablemiddle.inc']='6352';
+$versions['layout/searchdraw.inc']='7931';
+$versions['layout/watermarkform.inc']='13361';
+$versions['lib/Form.php']='14311';
+$versions['lib/album.php']='13338';
+$versions['lib/albumItem.php']='13407';
+$versions['lib/colorpicker.php']='13580';
+$versions['lib/content.php']='14311';
+$versions['lib/imageManipulation.php']='13579';
+$versions['lib/lang.php']='13579';
+$versions['lib/mail.php']='13338';
+$versions['lib/messages.php']='13338';
+$versions['lib/popup.php']='13580';
+$versions['lib/setup.php']='14310';
+$versions['lib/url.php']='14310';
+$versions['lib/valchecks.php']='13579';
+$versions['lib/voting.php']='14292';
+$versions['login.php']='13338';
+$versions['manage_users.php']='13338';
+$versions['manifest.inc']='14328';
+$versions['modify_user.php']='13338';
+$versions['move_album.php']='13338';
+$versions['move_photo.php']='13338';
+$versions['multi_create_user.php']='13338';
+$versions['new_password.php']='13338';
+$versions['nls.php']='13338';
+$versions['photo_owner.php']='13338';
+$versions['platform/fs_unix.php']='13338';
+$versions['platform/fs_win32.php']='13338';
+$versions['poll_properties.php']='13338';
+$versions['poll_results.php']='13338';
+$versions['progress_uploading.php']='13338';
+$versions['publish_xp.php']='13338';
+$versions['publish_xp_docs.php']='13338';
+$versions['rearrange.php']='13338';
+$versions['register.php']='13338';
+$versions['rename_album.php']='13338';
+$versions['reset_votes.php']='13338';
+$versions['resize_photo.php']='13338';
+$versions['rotate_photo.php']='13361';
+$versions['rss.php']='13338';
+$versions['save_photos.php']='13409';
+$versions['search.php']='13338';
+$versions['secure.sh']='6294';
+$versions['session.php']='13338';
+$versions['setup/backup_albums.php']='13338';
+$versions['setup/check.inc']='13338';
+$versions['setup/check_imagemagick.php']='13338';
+$versions['setup/check_mail.php']='13338';
+$versions['setup/check_netpbm.php']='13338';
+$versions['setup/check_versions.php']='13579';
+$versions['setup/config_data.inc']='14310';
+$versions['setup/confirm.inc']='13338';
+$versions['setup/constants.inc']='14327';
+$versions['setup/defaults.inc']='14327';
+$versions['setup/diagnostics.php']='13338';
+$versions['setup/frame_test.php']='13338';
+$versions['setup/ghcc.php']='13338';
+$versions['setup/gpl.txt']='13338';
+$versions['setup/index.php']='13338';
+$versions['setup/init.php']='13957';
+$versions['setup/login.inc']='13338';
+$versions['setup/mod_rewrite.template']='5352';
+$versions['setup/php_value.template']='7649';
+$versions['setup/php_value_ok.php']='3374';
+$versions['setup/phpinfo.php']='13338';
+$versions['setup/session_test.php']='13338';
+$versions['setup/write.inc']='13338';
+$versions['skins/bars002/css/screen.css']='12387';
+$versions['skins/bars002/images/navbar.jpg']='';
+$versions['skins/bars002/images/screenshot.jpg']='';
+$versions['skins/bars002/images/topbar.jpg']='';
+$versions['skins/bblue/images/mod_headliner.jpg']='';
+$versions['skins/bblue/images/mod_navbar.jpg']='';
+$versions['skins/bblue/images/mod_toplight_bg.jpg']='';
+$versions['skins/bblue/images/mod_toplight_left.jpg']='';
+$versions['skins/bblue/images/mod_toplight_right.jpg']='';
+$versions['skins/bblue/images/mod_under_hl.jpg']='';
+$versions['skins/bblue/images/screenshot.jpg']='';
+$versions['skins/bgreen/images/mod_headliner.jpg']='';
+$versions['skins/bgreen/images/mod_navbar.jpg']='';
+$versions['skins/bgreen/images/mod_toplight_bg.jpg']='';
+$versions['skins/bgreen/images/mod_toplight_left.gif']='';
+$versions['skins/bgreen/images/mod_toplight_left.jpg']='';
+$versions['skins/bgreen/images/mod_toplight_right.gif']='';
+$versions['skins/bgreen/images/mod_toplight_right.jpg']='';
+$versions['skins/bgreen/images/mod_under_hl.jpg']='';
+$versions['skins/bgreen/images/screenshot.jpg']='';
+$versions['skins/bgreen2/images/mod_headliner.jpg']='';
+$versions['skins/bgreen2/images/mod_navbar.jpg']='';
+$versions['skins/bgreen2/images/mod_toplight_bg.jpg']='';
+$versions['skins/bgreen2/images/mod_toplight_left.jpg']='';
+$versions['skins/bgreen2/images/mod_toplight_right.jpg']='';
+$versions['skins/bgreen2/images/mod_under_hl.jpg']='';
+$versions['skins/bgreen2/images/screenshot.jpg']='';
+$versions['skins/black/images/mod_navbar.jpg']='';
+$versions['skins/black/images/mod_titlebar.jpg']='';
+$versions['skins/black/images/screenshot.jpg']='';
+$versions['skins/bluemod/images/mod_background.jpg']='';
+$versions['skins/bluemod/images/mod_navbar.jpg']='';
+$versions['skins/bluemod/images/mod_titlebar.jpg']='';
+$versions['skins/bluemod/images/mod_titlemid.jpg']='';
+$versions['skins/bluemod/images/screenshot.jpg']='';
+$versions['skins/bpurple/images/mod_headliner.jpg']='';
+$versions['skins/bpurple/images/mod_navbar.jpg']='';
+$versions['skins/bpurple/images/mod_toplight_bg.jpg']='';
+$versions['skins/bpurple/images/mod_toplight_left.jpg']='';
+$versions['skins/bpurple/images/mod_toplight_right.jpg']='';
+$versions['skins/bpurple/images/mod_under_hl.jpg']='';
+$versions['skins/bpurple/images/screenshot.jpg']='';
+$versions['skins/bred/images/mod_headliner.jpg']='';
+$versions['skins/bred/images/mod_navbar.jpg']='';
+$versions['skins/bred/images/mod_toplight_bg.jpg']='';
+$versions['skins/bred/images/mod_toplight_left.gif']='';
+$versions['skins/bred/images/mod_toplight_left.jpg']='';
+$versions['skins/bred/images/mod_toplight_right.gif']='';
+$versions['skins/bred/images/mod_toplight_right.jpg']='';
+$versions['skins/bred/images/mod_under_hl.jpg']='';
+$versions['skins/bred/images/screenshot.jpg']='';
+$versions['skins/bubbles/images/mod_navbar.jpg']='';
+$versions['skins/bubbles/images/mod_toplight_bg.jpg']='';
+$versions['skins/bubbles/images/mod_toplight_left.jpg']='';
+$versions['skins/bubbles/images/mod_toplight_right.jpg']='';
+$versions['skins/bubbles/images/screenshot.jpg']='';
+$versions['skins/butterfly_green/images/mod_box.jpg']='';
+$versions['skins/butterfly_green/images/mod_headliner.jpg']='';
+$versions['skins/butterfly_green/images/mod_navbar.jpg']='';
+$versions['skins/butterfly_green/images/mod_toplight_bg.jpg']='';
+$versions['skins/butterfly_green/images/mod_toplight_left.jpg']='';
+$versions['skins/butterfly_green/images/screenshot.jpg']='';
+$versions['skins/greenpurple/images/mod_descbg.jpg']='';
+$versions['skins/greenpurple/images/mod_navbar.jpg']='';
+$versions['skins/greenpurple/images/mod_navbox.jpg']='';
+$versions['skins/greenpurple/images/mod_titlebar.jpg']='';
+$versions['skins/greenpurple/images/mod_titlelft.jpg']='';
+$versions['skins/greenpurple/images/mod_titlemid.jpg']='';
+$versions['skins/greenpurple/images/mod_titlert.jpg']='';
+$versions['skins/greenpurple/images/screenshot.jpg']='';
+$versions['skins/hotred/images/mod_descbg.jpg']='';
+$versions['skins/hotred/images/mod_descbox.jpg']='';
+$versions['skins/hotred/images/mod_navbar.jpg']='';
+$versions['skins/hotred/images/mod_navbox.jpg']='';
+$versions['skins/hotred/images/mod_titlebar.jpg']='';
+$versions['skins/hotred/images/mod_titlemid.jpg']='';
+$versions['skins/hotred/images/screenshot.jpg']='';
+$versions['skins/jenskin/css/screen.css']='14310';
+$versions['skins/jenskin/images/screenshot.jpg']='';
+$versions['skins/jenskin/images/simplex-bkg.gif']='';
+$versions['skins/lilac/images/mod_descbg.jpg']='';
+$versions['skins/lilac/images/mod_navbar.jpg']='';
+$versions['skins/lilac/images/mod_navbox.jpg']='';
+$versions['skins/lilac/images/mod_titlebar.jpg']='';
+$versions['skins/lilac/images/mod_titlemid.jpg']='';
+$versions['skins/lilac/images/screenshot.jpg']='';
+$versions['skins/madmod1/images/background.jpg']='';
+$versions['skins/madmod1/images/background9.jpg']='';
+$versions['skins/madmod1/images/bar.gif']='';
+$versions['skins/madmod1/images/button9.jpg']='';
+$versions['skins/madmod1/images/gallery9.jpg']='';
+$versions['skins/madmod1/images/headbg9.jpg']='';
+$versions['skins/madmod1/images/navbg9.jpg']='';
+$versions['skins/madmod1/images/next9.jpg']='';
+$versions['skins/madmod1/images/prev9.jpg']='';
+$versions['skins/madmod1/images/screenshot.jpg']='';
+$versions['skins/madmod1/images/titlehead9.jpg']='';
+$versions['skins/madmod1/tpl/album.footer.tpl']='';
+$versions['skins/madmod1/tpl/album.header.tpl']='7430';
+$versions['skins/madmod1/tpl/breadcrumb.tpl']='8909';
+$versions['skins/madmod1/tpl/footer.tpl']='';
+$versions['skins/madmod1/tpl/gallery.footer.tpl']='';
+$versions['skins/madmod1/tpl/gallery.header.tpl']='7430';
+$versions['skins/madmod1/tpl/header.tpl']='';
+$versions['skins/madmod1/tpl/menu.tpl']='';
+$versions['skins/madmod1/tpl/navigator.tpl']='';
+$versions['skins/madmod1/tpl/navphoto.tpl']='';
+$versions['skins/madmod1/tpl/photo.footer.tpl']='';
+$versions['skins/madmod1/tpl/photo.header.tpl']='7430';
+$versions['skins/madmod1/tpl/search.footer.tpl']='';
+$versions['skins/madmod1/tpl/search.header.tpl']='';
+$versions['skins/madmod1/tpl/slideshow.footer.tpl']='';
+$versions['skins/madmod1/tpl/slideshow.header.tpl']='7430';
+$versions['skins/paint/images/mod_background.jpg']='';
+$versions['skins/paint/images/mod_descbg.jpg']='';
+$versions['skins/paint/images/mod_navbar.jpg']='';
+$versions['skins/paint/images/mod_toplight_bg.jpg']='';
+$versions['skins/paint/images/mod_toplight_left.gif']='';
+$versions['skins/paint/images/mod_toplight_right.gif']='';
+$versions['skins/paint/images/screenshot.jpg']='';
+$versions['skins/redmarble/images/mod_background.jpg']='';
+$versions['skins/redmarble/images/mod_navbar.jpg']='';
+$versions['skins/redmarble/images/mod_titlebar.jpg']='';
+$versions['skins/redmarble/images/mod_titlemid.jpg']='';
+$versions['skins/redmarble/images/screenshot.jpg']='';
+$versions['skins/slick/images/mod_background.jpg']='';
+$versions['skins/slick/images/mod_descbg.jpg']='';
+$versions['skins/slick/images/mod_headliner.jpg']='';
+$versions['skins/slick/images/mod_navbar.jpg']='';
+$versions['skins/slick/images/mod_pixel.gif']='';
+$versions['skins/slick/images/mod_title.jpg']='';
+$versions['skins/slick/images/mod_title_bg.jpg']='';
+$versions['skins/slick/images/mod_title_left.jpg']='';
+$versions['skins/slick/images/mod_title_right.jpg']='';
+$versions['skins/slick/images/mod_titlemid.jpg']='';
+$versions['skins/slick/images/mod_toplight_bg.jpg']='';
+$versions['skins/slick/images/mod_toplight_left.jpg']='';
+$versions['skins/slick/images/mod_toplight_right.jpg']='';
+$versions['skins/slick/images/screenshot.jpg']='';
+$versions['skins/suit/images/mod_navbar.jpg']='';
+$versions['skins/suit/images/mod_titlebar.jpg']='';
+$versions['skins/suit/images/mod_titlemid.jpg']='';
+$versions['skins/suit/images/screenshot.jpg']='';
+$versions['skins/white1/images/mod_navbar.jpg']='';
+$versions['skins/white1/images/mod_titlebar.jpg']='';
+$versions['skins/white1/images/mod_titlemid.jpg']='';
+$versions['skins/white1/images/screenshot.jpg']='';
+$versions['skins/yellow/images/mod_navbar.jpg']='';
+$versions['skins/yellow/images/mod_titlebar.jpg']='';
+$versions['skins/yellow/images/mod_titlemid.jpg']='';
+$versions['skins/yellow/images/screenshot.jpg']='';
+$versions['slideshow.php']='13338';
+$versions['sort_album.php']='13338';
+$versions['stamp_preview.php']='13338';
+$versions['stats-wizard.php']='13338';
+$versions['stats.php']='12188';
+$versions['upgrade_album.php']='13338';
+$versions['upgrade_users.php']='13338';
+$versions['user_preferences.php']='13849';
+$versions['util.php']='14311';
+$versions['view_album.php']='14311';
+$versions['view_comments.php']='13338';
+$versions['view_photo.php']='14311';
+$versions['view_photo_properties.php']='13338';
+$versions['watermark_album.php']='13338';
 ?>
diff -Naur gallery-1.5.3/modify_user.php gallery-1.5.4/modify_user.php
--- gallery-1.5.3/modify_user.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/modify_user.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: modify_user.php,v 1.48.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: modify_user.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/move_album.php gallery-1.5.4/move_album.php
--- gallery-1.5.3/move_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/move_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: move_album.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
+* $Id: move_album.php 13338 2006-03-27 15:32:14Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/move_photo.php gallery-1.5.4/move_photo.php
--- gallery-1.5.3/move_photo.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/move_photo.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: move_photo.php,v 1.99.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: move_photo.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/multi_create_user.php gallery-1.5.4/multi_create_user.php
--- gallery-1.5.3/multi_create_user.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/multi_create_user.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * This additional file was created by Joan McGalliard
  *	http://www.mcgalliard.org
  *
- * $Id: multi_create_user.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: multi_create_user.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/new_password.php gallery-1.5.4/new_password.php
--- gallery-1.5.3/new_password.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/new_password.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: new_password.php,v 1.20.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: new_password.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/nls.php gallery-1.5.4/nls.php
--- gallery-1.5.3/nls.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/nls.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: nls.php,v 1.43.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: nls.php 13338 2006-03-27 15:32:14Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/photo_owner.php gallery-1.5.4/photo_owner.php
--- gallery-1.5.3/photo_owner.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/photo_owner.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: photo_owner.php,v 1.27.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: photo_owner.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/platform/fs_unix.php gallery-1.5.4/platform/fs_unix.php
--- gallery-1.5.3/platform/fs_unix.php	2006-03-27 17:32:09.000000000 +0200
+++ gallery-1.5.4/platform/fs_unix.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: fs_unix.php,v 1.36.2.1 2006/03/27 15:32:09 jenst Exp $
+ * $Id: fs_unix.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/platform/fs_win32.php gallery-1.5.4/platform/fs_win32.php
--- gallery-1.5.3/platform/fs_win32.php	2006-03-27 17:32:09.000000000 +0200
+++ gallery-1.5.4/platform/fs_win32.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: fs_win32.php,v 1.38.2.1 2006/03/27 15:32:09 jenst Exp $
+ * $Id: fs_win32.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/po/change_version.sh gallery-1.5.4/po/change_version.sh
--- gallery-1.5.3/po/change_version.sh	2006-03-27 17:32:10.000000000 +0200
+++ gallery-1.5.4/po/change_version.sh	2006-03-27 17:32:14.000000000 +0200
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $Id: change_version.sh,v 1.11.2.1 2006/03/27 15:32:10 jenst Exp $
+# $Id: change_version.sh 13338 2006-03-27 15:32:14Z jenst $
 
 NEW_VERSION="1.5.2"
 
diff -Naur gallery-1.5.3/po/copyright-header.txt gallery-1.5.4/po/copyright-header.txt
--- gallery-1.5.3/po/copyright-header.txt	2006-03-27 17:32:10.000000000 +0200
+++ gallery-1.5.4/po/copyright-header.txt	2006-03-27 17:32:14.000000000 +0200
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 #
-# $Id: copyright-header.txt,v 1.3.2.1 2006/03/27 15:32:10 jenst Exp $
+# $Id: copyright-header.txt 13338 2006-03-27 15:32:14Z jenst $
 #
 # @version	<Version>
 # @package      Languagepack
diff -Naur gallery-1.5.3/po/create_po_template.sh gallery-1.5.4/po/create_po_template.sh
--- gallery-1.5.3/po/create_po_template.sh	2005-11-05 02:53:07.000000000 +0100
+++ gallery-1.5.4/po/create_po_template.sh	2005-11-05 02:53:07.000000000 +0100
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: create_po_template.sh,v 1.12 2005/11/05 01:53:07 jenst Exp $
+# $Id: create_po_template.sh 11924 2005-11-05 01:53:07Z jenst $
 #
 #note: requires xgettext version 0.12.1 or greater
 #
diff -Naur gallery-1.5.3/po/CREDITS gallery-1.5.4/po/CREDITS
--- gallery-1.5.3/po/CREDITS	2004-01-15 16:58:18.000000000 +0100
+++ gallery-1.5.4/po/CREDITS	2004-01-15 16:58:19.000000000 +0100
@@ -1,4 +1,4 @@
-$Id: CREDITS,v 1.25 2004/01/15 15:58:18 jenst Exp $
+$Id: CREDITS 5091 2004-01-15 15:58:19Z jenst $
 
 I am very thankful to following People :
 
diff -Naur gallery-1.5.3/po/edit_changelog.sh gallery-1.5.4/po/edit_changelog.sh
--- gallery-1.5.3/po/edit_changelog.sh	2005-12-23 20:20:39.000000000 +0100
+++ gallery-1.5.4/po/edit_changelog.sh	2005-12-23 20:20:39.000000000 +0100
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $Id: edit_changelog.sh,v 1.12 2005/12/23 19:20:39 jenst Exp $
+# $Id: edit_changelog.sh 12386 2005-12-23 19:20:39Z jenst $
 
 esc=`echo -en "\033"`
 tab="${esc}[5G"
diff -Naur gallery-1.5.3/po/gallery-common.pot gallery-1.5.4/po/gallery-common.pot
--- gallery-1.5.3/po/gallery-common.pot	2006-04-05 00:32:03.000000000 +0200
+++ gallery-1.5.4/po/gallery-common.pot	2006-08-14 10:05:15.000000000 +0200
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 #
-# $Id: gallery-common.pot,v 1.13.2.3 2006/04/04 22:32:03 jenst Exp $
+# $Id: gallery-common.pot 14313 2006-08-14 08:05:15Z jenst $
 #
 # @version	<Version>
 # @package      Languagepack
@@ -27,7 +27,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: gallery-translations@lists.sourceforge.net\n"
-"POT-Creation-Date: 2006-04-05 00:31+0200\n"
+"POT-Creation-Date: 2006-08-14 10:04+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -445,19 +445,19 @@
 msgid "Invert Selection"
 msgstr ""
 
-#: ../lib/Form.php:237
+#: ../lib/Form.php:238
 msgid "Colorpicker"
 msgstr ""
 
-#: ../lib/colorpicker.php:40
+#: ../lib/colorpicker.php:42
 msgid "Color Picker"
 msgstr ""
 
-#: ../lib/colorpicker.php:52
+#: ../lib/colorpicker.php:54
 msgid "The Options window has closed. Exiting."
 msgstr ""
 
-#: ../lib/colorpicker.php:58
+#: ../lib/colorpicker.php:60
 msgid "This window must be called from an Options window"
 msgstr ""
 
@@ -563,55 +563,55 @@
 msgid "The original look and feel."
 msgstr ""
 
-#: ../lib/content.php:986 ../lib/content.php:990
+#: ../lib/content.php:988 ../lib/content.php:992
 msgid "unknown"
 msgstr ""
 
-#: ../lib/content.php:994
+#: ../lib/content.php:996
 #, php-format
 msgid "Version: %s"
 msgstr ""
 
-#: ../lib/content.php:996
+#: ../lib/content.php:998
 #, php-format
 msgid "Last Update: %s"
 msgstr ""
 
-#: ../lib/content.php:1014 ../lib/content.php:1020
+#: ../lib/content.php:1016 ../lib/content.php:1022
 msgid "None"
 msgstr ""
 
-#: ../lib/content.php:1015 ../lib/content.php:1021
+#: ../lib/content.php:1017 ../lib/content.php:1023
 msgid "Dots"
 msgstr ""
 
-#: ../lib/content.php:1016 ../lib/content.php:1022
+#: ../lib/content.php:1018 ../lib/content.php:1024
 msgid "Solid"
 msgstr ""
 
-#: ../lib/content.php:1020
+#: ../lib/content.php:1022
 msgid "No frames"
 msgstr ""
 
-#: ../lib/content.php:1021
+#: ../lib/content.php:1023
 msgid "Just a simple dashed border around the thumb."
 msgstr ""
 
-#: ../lib/content.php:1022
+#: ../lib/content.php:1024
 msgid "Just a simple solid border around the thumb."
 msgstr ""
 
-#: ../lib/content.php:1044
+#: ../lib/content.php:1046
 #, php-format
 msgid "Skipping %s."
 msgstr ""
 
-#: ../lib/content.php:1050
+#: ../lib/content.php:1052
 #, php-format
 msgid "Can't open %s"
 msgstr ""
 
-#: ../lib/content.php:1125 ../lib/content.php:1145
+#: ../lib/content.php:1127 ../lib/content.php:1147
 msgid "Not valid yet"
 msgstr ""
 
@@ -629,80 +629,80 @@
 msgid "target file size %d kbytes"
 msgstr ""
 
-#: ../lib/imageManipulation.php:100 ../lib/imageManipulation.php:127
+#: ../lib/imageManipulation.php:103 ../lib/imageManipulation.php:130
 #, php-format
 msgid "-> file size %d kbytes"
 msgstr ""
 
-#: ../lib/imageManipulation.php:101
+#: ../lib/imageManipulation.php:104
 #, php-format
 msgid "trying quality %d%%"
 msgstr ""
 
-#: ../lib/imageManipulation.php:128
+#: ../lib/imageManipulation.php:131
 msgid "Done."
 msgstr ""
 
-#: ../lib/imageManipulation.php:220 ../lib/imageManipulation.php:456
-#: ../lib/imageManipulation.php:508 ../lib/imageManipulation.php:781
+#: ../lib/imageManipulation.php:223 ../lib/imageManipulation.php:459
+#: ../lib/imageManipulation.php:511 ../lib/imageManipulation.php:793
 msgid "You have no graphics package configured for use!"
 msgstr ""
 
-#: ../lib/imageManipulation.php:224
+#: ../lib/imageManipulation.php:227
 msgid "No watermark name specified!"
 msgstr ""
 
-#: ../lib/imageManipulation.php:474
+#: ../lib/imageManipulation.php:477
 msgid "Cropping Image"
 msgstr ""
 
-#: ../lib/imageManipulation.php:538
+#: ../lib/imageManipulation.php:541
 #, php-format
 msgid "Generating squared Version to %dpx"
 msgstr ""
 
-#: ../lib/imageManipulation.php:559
+#: ../lib/imageManipulation.php:562
 msgid "No Cropping Done"
 msgstr ""
 
-#: ../lib/imageManipulation.php:569
+#: ../lib/imageManipulation.php:572
 #, php-format
 msgid "Call to %s failed in %s for file %s!"
 msgstr ""
 
-#: ../lib/imageManipulation.php:573
+#: ../lib/imageManipulation.php:576
 #, php-format
 msgid "File %s type %d."
 msgstr ""
 
-#: ../lib/imageManipulation.php:610 ../lib/imageManipulation.php:634
+#: ../lib/imageManipulation.php:613 ../lib/imageManipulation.php:637
 #, php-format
 msgid "Files with type %s are not supported by Gallery with netPBM"
 msgstr ""
 
-#: ../lib/imageManipulation.php:683
+#: ../lib/imageManipulation.php:686
 #, php-format
 msgid "Compressing image: %s"
 msgstr ""
 
-#: ../lib/imageManipulation.php:688
+#: ../lib/imageManipulation.php:691
 msgid "Not all necessary params for resizing given."
 msgstr ""
 
-#: ../lib/imageManipulation.php:689
+#: ../lib/imageManipulation.php:692
 #, php-format
 msgid "Resizing params: src: %s, dest : %s, targetSize: %s"
 msgstr ""
 
-#: ../lib/imageManipulation.php:724
+#: ../lib/imageManipulation.php:735
 msgid "Unable to preserve EXIF data (jhead not installed)"
 msgstr ""
 
-#: ../lib/imageManipulation.php:766
+#: ../lib/imageManipulation.php:778
 msgid "Using IM high quality"
 msgstr ""
 
-#: ../lib/imageManipulation.php:770
+#: ../lib/imageManipulation.php:782
 msgid "Not using IM high quality"
 msgstr ""
 
@@ -810,8 +810,8 @@
 msgid "Password for the newly created user."
 msgstr ""
 
-#: ../lib/mail.php:194 ../lib/setup.php:1489 ../lib/setup.php:1491
-#: ../lib/setup.php:1495 ../lib/setup.php:1503
+#: ../lib/mail.php:194 ../lib/setup.php:1484 ../lib/setup.php:1486
+#: ../lib/setup.php:1490 ../lib/setup.php:1498
 msgid "Username"
 msgstr ""
 
@@ -886,451 +886,451 @@
 msgid "Powered by %s v%s"
 msgstr ""
 
-#: ../lib/setup.php:147
+#: ../lib/setup.php:140
 msgid "Please retype your password here"
 msgstr ""
 
-#: ../lib/setup.php:161 ../lib/setup.php:1092
+#: ../lib/setup.php:154 ../lib/setup.php:1088
 msgid "Name"
 msgstr ""
 
-#: ../lib/setup.php:162 ../lib/setup.php:1092
+#: ../lib/setup.php:155 ../lib/setup.php:1088
 msgid "Value"
 msgstr ""
 
-#: ../lib/setup.php:191 ../lib/setup.php:234
+#: ../lib/setup.php:184 ../lib/setup.php:227
 msgid "No content"
 msgstr ""
 
-#: ../lib/setup.php:361
+#: ../lib/setup.php:354
 #, php-format
 msgid "Missing value: %s"
 msgstr ""
 
-#: ../lib/setup.php:379
+#: ../lib/setup.php:372
 msgid "<b>exec()</b> is enabled on this server."
 msgstr ""
 
-#: ../lib/setup.php:397
+#: ../lib/setup.php:390
 msgid "I can read your <b>.htaccess</b> file."
 msgstr ""
 
-#: ../lib/setup.php:419
+#: ../lib/setup.php:412
 #, php-format
 msgid "PHP v%s is OK."
 msgstr ""
 
-#: ../lib/setup.php:434
+#: ../lib/setup.php:428
 msgid "<b>mod_rewrite</b> is enabled."
 msgstr ""
 
-#: ../lib/setup.php:457
+#: ../lib/setup.php:451
 msgid "Can't find <i>jhead</i>"
 msgstr ""
 
-#: ../lib/setup.php:459
+#: ../lib/setup.php:453
 msgid "<b>jhead</b> binary located."
 msgstr ""
 
-#: ../lib/setup.php:497
+#: ../lib/setup.php:491
 msgid "Without pnmcomp and pamcomp gallery will not be able to watermark images, unless you use ImageMagick and have the composite binary installed."
 msgstr ""
 
-#: ../lib/setup.php:505
+#: ../lib/setup.php:499
 msgid "NetPBM not being used in this installation."
 msgstr ""
 
-#: ../lib/setup.php:510 ../lib/setup.php:605
+#: ../lib/setup.php:504 ../lib/setup.php:599
 msgid "Cannot verify this path (it's not in your open_basedir list)."
 msgstr ""
 
-#: ../lib/setup.php:544 ../lib/setup.php:622
+#: ../lib/setup.php:538 ../lib/setup.php:616
 #, php-format
 msgid "Missing optional binary %s. %s"
 msgstr ""
 
-#: ../lib/setup.php:547 ../lib/setup.php:625
+#: ../lib/setup.php:541 ../lib/setup.php:619
 #, php-format
 msgid "Can't find %s!"
 msgstr ""
 
-#: ../lib/setup.php:553 ../lib/setup.php:631
+#: ../lib/setup.php:547 ../lib/setup.php:625
 #, php-format
 msgid "%s is not executable!"
 msgstr ""
 
-#: ../lib/setup.php:563 ../lib/setup.php:570
+#: ../lib/setup.php:557 ../lib/setup.php:564
 #, php-format
 msgid "%d of %d NetPBM binaries located."
 msgstr ""
 
-#: ../lib/setup.php:594
+#: ../lib/setup.php:588
 msgid "Without composite gallery will not be able to watermark images, except you use NetPBM and have the pnmcomp binary installed."
 msgstr ""
 
-#: ../lib/setup.php:600
+#: ../lib/setup.php:594
 msgid "ImageMagick not being used in this installation."
 msgstr ""
 
-#: ../lib/setup.php:641 ../lib/setup.php:648
+#: ../lib/setup.php:635 ../lib/setup.php:642
 #, php-format
 msgid "%d of %d ImageMagick binaries located."
 msgstr ""
 
-#: ../lib/setup.php:670
+#: ../lib/setup.php:664
 msgid "Can't find <i>jpegtran</i>!"
 msgstr ""
 
-#: ../lib/setup.php:672
+#: ../lib/setup.php:666
 msgid "<b>jpegtran</b> binary located."
 msgstr ""
 
-#: ../lib/setup.php:683
+#: ../lib/setup.php:677
 msgid "PHP has <b>GNU gettext</b> support."
 msgstr ""
 
-#: ../lib/setup.php:685
+#: ../lib/setup.php:679
 msgid "PHP does not have <b>GNU gettext</b> support."
 msgstr ""
 
-#: ../lib/setup.php:699
+#: ../lib/setup.php:693
 msgid "No languages found."
 msgstr ""
 
-#: ../lib/setup.php:701
+#: ../lib/setup.php:695
 msgid "It seems you didn't download any additional languages. This is not a problem! Gallery will appear just in English. Note: If this is not true, check that all files in locale folder are readable for the webserver, or contact the Gallery Team."
 msgstr ""
 
-#: ../lib/setup.php:704
+#: ../lib/setup.php:698
 #, php-format
 msgid "%d languages are available.  If you are missing a language please visit the %sGallery download page%s."
 msgstr ""
 
-#: ../lib/setup.php:726
+#: ../lib/setup.php:721
 #, php-format
 msgid "You can check for more recent versions by visiting %s."
 msgstr ""
 
-#: ../lib/setup.php:727
+#: ../lib/setup.php:722
 #, php-format
 msgid "This version of %s was released on %s."
 msgstr ""
 
-#: ../lib/setup.php:729
+#: ../lib/setup.php:725
 #, php-format
 msgid "This is a development build of %s that was released on %s."
 msgstr ""
 
-#: ../lib/setup.php:738
+#: ../lib/setup.php:734
 msgid "Please check regularly for updates."
 msgstr ""
 
-#: ../lib/setup.php:757
+#: ../lib/setup.php:753
 msgid "All gallery locales are available on this host."
 msgstr ""
 
-#: ../lib/setup.php:760
+#: ../lib/setup.php:756
 #, php-format
 msgid "There are %d locales that Gallery was unable to locate. You may need to select manually date formats. "
 msgstr ""
 
-#: ../lib/setup.php:766
+#: ../lib/setup.php:762
 #, php-format
 msgid "Dates in %d languages may not be formatted properly, because the corresponding locales are missing. You may need to select manually the date formats for these."
 msgstr ""
 
-#: ../lib/setup.php:771
+#: ../lib/setup.php:767
 #, php-format
 msgid "We were unable to detect any locales.  However, your PHP installation is configured with the %s restriction so this may be interfering with the way that we detect locales.  Unfortunately this means the date format will not change for different languages.  However, it is OK to continue."
 msgstr ""
 
-#: ../lib/setup.php:775
+#: ../lib/setup.php:771
 #, php-format
 msgid "We were unable to detect any system locales. Multi-language functions will be disabled. Please install the corresponding locales or ask your administrator to do this. This problem is known on %s systems. In this case please have a look at this %sDebian locale HowTo%s."
 msgstr ""
 
-#: ../lib/setup.php:777
+#: ../lib/setup.php:773
 msgid "Only the default locale for this machine is available, so date format will not change for different languages."
 msgstr ""
 
-#: ../lib/setup.php:936 ../lib/setup.php:1016
+#: ../lib/setup.php:932 ../lib/setup.php:1012
 msgid "Advanced"
 msgstr ""
 
-#: ../lib/setup.php:936
+#: ../lib/setup.php:932
 #, php-format
 msgid "<b>System</b> locale selection required"
 msgstr ""
 
-#: ../lib/setup.php:937
+#: ../lib/setup.php:933
 msgid "There is more than one suitable <b>system</b> locale installed on your machine for the following languages.  Please chose the one you think is most suitable."
 msgstr ""
 
-#: ../lib/setup.php:939 ../lib/setup.php:1019
+#: ../lib/setup.php:935 ../lib/setup.php:1015
 msgid "This is <b>only</b> for date & time format. You only need to edit the languages you enabled above"
 msgstr ""
 
-#: ../lib/setup.php:950 ../lib/setup.php:974
+#: ../lib/setup.php:946 ../lib/setup.php:970
 msgid "System locale"
 msgstr ""
 
-#: ../lib/setup.php:1016
+#: ../lib/setup.php:1012
 #, php-format
 msgid "<b>System</b> locale problems"
 msgstr ""
 
-#: ../lib/setup.php:1017
+#: ../lib/setup.php:1013
 msgid "There are no apparently suitable <b>system</b> locales installed on your machine for the following languages.  Please choose the one you think is most suitable."
 msgstr ""
 
-#: ../lib/setup.php:1060
+#: ../lib/setup.php:1056
 msgid "<b>safe_mode</b> is off."
 msgstr ""
 
-#: ../lib/setup.php:1072
+#: ../lib/setup.php:1068
 msgid "<b>magic_quotes</b> are off."
 msgstr ""
 
-#: ../lib/setup.php:1090
+#: ../lib/setup.php:1086
 #, php-format
 msgid "In %s, missing %s in row %d with %s %s."
 msgstr ""
 
-#: ../lib/setup.php:1091 ../lib/setup.php:1100 ../lib/setup.php:1105
+#: ../lib/setup.php:1087 ../lib/setup.php:1096 ../lib/setup.php:1101
 msgid "Vote words and values"
 msgstr ""
 
-#: ../lib/setup.php:1099
+#: ../lib/setup.php:1095
 #, php-format
 msgid "In %s, blank in row %d."
 msgstr ""
 
-#: ../lib/setup.php:1104
+#: ../lib/setup.php:1100
 #, php-format
 msgid "In %s, for name %s (row %d) value %s should be a positive whole number"
 msgstr ""
 
-#: ../lib/setup.php:1126
+#: ../lib/setup.php:1122
 msgid "<b>register_globals</b> is off."
 msgstr ""
 
-#: ../lib/setup.php:1297
+#: ../lib/setup.php:1292
 msgid "Your passwords do not match!"
 msgstr ""
 
-#: ../lib/setup.php:1308
+#: ../lib/setup.php:1303
 msgid "OK"
 msgstr ""
 
-#: ../lib/setup.php:1313
+#: ../lib/setup.php:1308
 msgid "Valid admin email address given."
 msgstr ""
 
-#: ../lib/setup.php:1320
+#: ../lib/setup.php:1315
 msgid "You must specify valid admin email addresses"
 msgstr ""
 
-#: ../lib/setup.php:1328
+#: ../lib/setup.php:1323
 #, php-format
 msgid "%s is not a valid email address."
 msgstr ""
 
-#: ../lib/setup.php:1337
+#: ../lib/setup.php:1332
 msgid "Valid sender email address given."
 msgstr ""
 
-#: ../lib/setup.php:1339
+#: ../lib/setup.php:1334
 msgid "You must specify a valid sender email address"
 msgstr ""
 
-#: ../lib/setup.php:1342
+#: ../lib/setup.php:1337
 #, php-format
 msgid "You must include %s in your welcome email"
 msgstr ""
 
-#: ../lib/setup.php:1347
+#: ../lib/setup.php:1342
 #, php-format
 msgid "You must include %s or %s in your welcome email"
 msgstr ""
 
-#: ../lib/setup.php:1371
+#: ../lib/setup.php:1366
 #, php-format
 msgid "The following files are out of date, corrupted or missing:<br>&nbsp;&nbsp;&nbsp;&nbsp;%s."
 msgstr ""
 
-#: ../lib/setup.php:1373
+#: ../lib/setup.php:1368
 msgid "This should be fixed before proceeding"
 msgstr ""
 
-#: ../lib/setup.php:1374 ../lib/setup.php:1378
+#: ../lib/setup.php:1369 ../lib/setup.php:1373
 #, php-format
 msgid "Look at %sCheck Versions%s for more details."
 msgstr ""
 
-#: ../lib/setup.php:1377
+#: ../lib/setup.php:1372
 #, php-format
-msgid "%d files are more recent than expected.  This is OK if you are using pre-release, beta, CVS or modified code."
+msgid "%d files are more recent than expected.  This is OK if you are using pre-release, beta, SVN or modified code."
 msgstr ""
 
-#: ../lib/setup.php:1382
+#: ../lib/setup.php:1377
 #, php-format
 msgid "All tested files up-to-date."
 msgstr ""
 
-#: ../lib/setup.php:1384
+#: ../lib/setup.php:1379
 #, php-format
 msgid "All %d tested files up-to-date."
 msgstr ""
 
-#: ../lib/setup.php:1393
+#: ../lib/setup.php:1388
 #, php-format
 msgid "this is new in version %s"
 msgstr ""
 
-#: ../lib/setup.php:1398
+#: ../lib/setup.php:1393
 #, php-format
 msgid "Return to %s."
 msgstr ""
 
-#: ../lib/setup.php:1399
+#: ../lib/setup.php:1394
 msgid "Configuration Wizard"
 msgstr ""
 
-#: ../lib/setup.php:1448
+#: ../lib/setup.php:1443
 #, php-format
 msgid "You must enter a password for the %s account."
 msgstr ""
 
-#: ../lib/setup.php:1453
+#: ../lib/setup.php:1448
 #, php-format
 msgid "It seems you've already configured Gallery, because there is one admin account, but its not called %s."
 msgstr ""
 
-#: ../lib/setup.php:1456
+#: ../lib/setup.php:1451
 #, php-format
 msgid "It seems you've already configured Gallery, because there are %d admin accounts, but no user called %s."
 msgstr ""
 
-#: ../lib/setup.php:1458
+#: ../lib/setup.php:1453
 #, php-format
 msgid "You don't have to enter a password.  But if you do, Gallery will create an administrator account called %s with that password."
 msgstr ""
 
-#: ../lib/setup.php:1467
+#: ../lib/setup.php:1462
 #, php-format
 msgid "It seems you've already configured Gallery, because the %s user exists.  You don't have to enter a password.  But if you do, Gallery will change the password for the %s user."
 msgstr ""
 
-#: ../lib/setup.php:1474
+#: ../lib/setup.php:1469
 msgid "Admin password"
 msgstr ""
 
-#: ../lib/setup.php:1489 ../lib/setup.php:1491 ../lib/setup.php:1493
-#: ../lib/setup.php:1501
+#: ../lib/setup.php:1484 ../lib/setup.php:1486 ../lib/setup.php:1488
+#: ../lib/setup.php:1496
 msgid "Full Name"
 msgstr ""
 
-#: ../lib/setup.php:1497
+#: ../lib/setup.php:1492
 msgid "Full name that you can click on to send email (mailto:)"
 msgstr ""
 
-#: ../lib/setup.php:1499
+#: ../lib/setup.php:1494
 msgid "Username that you can click on to send email (mailto:)"
 msgstr ""
 
-#: ../lib/setup.php:1501 ../lib/setup.php:1503
+#: ../lib/setup.php:1496 ../lib/setup.php:1498
 msgid "email address"
 msgstr ""
 
-#: ../lib/setup.php:1516
+#: ../lib/setup.php:1518
 msgid "File missing or unreadable.  Please install then re-run this test."
 msgstr ""
 
-#: ../lib/setup.php:1520
+#: ../lib/setup.php:1522
 #, php-format
 msgid "Please ensure that %s is the latest version."
 msgstr ""
 
-#: ../lib/setup.php:1525
+#: ../lib/setup.php:1527
 #, php-format
 msgid "Testing status of %d files."
 msgstr ""
 
-#: ../lib/setup.php:1532
+#: ../lib/setup.php:1534
 #, php-format
 msgid "Cannot read file %s."
 msgstr ""
 
-#: ../lib/setup.php:1534
+#: ../lib/setup.php:1536
 msgid "File missing or unreadable."
 msgstr ""
 
-#: ../lib/setup.php:1539
+#: ../lib/setup.php:1556
 #, php-format
 msgid "Version information not found in %s.  File must be old version or corrupted."
 msgstr ""
 
-#: ../lib/setup.php:1541
+#: ../lib/setup.php:1558
 msgid "Missing version"
 msgstr ""
 
-#: ../lib/setup.php:1548
+#: ../lib/setup.php:1567
 #, php-format
 msgid "Problem with %s.  Expected version %s (or greater) but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1550
+#: ../lib/setup.php:1569
 #, php-format
 msgid "Expected version %s (or greater) but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1554
+#: ../lib/setup.php:1573
 #, php-format
 msgid "%s OK.  Actual version (%s) more recent than expected version (%s)"
 msgstr ""
 
-#: ../lib/setup.php:1556
+#: ../lib/setup.php:1575
 #, php-format
 msgid "Expected version %s but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1560
+#: ../lib/setup.php:1579
 #, php-format
 msgid "%s OK"
 msgstr ""
 
-#: ../lib/setup.php:1562
+#: ../lib/setup.php:1581
 #, php-format
 msgid "Found expected version %s."
 msgstr ""
 
-#: ../lib/setup.php:1698
+#: ../lib/setup.php:1711
 msgid "This email will be sent when new accounts are created."
 msgstr ""
 
-#: ../lib/setup.php:1699
+#: ../lib/setup.php:1712
 msgid "Leaving this field empty sets Gallery to use the default message (see below) which can be translated, or use your own welcome message."
 msgstr ""
 
-#: ../lib/setup.php:1700
+#: ../lib/setup.php:1713
 msgid "The following placeholder can be used:"
 msgstr ""
 
-#: ../lib/setup.php:1763
+#: ../lib/setup.php:1776
 #, php-format
 msgid "File %s does not exist."
 msgstr ""
 
-#: ../lib/setup.php:1772
+#: ../lib/setup.php:1785
 #, php-format
 msgid "Expected status: %s, but actually received status %s."
 msgstr ""
 
-#: ../lib/setup.php:1785
+#: ../lib/setup.php:1798
 msgid "can't detect version on Windows"
 msgstr ""
 
-#: ../lib/setup.php:1796
+#: ../lib/setup.php:1809
 #, php-format
 msgid "OK!  Version: %s"
 msgstr ""
@@ -1376,65 +1376,61 @@
 msgstr ""
 
 #: ../lib/voting.php:253
-msgid "Total points in brackets"
+msgid "(Total points in brackets)"
 msgstr ""
 
 #: ../lib/voting.php:257
-msgid "Average points in brackets"
+msgid "(Average points in brackets)"
 msgstr ""
 
-#: ../lib/voting.php:275
+#: ../lib/voting.php:276
 #, php-format
 msgid "Album: %s"
 msgstr ""
 
-#: ../lib/voting.php:303
+#: ../lib/voting.php:305
 #, php-format
 msgid "1 voter"
 msgid_plural "%d voters"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../lib/voting.php:315
+#: ../lib/voting.php:318
 #, php-format
 msgid "Result from one voter"
 msgid_plural "Result of %d voters"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../lib/voting.php:323
+#: ../lib/voting.php:329
 #, php-format
 msgid "%s: %s points; "
 msgstr ""
 
-#: ../lib/voting.php:328
+#: ../lib/voting.php:334
 #, php-format
 msgid "Key - %s"
 msgstr ""
 
-#: ../lib/voting.php:334
-msgid "No votes so far."
-msgstr ""
-
-#: ../lib/voting.php:355
+#: ../lib/voting.php:360
 msgid "Poll results:"
 msgstr ""
 
-#: ../lib/voting.php:358
+#: ../lib/voting.php:363
 msgid "No votes"
 msgstr ""
 
-#: ../lib/voting.php:362
+#: ../lib/voting.php:367
 #, php-format
 msgid "Number %d overall."
 msgstr ""
 
-#: ../lib/voting.php:366
+#: ../lib/voting.php:371
 #, php-format
 msgid "%s: %s"
 msgstr ""
 
-#: ../lib/voting.php:367
+#: ../lib/voting.php:372
 #, php-format
 msgid "one vote"
 msgid_plural "%d votes"
diff -Naur gallery-1.5.3/po/gallery-config.pot gallery-1.5.4/po/gallery-config.pot
--- gallery-1.5.3/po/gallery-config.pot	2006-04-05 00:32:05.000000000 +0200
+++ gallery-1.5.4/po/gallery-config.pot	2006-08-14 10:05:15.000000000 +0200
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 #
-# $Id: gallery-config.pot,v 1.134.2.3 2006/04/04 22:32:05 jenst Exp $
+# $Id: gallery-config.pot 14313 2006-08-14 08:05:15Z jenst $
 #
 # @version	<Version>
 # @package      Languagepack
@@ -27,7 +27,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: gallery-translations@lists.sourceforge.net\n"
-"POT-Creation-Date: 2006-04-05 00:31+0200\n"
+"POT-Creation-Date: 2006-08-14 10:04+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -101,459 +101,459 @@
 msgid "A textured wooden frame"
 msgstr ""
 
-#: ../lib/setup.php:147
+#: ../lib/setup.php:140
 msgid "Please retype your password here"
 msgstr ""
 
-#: ../lib/setup.php:161 ../lib/setup.php:1092
+#: ../lib/setup.php:154 ../lib/setup.php:1088
 msgid "Name"
 msgstr ""
 
-#: ../lib/setup.php:162 ../lib/setup.php:1092
+#: ../lib/setup.php:155 ../lib/setup.php:1088
 msgid "Value"
 msgstr ""
 
-#: ../lib/setup.php:191 ../lib/setup.php:234
+#: ../lib/setup.php:184 ../lib/setup.php:227
 msgid "No content"
 msgstr ""
 
-#: ../lib/setup.php:361
+#: ../lib/setup.php:354
 #, php-format
 msgid "Missing value: %s"
 msgstr ""
 
-#: ../lib/setup.php:379
+#: ../lib/setup.php:372
 msgid "<b>exec()</b> is enabled on this server."
 msgstr ""
 
-#: ../lib/setup.php:397
+#: ../lib/setup.php:390
 msgid "I can read your <b>.htaccess</b> file."
 msgstr ""
 
-#: ../lib/setup.php:419
+#: ../lib/setup.php:412
 #, php-format
 msgid "PHP v%s is OK."
 msgstr ""
 
-#: ../lib/setup.php:434
+#: ../lib/setup.php:428
 msgid "<b>mod_rewrite</b> is enabled."
 msgstr ""
 
-#: ../lib/setup.php:457
+#: ../lib/setup.php:451
 msgid "Can't find <i>jhead</i>"
 msgstr ""
 
-#: ../lib/setup.php:459
+#: ../lib/setup.php:453
 msgid "<b>jhead</b> binary located."
 msgstr ""
 
-#: ../lib/setup.php:497
+#: ../lib/setup.php:491
 msgid "Without pnmcomp and pamcomp gallery will not be able to watermark images, unless you use ImageMagick and have the composite binary installed."
 msgstr ""
 
-#: ../lib/setup.php:505
+#: ../lib/setup.php:499
 msgid "NetPBM not being used in this installation."
 msgstr ""
 
-#: ../lib/setup.php:510 ../lib/setup.php:605
+#: ../lib/setup.php:504 ../lib/setup.php:599
 msgid "Cannot verify this path (it's not in your open_basedir list)."
 msgstr ""
 
-#: ../lib/setup.php:544 ../lib/setup.php:622
+#: ../lib/setup.php:538 ../lib/setup.php:616
 #, php-format
 msgid "Missing optional binary %s. %s"
 msgstr ""
 
-#: ../lib/setup.php:547 ../lib/setup.php:625
+#: ../lib/setup.php:541 ../lib/setup.php:619
 #, php-format
 msgid "Can't find %s!"
 msgstr ""
 
-#: ../lib/setup.php:553 ../lib/setup.php:631
+#: ../lib/setup.php:547 ../lib/setup.php:625
 #, php-format
 msgid "%s is not executable!"
 msgstr ""
 
-#: ../lib/setup.php:563 ../lib/setup.php:570
+#: ../lib/setup.php:557 ../lib/setup.php:564
 #, php-format
 msgid "%d of %d NetPBM binaries located."
 msgstr ""
 
-#: ../lib/setup.php:594
+#: ../lib/setup.php:588
 msgid "Without composite gallery will not be able to watermark images, except you use NetPBM and have the pnmcomp binary installed."
 msgstr ""
 
-#: ../lib/setup.php:600
+#: ../lib/setup.php:594
 msgid "ImageMagick not being used in this installation."
 msgstr ""
 
-#: ../lib/setup.php:641 ../lib/setup.php:648
+#: ../lib/setup.php:635 ../lib/setup.php:642
 #, php-format
 msgid "%d of %d ImageMagick binaries located."
 msgstr ""
 
-#: ../lib/setup.php:670
+#: ../lib/setup.php:664
 msgid "Can't find <i>jpegtran</i>!"
 msgstr ""
 
-#: ../lib/setup.php:672
+#: ../lib/setup.php:666
 msgid "<b>jpegtran</b> binary located."
 msgstr ""
 
-#: ../lib/setup.php:683
+#: ../lib/setup.php:677
 msgid "PHP has <b>GNU gettext</b> support."
 msgstr ""
 
-#: ../lib/setup.php:685
+#: ../lib/setup.php:679
 msgid "PHP does not have <b>GNU gettext</b> support."
 msgstr ""
 
-#: ../lib/setup.php:699
+#: ../lib/setup.php:693
 msgid "No languages found."
 msgstr ""
 
-#: ../lib/setup.php:701
+#: ../lib/setup.php:695
 msgid "It seems you didn't download any additional languages. This is not a problem! Gallery will appear just in English. Note: If this is not true, check that all files in locale folder are readable for the webserver, or contact the Gallery Team."
 msgstr ""
 
-#: ../lib/setup.php:704
+#: ../lib/setup.php:698
 #, php-format
 msgid "%d languages are available.  If you are missing a language please visit the %sGallery download page%s."
 msgstr ""
 
-#: ../lib/setup.php:726
+#: ../lib/setup.php:721
 #, php-format
 msgid "You can check for more recent versions by visiting %s."
 msgstr ""
 
-#: ../lib/setup.php:727
+#: ../lib/setup.php:722
 #, php-format
 msgid "This version of %s was released on %s."
 msgstr ""
 
-#: ../lib/setup.php:729
+#: ../lib/setup.php:725
 #, php-format
 msgid "This is a development build of %s that was released on %s."
 msgstr ""
 
-#: ../lib/setup.php:738
+#: ../lib/setup.php:734
 msgid "Please check regularly for updates."
 msgstr ""
 
-#: ../lib/setup.php:757
+#: ../lib/setup.php:753
 msgid "All gallery locales are available on this host."
 msgstr ""
 
-#: ../lib/setup.php:760
+#: ../lib/setup.php:756
 #, php-format
 msgid "There are %d locales that Gallery was unable to locate. You may need to select manually date formats. "
 msgstr ""
 
-#: ../lib/setup.php:766
+#: ../lib/setup.php:762
 #, php-format
 msgid "Dates in %d languages may not be formatted properly, because the corresponding locales are missing. You may need to select manually the date formats for these."
 msgstr ""
 
-#: ../lib/setup.php:771
+#: ../lib/setup.php:767
 #, php-format
 msgid "We were unable to detect any locales.  However, your PHP installation is configured with the %s restriction so this may be interfering with the way that we detect locales.  Unfortunately this means the date format will not change for different languages.  However, it is OK to continue."
 msgstr ""
 
-#: ../lib/setup.php:775
+#: ../lib/setup.php:771
 #, php-format
 msgid "We were unable to detect any system locales. Multi-language functions will be disabled. Please install the corresponding locales or ask your administrator to do this. This problem is known on %s systems. In this case please have a look at this %sDebian locale HowTo%s."
 msgstr ""
 
-#: ../lib/setup.php:777
+#: ../lib/setup.php:773
 msgid "Only the default locale for this machine is available, so date format will not change for different languages."
 msgstr ""
 
-#: ../lib/setup.php:936 ../lib/setup.php:1016 ../setup/config_data.inc:777
+#: ../lib/setup.php:932 ../lib/setup.php:1012 ../setup/config_data.inc:777
 #: ../setup/config_data.inc:787 ../setup/config_data.inc:1320
 msgid "Advanced"
 msgstr ""
 
-#: ../lib/setup.php:936
+#: ../lib/setup.php:932
 #, php-format
 msgid "<b>System</b> locale selection required"
 msgstr ""
 
-#: ../lib/setup.php:937
+#: ../lib/setup.php:933
 msgid "There is more than one suitable <b>system</b> locale installed on your machine for the following languages.  Please chose the one you think is most suitable."
 msgstr ""
 
-#: ../lib/setup.php:939 ../lib/setup.php:1019
+#: ../lib/setup.php:935 ../lib/setup.php:1015
 msgid "This is <b>only</b> for date & time format. You only need to edit the languages you enabled above"
 msgstr ""
 
-#: ../lib/setup.php:950 ../lib/setup.php:974
+#: ../lib/setup.php:946 ../lib/setup.php:970
 msgid "System locale"
 msgstr ""
 
-#: ../lib/setup.php:1016
+#: ../lib/setup.php:1012
 #, php-format
 msgid "<b>System</b> locale problems"
 msgstr ""
 
-#: ../lib/setup.php:1017
+#: ../lib/setup.php:1013
 msgid "There are no apparently suitable <b>system</b> locales installed on your machine for the following languages.  Please choose the one you think is most suitable."
 msgstr ""
 
-#: ../lib/setup.php:1060
+#: ../lib/setup.php:1056
 msgid "<b>safe_mode</b> is off."
 msgstr ""
 
-#: ../lib/setup.php:1072
+#: ../lib/setup.php:1068
 msgid "<b>magic_quotes</b> are off."
 msgstr ""
 
-#: ../lib/setup.php:1090
+#: ../lib/setup.php:1086
 #, php-format
 msgid "In %s, missing %s in row %d with %s %s."
 msgstr ""
 
-#: ../lib/setup.php:1091 ../lib/setup.php:1100 ../lib/setup.php:1105
+#: ../lib/setup.php:1087 ../lib/setup.php:1096 ../lib/setup.php:1101
 #: ../setup/config_data.inc:1855
 msgid "Vote words and values"
 msgstr ""
 
-#: ../lib/setup.php:1099
+#: ../lib/setup.php:1095
 #, php-format
 msgid "In %s, blank in row %d."
 msgstr ""
 
-#: ../lib/setup.php:1104
+#: ../lib/setup.php:1100
 #, php-format
 msgid "In %s, for name %s (row %d) value %s should be a positive whole number"
 msgstr ""
 
-#: ../lib/setup.php:1126
+#: ../lib/setup.php:1122
 msgid "<b>register_globals</b> is off."
 msgstr ""
 
-#: ../lib/setup.php:1297
+#: ../lib/setup.php:1292
 msgid "Your passwords do not match!"
 msgstr ""
 
-#: ../lib/setup.php:1308 ../setup/check_imagemagick.php:68
+#: ../lib/setup.php:1303 ../setup/check_imagemagick.php:68
 #: ../setup/check_netpbm.php:73
 msgid "OK"
 msgstr ""
 
-#: ../lib/setup.php:1313
+#: ../lib/setup.php:1308
 msgid "Valid admin email address given."
 msgstr ""
 
-#: ../lib/setup.php:1320
+#: ../lib/setup.php:1315
 msgid "You must specify valid admin email addresses"
 msgstr ""
 
-#: ../lib/setup.php:1328
+#: ../lib/setup.php:1323
 #, php-format
 msgid "%s is not a valid email address."
 msgstr ""
 
-#: ../lib/setup.php:1337
+#: ../lib/setup.php:1332
 msgid "Valid sender email address given."
 msgstr ""
 
-#: ../lib/setup.php:1339
+#: ../lib/setup.php:1334
 msgid "You must specify a valid sender email address"
 msgstr ""
 
-#: ../lib/setup.php:1342
+#: ../lib/setup.php:1337
 #, php-format
 msgid "You must include %s in your welcome email"
 msgstr ""
 
-#: ../lib/setup.php:1347
+#: ../lib/setup.php:1342
 #, php-format
 msgid "You must include %s or %s in your welcome email"
 msgstr ""
 
-#: ../lib/setup.php:1371
+#: ../lib/setup.php:1366
 #, php-format
 msgid "The following files are out of date, corrupted or missing:<br>&nbsp;&nbsp;&nbsp;&nbsp;%s."
 msgstr ""
 
-#: ../lib/setup.php:1373
+#: ../lib/setup.php:1368
 msgid "This should be fixed before proceeding"
 msgstr ""
 
-#: ../lib/setup.php:1374 ../lib/setup.php:1378
+#: ../lib/setup.php:1369 ../lib/setup.php:1373
 #, php-format
 msgid "Look at %sCheck Versions%s for more details."
 msgstr ""
 
-#: ../lib/setup.php:1377
+#: ../lib/setup.php:1372
 #, php-format
-msgid "%d files are more recent than expected.  This is OK if you are using pre-release, beta, CVS or modified code."
+msgid "%d files are more recent than expected.  This is OK if you are using pre-release, beta, SVN or modified code."
 msgstr ""
 
-#: ../lib/setup.php:1382
+#: ../lib/setup.php:1377
 #, php-format
 msgid "All tested files up-to-date."
 msgstr ""
 
-#: ../lib/setup.php:1384
+#: ../lib/setup.php:1379
 #, php-format
 msgid "All %d tested files up-to-date."
 msgstr ""
 
-#: ../lib/setup.php:1393
+#: ../lib/setup.php:1388
 #, php-format
 msgid "this is new in version %s"
 msgstr ""
 
-#: ../lib/setup.php:1398
+#: ../lib/setup.php:1393
 #, php-format
 msgid "Return to %s."
 msgstr ""
 
-#: ../lib/setup.php:1399
+#: ../lib/setup.php:1394
 msgid "Configuration Wizard"
 msgstr ""
 
-#: ../lib/setup.php:1448
+#: ../lib/setup.php:1443
 #, php-format
 msgid "You must enter a password for the %s account."
 msgstr ""
 
-#: ../lib/setup.php:1453
+#: ../lib/setup.php:1448
 #, php-format
 msgid "It seems you've already configured Gallery, because there is one admin account, but its not called %s."
 msgstr ""
 
-#: ../lib/setup.php:1456
+#: ../lib/setup.php:1451
 #, php-format
 msgid "It seems you've already configured Gallery, because there are %d admin accounts, but no user called %s."
 msgstr ""
 
-#: ../lib/setup.php:1458
+#: ../lib/setup.php:1453
 #, php-format
 msgid "You don't have to enter a password.  But if you do, Gallery will create an administrator account called %s with that password."
 msgstr ""
 
-#: ../lib/setup.php:1467
+#: ../lib/setup.php:1462
 #, php-format
 msgid "It seems you've already configured Gallery, because the %s user exists.  You don't have to enter a password.  But if you do, Gallery will change the password for the %s user."
 msgstr ""
 
-#: ../lib/setup.php:1474
+#: ../lib/setup.php:1469
 msgid "Admin password"
 msgstr ""
 
-#: ../lib/setup.php:1489 ../lib/setup.php:1491 ../lib/setup.php:1493
-#: ../lib/setup.php:1501
+#: ../lib/setup.php:1484 ../lib/setup.php:1486 ../lib/setup.php:1488
+#: ../lib/setup.php:1496
 msgid "Full Name"
 msgstr ""
 
-#: ../lib/setup.php:1489 ../lib/setup.php:1491 ../lib/setup.php:1495
-#: ../lib/setup.php:1503 ../setup/login.inc:93
+#: ../lib/setup.php:1484 ../lib/setup.php:1486 ../lib/setup.php:1490
+#: ../lib/setup.php:1498 ../setup/login.inc:93
 msgid "Username"
 msgstr ""
 
-#: ../lib/setup.php:1497
+#: ../lib/setup.php:1492
 msgid "Full name that you can click on to send email (mailto:)"
 msgstr ""
 
-#: ../lib/setup.php:1499
+#: ../lib/setup.php:1494
 msgid "Username that you can click on to send email (mailto:)"
 msgstr ""
 
-#: ../lib/setup.php:1501 ../lib/setup.php:1503
+#: ../lib/setup.php:1496 ../lib/setup.php:1498
 msgid "email address"
 msgstr ""
 
-#: ../lib/setup.php:1516
+#: ../lib/setup.php:1518
 msgid "File missing or unreadable.  Please install then re-run this test."
 msgstr ""
 
-#: ../lib/setup.php:1520
+#: ../lib/setup.php:1522
 #, php-format
 msgid "Please ensure that %s is the latest version."
 msgstr ""
 
-#: ../lib/setup.php:1525
+#: ../lib/setup.php:1527
 #, php-format
 msgid "Testing status of %d files."
 msgstr ""
 
-#: ../lib/setup.php:1532
+#: ../lib/setup.php:1534
 #, php-format
 msgid "Cannot read file %s."
 msgstr ""
 
-#: ../lib/setup.php:1534
+#: ../lib/setup.php:1536
 msgid "File missing or unreadable."
 msgstr ""
 
-#: ../lib/setup.php:1539
+#: ../lib/setup.php:1556
 #, php-format
 msgid "Version information not found in %s.  File must be old version or corrupted."
 msgstr ""
 
-#: ../lib/setup.php:1541
+#: ../lib/setup.php:1558
 msgid "Missing version"
 msgstr ""
 
-#: ../lib/setup.php:1548
+#: ../lib/setup.php:1567
 #, php-format
 msgid "Problem with %s.  Expected version %s (or greater) but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1550
+#: ../lib/setup.php:1569
 #, php-format
 msgid "Expected version %s (or greater) but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1554
+#: ../lib/setup.php:1573
 #, php-format
 msgid "%s OK.  Actual version (%s) more recent than expected version (%s)"
 msgstr ""
 
-#: ../lib/setup.php:1556
+#: ../lib/setup.php:1575
 #, php-format
 msgid "Expected version %s but found %s."
 msgstr ""
 
-#: ../lib/setup.php:1560
+#: ../lib/setup.php:1579
 #, php-format
 msgid "%s OK"
 msgstr ""
 
-#: ../lib/setup.php:1562
+#: ../lib/setup.php:1581
 #, php-format
 msgid "Found expected version %s."
 msgstr ""
 
-#: ../lib/setup.php:1698
+#: ../lib/setup.php:1711
 msgid "This email will be sent when new accounts are created."
 msgstr ""
 
-#: ../lib/setup.php:1699
+#: ../lib/setup.php:1712
 msgid "Leaving this field empty sets Gallery to use the default message (see below) which can be translated, or use your own welcome message."
 msgstr ""
 
-#: ../lib/setup.php:1700
+#: ../lib/setup.php:1713
 msgid "The following placeholder can be used:"
 msgstr ""
 
-#: ../lib/setup.php:1763 ../setup/check_netpbm.php:250
+#: ../lib/setup.php:1776 ../setup/check_netpbm.php:250
 #, php-format
 msgid "File %s does not exist."
 msgstr ""
 
-#: ../lib/setup.php:1772 ../setup/check_netpbm.php:261
+#: ../lib/setup.php:1785 ../setup/check_netpbm.php:261
 #, php-format
 msgid "Expected status: %s, but actually received status %s."
 msgstr ""
 
-#: ../lib/setup.php:1785 ../setup/check_netpbm.php:275
+#: ../lib/setup.php:1798 ../setup/check_netpbm.php:275
 msgid "can't detect version on Windows"
 msgstr ""
 
-#: ../lib/setup.php:1796 ../setup/check_netpbm.php:301
+#: ../lib/setup.php:1809 ../setup/check_netpbm.php:301
 #, php-format
 msgid "OK!  Version: %s"
 msgstr ""
@@ -614,7 +614,7 @@
 msgid "Failure"
 msgstr ""
 
-#: ../setup/check.inc:104 ../setup/check_versions.php:75
+#: ../setup/check.inc:104 ../setup/check_versions.php:74
 msgid "Show/hide more information"
 msgstr ""
 
@@ -642,8 +642,8 @@
 msgid "Your installation passed with flying colors!  Go go go!"
 msgstr ""
 
-#: ../setup/check.inc:210 ../setup/constants.inc:44 ../setup/constants.inc:187
-#: ../setup/defaults.inc:46 ../setup/defaults.inc:132
+#: ../setup/check.inc:210 ../setup/constants.inc:44 ../setup/constants.inc:188
+#: ../setup/defaults.inc:46 ../setup/defaults.inc:133
 msgid "Next Step"
 msgstr ""
 
@@ -830,59 +830,59 @@
 msgid "If you see errors, you should %sclick here%s to see more details"
 msgstr ""
 
-#: ../setup/check_versions.php:30 ../setup/check_versions.php:41
+#: ../setup/check_versions.php:30 ../setup/check_versions.php:39
 msgid "Check Versions"
 msgstr ""
 
-#: ../setup/check_versions.php:44
+#: ../setup/check_versions.php:43
 #, php-format
 msgid "This page gives you information about the version of each necessary %s file. "
 msgstr ""
 
-#: ../setup/check_versions.php:46
+#: ../setup/check_versions.php:45
 msgid "If you see any error(s), we highly suggest to get the actual version of that file(s)."
 msgstr ""
 
-#: ../setup/check_versions.php:55
+#: ../setup/check_versions.php:54
 #, php-format
 msgid "One file is missing, corrupt or older than expected."
 msgid_plural "%d files are missing, corrupt or older than expected."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../setup/check_versions.php:55 ../setup/check_versions.php:60
+#: ../setup/check_versions.php:54 ../setup/check_versions.php:59
 msgid "All files okay."
 msgstr ""
 
-#: ../setup/check_versions.php:57
+#: ../setup/check_versions.php:56
 #, php-format
 msgid "There are problems with the following files.  Please correct them before configuring %s."
 msgstr ""
 
-#: ../setup/check_versions.php:60
+#: ../setup/check_versions.php:59
 #, php-format
 msgid "One file is more recent than expected."
 msgid_plural "%d files are more recent than expected."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../setup/check_versions.php:62
+#: ../setup/check_versions.php:61
 #, php-format
 msgid "The following files are more up-to-date than expected for this version of %s.  If you are using pre-release code, this is OK."
 msgstr ""
 
-#: ../setup/check_versions.php:65
+#: ../setup/check_versions.php:64
 #, php-format
 msgid "One file is up-to-date."
 msgid_plural "%d files are up-to-date."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../setup/check_versions.php:65
+#: ../setup/check_versions.php:64
 msgid "All files are up-to-date."
 msgstr ""
 
-#: ../setup/check_versions.php:67
+#: ../setup/check_versions.php:66
 msgid "The following files are up-to-date."
 msgstr ""
 
@@ -1232,7 +1232,7 @@
 
 #: ../setup/config_data.inc:318
 #, php-format
-msgid "The full path on physical disk to the directory where your photos will be stored.  This directory should start off empty&#8212;Gallery will fill it.  Note that this directory needs to have write access by the user who is running the web server (in your case this user is %s)."
+msgid "The full path on physical disk to the directory where your photos will be stored.  This directory should start off empty.  Gallery will fill it.  Note that this directory needs to have write access by the user who is running the web server (in your case this user is %s)."
 msgstr ""
 
 #: ../setup/config_data.inc:329
@@ -2884,7 +2884,7 @@
 msgstr ""
 
 #: ../setup/config_data.inc:1947
-msgid "Displays previos & next images, with current image between."
+msgid "Displays previous & next images, with current image between."
 msgstr ""
 
 #: ../setup/config_data.inc:1956
@@ -2960,19 +2960,19 @@
 msgid "This frame will appear around the thumbnail image representing a subalbum."
 msgstr ""
 
-#: ../setup/config_data.inc:2025
+#: ../setup/config_data.inc:2024
 msgid "Frame around thumbs"
 msgstr ""
 
-#: ../setup/config_data.inc:2026
+#: ../setup/config_data.inc:2025
 msgid "This frame will appear around the thumbnail image representing a photo or movie."
 msgstr ""
 
-#: ../setup/config_data.inc:2031
+#: ../setup/config_data.inc:2030
 msgid "Frame around images"
 msgstr ""
 
-#: ../setup/config_data.inc:2032
+#: ../setup/config_data.inc:2031
 msgid "This frame will appear around fulled sized and resized photos."
 msgstr ""
 
@@ -3133,23 +3133,23 @@
 msgid "Switch through the corresponding tab and fill the values you need. Some, but not all values are required. If you have finished this step use the button to go to the next Step."
 msgstr ""
 
-#: ../setup/constants.inc:41 ../setup/constants.inc:184
-#: ../setup/defaults.inc:43 ../setup/defaults.inc:129
+#: ../setup/constants.inc:41 ../setup/constants.inc:185
+#: ../setup/defaults.inc:43 ../setup/defaults.inc:130
 msgid "Previous Step"
 msgstr ""
 
-#: ../setup/constants.inc:42 ../setup/constants.inc:185
-#: ../setup/defaults.inc:44 ../setup/defaults.inc:130
+#: ../setup/constants.inc:42 ../setup/constants.inc:186
+#: ../setup/defaults.inc:44 ../setup/defaults.inc:131
 msgid "Previous Tab"
 msgstr ""
 
-#: ../setup/constants.inc:43 ../setup/constants.inc:186
-#: ../setup/defaults.inc:45 ../setup/defaults.inc:131
+#: ../setup/constants.inc:43 ../setup/constants.inc:187
+#: ../setup/defaults.inc:45 ../setup/defaults.inc:132
 msgid "Next Tab"
 msgstr ""
 
-#: ../setup/constants.inc:45 ../setup/constants.inc:188
-#: ../setup/defaults.inc:47 ../setup/defaults.inc:133
+#: ../setup/constants.inc:45 ../setup/constants.inc:189
+#: ../setup/defaults.inc:47 ../setup/defaults.inc:134
 msgid "Use Defaults"
 msgstr ""
 
diff -Naur gallery-1.5.3/po/gallery-core.pot gallery-1.5.4/po/gallery-core.pot
--- gallery-1.5.3/po/gallery-core.pot	2006-04-05 00:32:05.000000000 +0200
+++ gallery-1.5.4/po/gallery-core.pot	2006-08-14 10:05:15.000000000 +0200
@@ -16,7 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 #
-# $Id: gallery-core.pot,v 1.134.2.3 2006/04/04 22:32:05 jenst Exp $
+# $Id: gallery-core.pot 14313 2006-08-14 08:05:15Z jenst $
 #
 # @version	<Version>
 # @package      Languagepack
@@ -27,7 +27,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: gallery-translations@lists.sourceforge.net\n"
-"POT-Creation-Date: 2006-04-05 00:31+0200\n"
+"POT-Creation-Date: 2006-08-14 10:04+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -63,17 +63,17 @@
 msgid "Your Comment contains forbidden words. It will not be added."
 msgstr ""
 
-#: ../add_comment.php:79 ../add_comment.php:83
+#: ../add_comment.php:80 ../add_comment.php:84
 msgid "Add Comment"
 msgstr ""
 
-#: ../add_comment.php:85
+#: ../add_comment.php:86
 msgid "Enter your comment for this picture in the text box below."
 msgstr ""
 
-#: ../add_comment.php:98 ../copy_photo.php:214 ../delete_album.php:72
+#: ../add_comment.php:99 ../copy_photo.php:214 ../delete_album.php:72
 #: ../delete_photo.php:145 ../delete_user.php:85 ../download.php:84
-#: ../ecard_form.php:263 ../edit_caption.php:184 ../edit_watermark.php:121
+#: ../ecard_form.php:259 ../edit_caption.php:184 ../edit_watermark.php:121
 #: ../includes/add_photos/add_form.inc:90
 #: ../includes/add_photos/add_url.inc:55 ../login.php:96 ../move_album.php:117
 #: ../move_album.php:134 ../move_photo.php:264 ../move_photo.php:352
@@ -220,7 +220,7 @@
 
 #: ../administer_startpage.php:99 ../administer_startpage.php:109
 #: ../download.php:91 ../edit_field.php:66 ../help/imagemap.php:88
-#: ../user_preferences.php:145 ../view_photo_properties.php:137
+#: ../user_preferences.php:146 ../view_photo_properties.php:137
 msgid "Close Window"
 msgstr ""
 
@@ -264,31 +264,31 @@
 msgid "Users who can change album text."
 msgstr ""
 
-#: ../album_permissions.php:110 ../album_permissions.php:114
+#: ../album_permissions.php:111 ../album_permissions.php:115
 msgid "Album Permissions"
 msgstr ""
 
-#: ../album_permissions.php:116
+#: ../album_permissions.php:117
 #, php-format
 msgid "Changing permissions for %s"
 msgstr ""
 
-#: ../album_permissions.php:122
+#: ../album_permissions.php:123
 msgid "Owner:"
 msgstr ""
 
-#: ../album_permissions.php:156
+#: ../album_permissions.php:157
 msgid "Apply permissions to all sub-albums"
 msgstr ""
 
-#: ../album_permissions.php:159 ../edit_caption.php:183 ../edit_field.php:55
+#: ../album_permissions.php:160 ../edit_caption.php:183 ../edit_field.php:55
 #: ../edit_field.php:65 ../edit_watermark.php:119 ../modify_user.php:163
-#: ../new_password.php:137 ../photo_owner.php:103 ../user_preferences.php:144
+#: ../new_password.php:137 ../photo_owner.php:103 ../user_preferences.php:145
 #: ../watermark_album.php:148
 msgid "Save"
 msgstr ""
 
-#: ../album_permissions.php:160 ../manage_users.php:100 ../modify_user.php:165
+#: ../album_permissions.php:161 ../manage_users.php:100 ../modify_user.php:165
 #: ../photo_owner.php:104 ../upgrade_album.php:66 ../upgrade_album.php:179
 #: ../upgrade_users.php:61
 msgid "Done"
@@ -461,11 +461,11 @@
 msgid "The requested album with index %s is not valid"
 msgstr ""
 
-#: ../albums.php:333 ../view_album.php:679
+#: ../albums.php:333 ../view_album.php:690
 msgid "Highlight for Album:"
 msgstr ""
 
-#: ../albums.php:353 ../view_album.php:785
+#: ../albums.php:353 ../view_album.php:796
 msgid "Download entire album as archive"
 msgstr ""
 
@@ -513,7 +513,7 @@
 msgid "This album has been viewed %s since %s."
 msgstr ""
 
-#: ../albums.php:446 ../view_album.php:820
+#: ../albums.php:446 ../view_album.php:831
 #, php-format
 msgid "1 time"
 msgid_plural "%d times"
@@ -528,7 +528,7 @@
 msgid "reset counter"
 msgstr ""
 
-#: ../albums.php:497 ../view_album.php:919
+#: ../albums.php:497 ../view_album.php:930
 msgid "Comments available for this item."
 msgstr ""
 
@@ -597,7 +597,7 @@
 msgstr ""
 
 #: ../captionator.php:262 ../layout/commentboxtop.inc:20
-#: ../layout/commentboxtop.inc:45 ../view_album.php:773
+#: ../layout/commentboxtop.inc:45 ../view_album.php:784
 msgid "hidden"
 msgstr ""
 
@@ -634,7 +634,7 @@
 msgstr ""
 
 #: ../classes/Album.php:240 ../classes/Album.php:252
-#: ../layout/commentboxtop.inc:18 ../lib/albumItem.php:71
+#: ../layout/commentboxtop.inc:18 ../lib/albumItem.php:72
 #: ../upgrade_album.php:84 ../upgrade_album.php:96
 msgid "Album"
 msgstr ""
@@ -695,7 +695,7 @@
 msgid "Operation was done successfully. Emailing is on, but no email was sent as no valid email address was found"
 msgstr ""
 
-#: ../classes/Album.php:1143 ../classes/Album.php:1898
+#: ../classes/Album.php:1143 ../classes/Album.php:1909
 #, php-format
 msgid "Entering album %s, processing %d photos"
 msgstr ""
@@ -738,27 +738,27 @@
 msgid "No highlight!"
 msgstr ""
 
-#: ../classes/Album.php:1696
+#: ../classes/Album.php:1700
 #, php-format
-msgid "Requested index [%d] out of bounds [%d]"
+msgid "Requested index [%d] out of bounds [%d]. Gallery could not load the requested album item."
 msgstr ""
 
-#: ../classes/Album.php:1910 ../do_command.php:105
+#: ../classes/Album.php:1921 ../do_command.php:105
 #, php-format
 msgid "Processing image %d..."
 msgstr ""
 
-#: ../classes/Album.php:2079
+#: ../classes/Album.php:2090
 #, php-format
 msgid "Error getting EXIF data. Expected Status 0, got %s."
 msgstr ""
 
-#: ../classes/Album.php:2615
+#: ../classes/Album.php:2626
 #, php-format
 msgid "#%d"
 msgstr ""
 
-#: ../classes/Album.php:2779
+#: ../classes/Album.php:2790
 #, php-format
 msgid "Email problem: skipping %s (UID %s) because email address %s is not valid."
 msgstr ""
@@ -1007,9 +1007,9 @@
 msgstr ""
 
 #: ../delete_album.php:71 ../delete_photo.php:144 ../delete_user.php:80
-#: ../js/multifile.js.php:106 ../layout/commentbox.inc:15
-#: ../lib/albumItem.php:251 ../lib/albumItem.php:252 ../lib/albumItem.php:258
-#: ../lib/albumItem.php:259 ../manage_users.php:98
+#: ../js/multifile.js.php:112 ../layout/commentbox.inc:15
+#: ../lib/albumItem.php:252 ../lib/albumItem.php:253 ../lib/albumItem.php:259
+#: ../lib/albumItem.php:260 ../manage_users.php:98
 #: ../tools/despam-comments.php:206 ../tools/despam-comments.php:345
 msgid "Delete"
 msgstr ""
@@ -1168,115 +1168,115 @@
 msgid "This album album is not empty, but contains no photo or movie! Download would'nt make sense."
 msgstr ""
 
-#: ../ecard_form.php:45
+#: ../ecard_form.php:38
+msgid "Send this photo as eCard"
+msgstr ""
+
+#: ../ecard_form.php:52
 msgid "Error processing e-card. Please try later."
 msgstr ""
 
-#: ../ecard_form.php:46
+#: ../ecard_form.php:53
 msgid "Some input fields are not correctly filled out. Please fill out."
 msgstr ""
 
-#: ../ecard_form.php:47
+#: ../ecard_form.php:54
 msgid "You have an e-card as attachment. Click to see."
 msgstr ""
 
-#: ../ecard_form.php:85 ../ecard_form.php:170
-msgid "Send this photo as eCard"
-msgstr ""
-
-#: ../ecard_form.php:110
+#: ../ecard_form.php:112
 msgid "Error: to send an eCard you need to fill out all fields."
 msgstr ""
 
-#: ../ecard_form.php:111
+#: ../ecard_form.php:113
 msgid "Please fill this fields:"
 msgstr ""
 
-#: ../ecard_form.php:115
+#: ../ecard_form.php:117
 msgid "- Your Name"
 msgstr ""
 
-#: ../ecard_form.php:121
+#: ../ecard_form.php:123
 msgid "- Your Email"
 msgstr ""
 
-#: ../ecard_form.php:126
+#: ../ecard_form.php:128
 msgid "- Recipient's Name"
 msgstr ""
 
-#: ../ecard_form.php:132
+#: ../ecard_form.php:134
 msgid "- Recipient's Email"
 msgstr ""
 
-#: ../ecard_form.php:137
+#: ../ecard_form.php:139
 msgid "- Your Message"
 msgstr ""
 
-#: ../ecard_form.php:141
+#: ../ecard_form.php:143
 msgid "Please fill all fields next click >Send<."
 msgstr ""
 
-#: ../ecard_form.php:154
+#: ../ecard_form.php:156
 #, php-format
 msgid "You have entered more than %d characters"
 msgstr ""
 
-#: ../ecard_form.php:192
+#: ../ecard_form.php:188
 msgid "Your info"
 msgstr ""
 
-#: ../ecard_form.php:194
+#: ../ecard_form.php:190
 msgid "Recipient's info"
 msgstr ""
 
-#: ../ecard_form.php:197 ../ecard_form.php:208
+#: ../ecard_form.php:193 ../ecard_form.php:204
 msgid "Name"
 msgstr ""
 
-#: ../ecard_form.php:212 ../ecard_form.php:215
+#: ../ecard_form.php:208 ../ecard_form.php:211
 msgid "E-Mail"
 msgstr ""
 
-#: ../ecard_form.php:221
+#: ../ecard_form.php:217
 msgid "Choose a Stamp"
 msgstr ""
 
-#: ../ecard_form.php:226
+#: ../ecard_form.php:222
 #, php-format
 msgid "Stamp #%d"
 msgstr ""
 
-#: ../ecard_form.php:236
+#: ../ecard_form.php:232
 msgid "Subject:"
 msgstr ""
 
-#: ../ecard_form.php:237
+#: ../ecard_form.php:233
 #, php-format
 msgid "%s sent you an E-C@rd"
 msgstr ""
 
-#: ../ecard_form.php:241
+#: ../ecard_form.php:237
 msgid "Your Message:"
 msgstr ""
 
-#: ../ecard_form.php:260 ../edit_watermark.php:120 ../watermark_album.php:151
+#: ../ecard_form.php:256 ../edit_watermark.php:120 ../watermark_album.php:151
 msgid "Preview"
 msgstr ""
 
-#: ../ecard_form.php:261
+#: ../ecard_form.php:257
 msgid "Reset"
 msgstr ""
 
-#: ../ecard_form.php:264
+#: ../ecard_form.php:260
 msgid "Send eCard"
 msgstr ""
 
-#: ../ecard_form.php:272
+#: ../ecard_form.php:268
 #, php-format
 msgid "Your E-C@rd with the picture below has been sent to %s &lt;%s&gt;."
 msgstr ""
 
-#: ../ecard_form.php:276
+#: ../ecard_form.php:272
 msgid "Close this window"
 msgstr ""
 
@@ -1340,7 +1340,7 @@
 msgid "Year must be between 1969 and 2070"
 msgstr ""
 
-#: ../edit_caption.php:73 ../lib/albumItem.php:104 ../lib/albumItem.php:105
+#: ../edit_caption.php:73 ../lib/albumItem.php:105 ../lib/albumItem.php:106
 msgid "Edit Text"
 msgstr ""
 
@@ -1816,7 +1816,7 @@
 msgid "Supported file types: %s"
 msgstr ""
 
-#: ../includes/add_photos/add_form.inc:38 ../view_album.php:565
+#: ../includes/add_photos/add_form.inc:38 ../view_album.php:573
 msgid " or "
 msgstr ""
 
@@ -2299,43 +2299,43 @@
 msgid "Filter by day"
 msgstr ""
 
-#: ../js/multifile.js.php:143
+#: ../js/multifile.js.php:149
 msgid "Caption:"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:6
+#: ../layout/adminAlbumCommands.inc:12
 msgid "delete album"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:11
+#: ../layout/adminAlbumCommands.inc:17
 msgid "move album"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:12
+#: ../layout/adminAlbumCommands.inc:18
 msgid "reorder album"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:13
+#: ../layout/adminAlbumCommands.inc:19
 msgid "rename album"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:20
+#: ../layout/adminAlbumCommands.inc:26
 msgid "edit captions"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:27
+#: ../layout/adminAlbumCommands.inc:33
 msgid "permissions"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:28
+#: ../layout/adminAlbumCommands.inc:34
 msgid "properties"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:35 ../view_album.php:415
+#: ../layout/adminAlbumCommands.inc:41 ../view_album.php:415
 msgid "view&nbsp;comments"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:40
+#: ../layout/adminAlbumCommands.inc:46
 msgid "watermark&nbsp;album"
 msgstr ""
 
@@ -2364,11 +2364,11 @@
 msgid "Album contains no comments"
 msgstr ""
 
-#: ../layout/commentdraw.inc:23 ../lib/albumItem.php:324
+#: ../layout/commentdraw.inc:23 ../lib/albumItem.php:325
 msgid "From:"
 msgstr ""
 
-#: ../layout/commentdraw.inc:48 ../lib/albumItem.php:298
+#: ../layout/commentdraw.inc:48 ../lib/albumItem.php:299
 msgid "delete comment"
 msgstr ""
 
@@ -2504,28 +2504,28 @@
 msgid "Only full photos"
 msgstr ""
 
-#: ../lib/albumItem.php:78 ../rearrange.php:112
+#: ../lib/albumItem.php:79 ../rearrange.php:112
 msgid "Movie"
 msgstr ""
 
-#: ../lib/albumItem.php:81
+#: ../lib/albumItem.php:82
 msgid "Photo"
 msgstr ""
 
-#: ../lib/albumItem.php:109 ../lib/albumItem.php:110
+#: ../lib/albumItem.php:110 ../lib/albumItem.php:111
 msgid "Edit Thumbnail"
 msgstr ""
 
-#: ../lib/albumItem.php:114 ../lib/albumItem.php:115
+#: ../lib/albumItem.php:115 ../lib/albumItem.php:116
 #, php-format
 msgid "Rotate/Flip"
 msgstr ""
 
-#: ../lib/albumItem.php:119 ../lib/albumItem.php:120
+#: ../lib/albumItem.php:120 ../lib/albumItem.php:121
 msgid "Resize"
 msgstr ""
 
-#: ../lib/albumItem.php:125 ../lib/albumItem.php:126
+#: ../lib/albumItem.php:126 ../lib/albumItem.php:127
 msgid "Watermark"
 msgstr ""
 
@@ -2533,70 +2533,70 @@
 msgid "ImageMap"
 msgstr ""
 
-#: ../lib/albumItem.php:140 ../lib/albumItem.php:141
+#: ../lib/albumItem.php:141 ../lib/albumItem.php:142
 msgid "Move"
 msgstr ""
 
-#: ../lib/albumItem.php:148 ../lib/albumItem.php:149
+#: ../lib/albumItem.php:149 ../lib/albumItem.php:150
 msgid "Edit Title"
 msgstr ""
 
-#: ../lib/albumItem.php:153 ../lib/albumItem.php:154
+#: ../lib/albumItem.php:154 ../lib/albumItem.php:155
 msgid "Edit Description"
 msgstr ""
 
-#: ../lib/albumItem.php:159 ../lib/albumItem.php:160 ../rename_album.php:39
+#: ../lib/albumItem.php:160 ../lib/albumItem.php:161 ../rename_album.php:39
 #: ../rename_album.php:43
 msgid "Rename Album"
 msgstr ""
 
-#: ../lib/albumItem.php:165 ../lib/albumItem.php:166
+#: ../lib/albumItem.php:166 ../lib/albumItem.php:167
 msgid "Reset Counter"
 msgstr ""
 
-#: ../lib/albumItem.php:177 ../lib/albumItem.php:178 ../view_album.php:316
+#: ../lib/albumItem.php:178 ../lib/albumItem.php:179 ../view_album.php:316
 msgid "Permissions"
 msgstr ""
 
-#: ../lib/albumItem.php:185 ../lib/albumItem.php:186
+#: ../lib/albumItem.php:186 ../lib/albumItem.php:187
 #: ../watermark_album.php:114 ../watermark_album.php:118
 msgid "Watermark Album"
 msgstr ""
 
-#: ../lib/albumItem.php:192 ../lib/albumItem.php:193
+#: ../lib/albumItem.php:193 ../lib/albumItem.php:194
 msgid "View Comments"
 msgstr ""
 
-#: ../lib/albumItem.php:200 ../lib/albumItem.php:201
+#: ../lib/albumItem.php:201 ../lib/albumItem.php:202
 msgid "Copy"
 msgstr ""
 
-#: ../lib/albumItem.php:208 ../lib/albumItem.php:209
+#: ../lib/albumItem.php:209 ../lib/albumItem.php:210
 msgid "Show"
 msgstr ""
 
-#: ../lib/albumItem.php:214 ../lib/albumItem.php:215
+#: ../lib/albumItem.php:215 ../lib/albumItem.php:216
 msgid "Hide"
 msgstr ""
 
-#: ../lib/albumItem.php:223 ../lib/albumItem.php:224
+#: ../lib/albumItem.php:224 ../lib/albumItem.php:225
 msgid "Reorder"
 msgstr ""
 
-#: ../lib/albumItem.php:231 ../lib/albumItem.php:232
+#: ../lib/albumItem.php:232 ../lib/albumItem.php:233
 msgid "Set as highlight"
 msgstr ""
 
-#: ../lib/albumItem.php:240 ../lib/albumItem.php:241 ../photo_owner.php:78
+#: ../lib/albumItem.php:241 ../lib/albumItem.php:242 ../photo_owner.php:78
 #: ../photo_owner.php:82
 msgid "Change Owner"
 msgstr ""
 
-#: ../lib/albumItem.php:271 ../lib/albumItem.php:272
+#: ../lib/albumItem.php:272 ../lib/albumItem.php:273
 msgid "Photo properties"
 msgstr ""
 
-#: ../lib/albumItem.php:284 ../lib/albumItem.php:285
+#: ../lib/albumItem.php:285 ../lib/albumItem.php:286
 #, php-format
 msgid "%s actions"
 msgstr ""
@@ -2965,7 +2965,7 @@
 msgid "Enter the Gallery"
 msgstr ""
 
-#: ../new_password.php:120 ../user_preferences.php:130
+#: ../new_password.php:120 ../user_preferences.php:131
 msgid "You can change your user information here."
 msgstr ""
 
@@ -3055,7 +3055,7 @@
 msgid "Results Breakdown"
 msgstr ""
 
-#: ../poll_results.php:148 ../view_album.php:504 ../view_album.php:789
+#: ../poll_results.php:148 ../view_album.php:507 ../view_album.php:800
 #, php-format
 msgid "Album: %s"
 msgstr ""
@@ -4328,11 +4328,11 @@
 msgid "User successfully updated."
 msgstr ""
 
-#: ../user_preferences.php:131
+#: ../user_preferences.php:132
 msgid "If you want to change your password, you must provide your old password and then enter the new one twice."
 msgstr ""
 
-#: ../user_preferences.php:132
+#: ../user_preferences.php:133
 msgid "You can change your username to any combination of letters and digits."
 msgstr ""
 
@@ -4385,152 +4385,152 @@
 msgid "Unable to determine image dimensions!"
 msgstr ""
 
-#: ../util.php:434
+#: ../util.php:435
 #, php-format
 msgid "Can't write to %s."
 msgstr ""
 
-#: ../util.php:441
+#: ../util.php:442
 #, php-format
 msgid "Can't read %s."
 msgstr ""
 
-#: ../util.php:663
+#: ../util.php:664
 #, php-format
 msgid "Item Capture Date : %s"
 msgstr ""
 
-#: ../util.php:708
+#: ../util.php:709
 #, php-format
 msgid "Could not open lock file (%s) for writing!"
 msgstr ""
 
-#: ../util.php:713
+#: ../util.php:714
 #, php-format
 msgid "Could not acquire lock (%s)!"
 msgstr ""
 
-#: ../util.php:796
+#: ../util.php:797
 #, php-format
 msgid "extension of file %s is %s"
 msgstr ""
 
-#: ../util.php:905
+#: ../util.php:906
 #, php-format
 msgid "Extracting: %s with %s"
 msgstr ""
 
-#: ../util.php:923
+#: ../util.php:924
 #, php-format
 msgid "%s with extension %s is not an supported archive."
 msgstr ""
 
-#: ../util.php:938
+#: ../util.php:939
 msgid "No Support for creating Zips"
 msgstr ""
 
-#: ../util.php:941
+#: ../util.php:942
 #, php-format
 msgid "Creating Zipfile with %s"
 msgstr ""
 
-#: ../util.php:955
+#: ../util.php:956
 #, php-format
 msgid "Your tempfolder is not writeable! Please check permissions of this dir: %s"
 msgstr ""
 
-#: ../util.php:987
+#: ../util.php:988
 #, php-format
 msgid "Processing file: %s"
 msgstr ""
 
-#: ../util.php:990
+#: ../util.php:991
 #, php-format
 msgid "Processing file '%s' as archive"
 msgstr ""
 
-#: ../util.php:993
+#: ../util.php:994
 #, php-format
 msgid "Skipping %s (%s support not enabled)"
 msgstr ""
 
-#: ../util.php:1002
+#: ../util.php:1003
 msgid "Getting archive content Filenames"
 msgstr ""
 
-#: ../util.php:1020
+#: ../util.php:1021
 msgid "No Metadata"
 msgstr ""
 
-#: ../util.php:1024
+#: ../util.php:1025
 msgid "Processing files in archive"
 msgstr ""
 
-#: ../util.php:1030
+#: ../util.php:1031
 #, php-format
 msgid "%d. %s"
 msgstr ""
 
-#: ../util.php:1033
+#: ../util.php:1034
 #, php-format
 msgid "Could not extract %s"
 msgstr ""
 
-#: ../util.php:1153
+#: ../util.php:1154
 #, php-format
 msgid "Adding %s"
 msgstr ""
 
-#: ../util.php:1173
+#: ../util.php:1174
 #, php-format
 msgid "Need help?  Look in the  %s%s FAQ%s"
 msgstr ""
 
-#: ../util.php:1178
+#: ../util.php:1179
 #, php-format
 msgid "Skipping %s (can't handle %s format)"
 msgstr ""
 
-#: ../util.php:1291
+#: ../util.php:1292
 #, php-format
 msgid "Cannot open logfile: %s"
 msgstr ""
 
-#: ../util.php:1459
+#: ../util.php:1460
 #, php-format
 msgid "Parsing for csv data in file: %s"
 msgstr ""
 
-#: ../util.php:1475
+#: ../util.php:1476
 msgid "csv result:"
 msgstr ""
 
-#: ../util.php:1649
+#: ../util.php:1650
 #, php-format
 msgid "MIMEtype of file %s is %s"
 msgstr ""
 
-#: ../util.php:1739
+#: ../util.php:1740
 #, php-format
 msgid "%s sent you an E-C@rd."
 msgstr ""
 
-#: ../util.php:1837
+#: ../util.php:1838
 #, php-format
 msgid "Gallery was unable to create a tempory subfolder in your tempdir. Please check permissions of this dir: %s"
 msgstr ""
 
-#: ../util.php:1876
+#: ../util.php:1877
 #, php-format
 msgid "'%s' seems not to be a valid file. Download aborted."
 msgstr ""
 
-#: ../util.php:1884
+#: ../util.php:1885
 #, php-format
 msgid "The file '%s' seems not inside Gallery tempdir %s, download aborted."
 msgstr ""
 
-#: ../util.php:1889
+#: ../util.php:1890
 msgid "We are trying to download the tempdir itself ?! Download aborted."
 msgstr ""
 
@@ -4643,111 +4643,102 @@
 msgid "Album Actions"
 msgstr ""
 
-#: ../view_album.php:488
-msgid "You have no votes recorded for this poll."
-msgstr ""
-
-#: ../view_album.php:492
-msgid "Your current choices are"
+#: ../view_album.php:491
+msgid "Your votes are :"
 msgstr ""
 
-#: ../view_album.php:529
-msgid "See full poll results"
+#: ../view_album.php:539
+msgid "[ See full poll results ]"
 msgstr ""
 
-#: ../view_album.php:563
+#: ../view_album.php:571
 msgid ", "
 msgstr ""
 
-#: ../view_album.php:569
+#: ../view_album.php:577
 #, php-format
 msgid "To vote for an image, click on %s."
 msgstr ""
 
-#: ../view_album.php:570
+#: ../view_album.php:579
 #, php-format
 msgid "You MUST click on %s for your vote to be recorded."
 msgstr ""
 
-#: ../view_album.php:571 ../view_album.php:587 ../view_album.php:925
+#: ../view_album.php:579 ../view_album.php:596 ../view_album.php:936
 msgid "Vote"
 msgstr ""
 
-#: ../view_album.php:575
-#, php-format
-msgid "You have a total of %s and can change them if you wish."
-msgstr ""
-
-#: ../view_album.php:576
+#: ../view_album.php:584
 #, php-format
-msgid "1 vote"
-msgid_plural "%d votes"
+msgid "You have a total of %d vote and can change it later if you wish."
+msgid_plural "You have a total of %d votes and can change them later if you wish."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:579
-msgid "You can change your choices if you wish."
+#: ../view_album.php:588
+msgid "You can change your votes later, if you wish."
 msgstr ""
 
-#: ../view_album.php:730 ../view_album.php:731
+#: ../view_album.php:741 ../view_album.php:742
 #, php-format
 msgid "%dkB"
 msgstr ""
 
-#: ../view_album.php:778
+#: ../view_album.php:789
 msgid "highlight"
 msgstr ""
 
-#: ../view_album.php:793
+#: ../view_album.php:804
 msgid "No description"
 msgstr ""
 
-#: ../view_album.php:801
+#: ../view_album.php:812
 #, php-format
 msgid "Last change: %s"
 msgstr ""
 
-#: ../view_album.php:804
+#: ../view_album.php:815
 #, php-format
 msgid "Contains: %s"
 msgstr ""
 
-#: ../view_album.php:804
+#: ../view_album.php:815
 #, php-format
 msgid "1 item"
 msgid_plural "%d items"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:820
+#: ../view_album.php:831
 #, php-format
 msgid "Viewed: %s"
 msgstr ""
 
-#: ../view_album.php:845
+#: ../view_album.php:856
 #, php-format
 msgid "Viewed: 1 time."
 msgid_plural "Viewed: %d times."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:903
+#: ../view_album.php:914
 msgid "Hey! Add some photos."
 msgstr ""
 
-#: ../view_album.php:905
+#: ../view_album.php:916
 msgid "This album is empty."
 msgstr ""
 
-#: ../view_album.php:950
+#: ../view_album.php:961
 msgid "Email me when one of the following actions are done to this album:"
 msgstr ""
 
-#: ../view_album.php:955
+#: ../view_album.php:966
 msgid "Comments are added"
 msgstr ""
 
-#: ../view_album.php:958
+#: ../view_album.php:969
 msgid "Other changes are made"
 msgstr ""
 
@@ -4801,7 +4792,7 @@
 msgid "Send Photo as eCard"
 msgstr ""
 
-#: ../view_photo.php:720
+#: ../view_photo.php:725
 msgid "Email me when comments are added"
 msgstr ""
 
diff -Naur gallery-1.5.3/po/make_mo_files.sh gallery-1.5.4/po/make_mo_files.sh
--- gallery-1.5.3/po/make_mo_files.sh	2003-12-08 16:20:30.000000000 +0100
+++ gallery-1.5.4/po/make_mo_files.sh	2003-12-08 16:20:30.000000000 +0100
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $Id: make_mo_files.sh,v 1.9 2003/12/08 15:20:30 jenst Exp $
+# $Id: make_mo_files.sh 4906 2003-12-08 15:20:30Z jenst $
 
 #    \033          ascii ESCape
 #    \033[<NUM>G   move to column <NUM> (linux console, xterm, not vt100)
diff -Naur gallery-1.5.3/po/README gallery-1.5.4/po/README
--- gallery-1.5.3/po/README	2003-11-03 15:08:59.000000000 +0100
+++ gallery-1.5.4/po/README	2003-11-03 15:08:59.000000000 +0100
@@ -1,4 +1,4 @@
-$Id: README,v 1.5 2003/11/03 14:08:59 jenst Exp $
+$Id: README 4594 2003-11-03 14:08:59Z jenst $
 
 
 Here's how to create a new GALLERY translation (1.4.1 or newer)
diff -Naur gallery-1.5.3/po/transform_fuzzy.pl gallery-1.5.4/po/transform_fuzzy.pl
--- gallery-1.5.3/po/transform_fuzzy.pl	2003-07-28 11:49:27.000000000 +0200
+++ gallery-1.5.4/po/transform_fuzzy.pl	2003-07-28 11:49:27.000000000 +0200
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -n
-# $Id: transform_fuzzy.pl,v 1.2 2003/07/28 09:49:27 jefmcg Exp $
+# $Id: transform_fuzzy.pl 3374 2003-07-28 09:49:27Z jefmcg $
 #
 /^., fuzzy/ and $fuzzy = 1 and next;
 /^$/ and $fuzzy = 0;
diff -Naur gallery-1.5.3/po/update_po_files.sh gallery-1.5.4/po/update_po_files.sh
--- gallery-1.5.3/po/update_po_files.sh	2005-12-23 20:20:39.000000000 +0100
+++ gallery-1.5.4/po/update_po_files.sh	2005-12-23 20:20:39.000000000 +0100
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $Id: update_po_files.sh,v 1.16 2005/12/23 19:20:39 jenst Exp $
+# $Id: update_po_files.sh 12386 2005-12-23 19:20:39Z jenst $
 
 esc=`echo -en "\033"`
 tab="${esc}[5G"
diff -Naur gallery-1.5.3/poll_properties.php gallery-1.5.4/poll_properties.php
--- gallery-1.5.3/poll_properties.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/poll_properties.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: poll_properties.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: poll_properties.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/poll_results.php gallery-1.5.4/poll_results.php
--- gallery-1.5.3/poll_results.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/poll_results.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: poll_results.php,v 1.25.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: poll_results.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/progress_uploading.php gallery-1.5.4/progress_uploading.php
--- gallery-1.5.3/progress_uploading.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/progress_uploading.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: progress_uploading.php,v 1.37.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: progress_uploading.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/publish_xp_docs.php gallery-1.5.4/publish_xp_docs.php
--- gallery-1.5.3/publish_xp_docs.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/publish_xp_docs.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: publish_xp_docs.php,v 1.26.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: publish_xp_docs.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/publish_xp.php gallery-1.5.4/publish_xp.php
--- gallery-1.5.3/publish_xp.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/publish_xp.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: publish_xp.php,v 1.43.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: publish_xp.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/README gallery-1.5.4/README
--- gallery-1.5.3/README	2003-09-01 22:02:52.000000000 +0200
+++ gallery-1.5.4/README	2003-09-01 22:02:52.000000000 +0200
@@ -1,4 +1,4 @@
-$Id: README,v 1.28 2003/09/01 20:02:52 alindeman Exp $
+$Id: README 3848 2003-09-01 20:02:52Z alindeman $
 
 Gallery is now distributed with new documentation, available in the
 docs/ directory of this distribution (won't be present in CVS
diff -Naur gallery-1.5.3/rearrange.php gallery-1.5.4/rearrange.php
--- gallery-1.5.3/rearrange.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/rearrange.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: rearrange.php,v 1.7.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: rearrange.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/register.php gallery-1.5.4/register.php
--- gallery-1.5.3/register.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/register.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: register.php,v 1.36.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: register.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/rename_album.php gallery-1.5.4/rename_album.php
--- gallery-1.5.3/rename_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/rename_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: rename_album.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: rename_album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/reset_votes.php gallery-1.5.4/reset_votes.php
--- gallery-1.5.3/reset_votes.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/reset_votes.php	2006-03-27 17:32:14.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
 /*
-   $Id: reset_votes.php,v 1.18.2.1 2006/03/27 15:31:25 jenst Exp $
+   $Id: reset_votes.php 13338 2006-03-27 15:32:14Z jenst $
 
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
diff -Naur gallery-1.5.3/resize_photo.php gallery-1.5.4/resize_photo.php
--- gallery-1.5.3/resize_photo.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/resize_photo.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: resize_photo.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: resize_photo.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/rotate_photo.php gallery-1.5.4/rotate_photo.php
--- gallery-1.5.3/rotate_photo.php	2006-04-04 23:58:23.000000000 +0200
+++ gallery-1.5.4/rotate_photo.php	2006-04-04 23:58:25.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: rotate_photo.php,v 1.53.2.2 2006/04/04 21:58:23 jenst Exp $
+* $Id: rotate_photo.php 13361 2006-04-04 21:58:25Z jenst $
 */
 ?>
 <?php
diff -Naur gallery-1.5.3/rss.php gallery-1.5.4/rss.php
--- gallery-1.5.3/rss.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/rss.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: rss.php,v 1.24.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: rss.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/save_photos.php gallery-1.5.4/save_photos.php
--- gallery-1.5.3/save_photos.php	2006-04-06 13:49:10.000000000 +0200
+++ gallery-1.5.4/save_photos.php	2006-04-06 13:49:10.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: save_photos.php,v 1.126.2.2 2006/04/06 11:49:10 jenst Exp $
+ * $Id: save_photos.php 13409 2006-04-06 11:49:10Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/search.php gallery-1.5.4/search.php
--- gallery-1.5.3/search.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/search.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: search.php,v 1.80.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: search.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/secure.sh gallery-1.5.4/secure.sh
--- gallery-1.5.3/secure.sh	2004-06-10 17:08:16.000000000 +0200
+++ gallery-1.5.4/secure.sh	2004-06-10 17:08:20.000000000 +0200
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: secure.sh,v 1.12 2004/06/10 15:08:16 jenst Exp $
+# $Id: secure.sh 6294 2004-06-10 15:08:20Z jenst $
 
 if [ -f config.php ]; then
     chmod 644 config.php 
diff -Naur gallery-1.5.3/session.php gallery-1.5.4/session.php
--- gallery-1.5.3/session.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/session.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: session.php,v 1.53.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: session.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/backup_albums.php gallery-1.5.4/setup/backup_albums.php
--- gallery-1.5.3/setup/backup_albums.php	2006-03-27 17:32:10.000000000 +0200
+++ gallery-1.5.4/setup/backup_albums.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: backup_albums.php,v 1.25.2.1 2006/03/27 15:32:10 jenst Exp $
+ * $Id: backup_albums.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/check_imagemagick.php gallery-1.5.4/setup/check_imagemagick.php
--- gallery-1.5.3/setup/check_imagemagick.php	2006-03-27 17:32:10.000000000 +0200
+++ gallery-1.5.4/setup/check_imagemagick.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: check_imagemagick.php,v 1.33.2.1 2006/03/27 15:32:10 jenst Exp $
+ * $Id: check_imagemagick.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.3/setup/check.inc gallery-1.5.4/setup/check.inc
--- gallery-1.5.3/setup/check.inc	2006-03-27 17:32:10.000000000 +0200
+++ gallery-1.5.4/setup/check.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: check.inc,v 1.52.2.1 2006/03/27 15:32:10 jenst Exp $
+ * $Id: check.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/setup/check_mail.php gallery-1.5.4/setup/check_mail.php
--- gallery-1.5.3/setup/check_mail.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/check_mail.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: check_mail.php,v 1.17.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: check_mail.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.3/setup/check_netpbm.php gallery-1.5.4/setup/check_netpbm.php
--- gallery-1.5.3/setup/check_netpbm.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/check_netpbm.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: check_netpbm.php,v 1.40.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: check_netpbm.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.3/setup/check_versions.php gallery-1.5.4/setup/check_versions.php
--- gallery-1.5.3/setup/check_versions.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/check_versions.php	2006-05-02 11:59:13.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: check_versions.php,v 1.29.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: check_versions.php 13579 2006-05-02 09:59:13Z jenst $
  */
 ?>
 <?php 
@@ -27,18 +27,17 @@
 ?>
 <html>
 <head>
-  <title> <?php echo _("Check Versions") ?> </title>
+  <title> <?php echo gTranslate('config', "Check Versions"); ?> </title>
   <?php common_header(); ?>
   <style>
 	.shortdesc { width:30% }
   </style>
   <script type="text/javascript" src="../js/toggle.js"></script>
-</head>
+  </head>
 
 <body dir="<?php echo $gallery->direction ?>">
-<?php configLogin(basename(__FILE__)); ?>
-
-<div class="header"><?php echo _("Check Versions") ?></div>
+ <div class="header"><?php echo _("Check Versions") ?></div>
+<?php    configLogin(basename(__FILE__)); ?>
 
 <div class="sitedesc"><?php
 	echo sprintf(_("This page gives you information about the version of each necessary %s file. "),Gallery());
@@ -52,18 +51,18 @@
 
 $tests = array(
     'errors' => array(
-        'text' => gTranslate('config', "One file is missing, corrupt or older than expected.", "%d files are missing, corrupt or older than expected.",  count($errors), _("All files okay.")),
-        'class' => 'errorpct',
+        'text' => gTranslate('config', "One file is missing, corrupt or older than expected.", "%d files are missing, corrupt or older than expected.",  count($errors), _("All files okay."), true),
+	'class' => 'errorpct',
         'hinttext' => sprintf(_("There are problems with the following files.  Please correct them before configuring %s."), Gallery())
     ),
     'warnings' => array(
-        'text' => gTranslate('config', "One file is more recent than expected.", "%d files are more recent than expected.", count($warnings), _("All files okay.")),
-        'class' => 'warningpct',
+        'text' => gTranslate('config', "One file is more recent than expected.", "%d files are more recent than expected.", count($warnings), _("All files okay."), true),
+	'class' => 'warningpct',
         'hinttext' => sprintf(_("The following files are more up-to-date than expected for this version of %s.  If you are using pre-release code, this is OK."), Gallery())
     ),
     'oks' => array(
-        'text' => gTranslate('config', "One file is up-to-date.", "%d files are up-to-date.", count($oks),  _("All files are up-to-date.")),
-        'class' => 'successpct',
+        'text' => gTranslate('config', "One file is up-to-date.", "%d files are up-to-date.", count($oks),  _("All files are up-to-date."), true),
+	'class' => 'successpct',
         'hinttext' => _("The following files are up-to-date.")
     )
 );
diff -Naur gallery-1.5.3/setup/config_data.inc gallery-1.5.4/setup/config_data.inc
--- gallery-1.5.3/setup/config_data.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/config_data.inc	2006-08-14 09:41:08.000000000 +0200
@@ -2,22 +2,22 @@
 /*
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
- * 
+ *
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: config_data.inc,v 1.301.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: config_data.inc 14310 2006-08-14 07:41:08Z jenst $
  */
 ?>
 <?php
@@ -301,7 +301,7 @@
 			),
 		'value' => 'form',
 		),
-	
+
 	'group_mandatory_end' => array (
 		'type' => 'group_end',
 	),
@@ -315,7 +315,7 @@
 	'albumDir' => array(
 		'prompt' => gTranslate('config',"Album directory"),
 		'desc' => '(<span class="attention">' . gTranslate('config',"REQUIRED") . '</span>) ' .
-		  sprintf(gTranslate('config',"The full path on physical disk to the directory where your photos will be stored.  This directory should start off empty&#8212;Gallery will fill it.  Note that this directory needs to have write access by the user who is running the web server (in your case this user is %s)."),
+		  sprintf(gTranslate('config',"The full path on physical disk to the directory where your photos will be stored.  This directory should start off empty.  Gallery will fill it.  Note that this directory needs to have write access by the user who is running the web server (in your case this user is %s)."),
 		  '<b>'. $webserver_user . '</b>'),
 		'value' => getenv('DOCUMENT_ROOT') . '/albums',
 		'require-write-dir' => 1,
@@ -382,7 +382,7 @@
 	'groupLocations_end' => array (
 		'type' => 'group_end',
 	),
-	
+
 	'groupToolkits' => array (
 		'type' => 'group_start',
 		'name' => 'group_toolkits',
@@ -681,7 +681,7 @@
 	'use_exif' => array(
 		'prompt' => "Jhead EXIF Parser",
 		'desc' => sprintf(gTranslate('config',"The filesystem path to the <b>%s</b> EXIF parser.  E.g. %s or %s. This is optional so if you don't have it, don't worry about it too much."),
-		  '<a href="http://www.sentex.net/~mwandel/jhead/" target=_"blank">jhead</a>', '<i>/usr/local/bin/jhead</i>', '<i>c:\\bin\\jhead.exe</i>'),
+		  '<a href="http://www.sentex.net/~mwandel/jhead/" target="_blank">jhead</a>', '<i>/usr/local/bin/jhead</i>', '<i>c:\\bin\\jhead.exe</i>'),
 		'value' => locateFile('jhead'),
 		'must-be-file' => 1,
 		'must-be-executable' => 1,
@@ -1154,7 +1154,7 @@
 		  gTranslate('config',"The expire time in seconds is specified for each cache below."). "\n<br>".
 		  gTranslate('config',"If the expire time is set to -1 then the cache will not auto refresh.")
 	),
-	
+
 	'stats_foruser'	=> array(
 		'prompt'		=> gTranslate('config',"Available Stats for 'normal' users"),
 		'desc'			=> gTranslate('config',"Gallery can give a lot of statistics for admins, however you can enable some of them to normal users.") ."\n<br>".
@@ -1325,7 +1325,7 @@
 		),
 		'value' => 'no'
 	),
-	
+
 	'devMode' => array(
 		'prompt' => gTranslate('config',"Developer Mode"),
 		'desc' => gTranslate('config',"Turn on developer mode to see all PHP warnings and notices.  Enabling this is not recommended for users that aren't familiar with PHP."),
@@ -1556,7 +1556,7 @@
 	'max_size' => array(
 		'prompt' => gTranslate('config','Maximum image size'),
 		'desc' => gTranslate('config',"You can optionally limit the dimensions your images on upload to Gallery.") .
-		  '<br><span class="attention>'. gTranslate('config',"Warning:") .'</span> '.
+		  '<br><span class="attention">'. gTranslate('config',"Warning:") .'</span> '.
 		  gTranslate('config',"Enabling this feature will leave you <b>without a full size original</b> image in your Gallery, but allows you to save limited hard drive space. Gallery will attempt to preserve JPEG comments and EXIF data for the shrunken image, but this will require either <b>ImageMagick</b> or the optional <b>jhead</b> programs (see Step 2)."),
 		'value' => 'off',
 		'choices' => array(
@@ -1654,7 +1654,7 @@
 	'mPUSHAccount' => array(
 		'prompt' => gTranslate('config',"Account for the mPUSH service"),
 		'desc' => sprintf(gTranslate('config',"If you want to use mPUSH cellular photo service you can either use your own account, or leave this to 'gallery'. Visit this link to %screate your own account%s."),
-		  '<a href="http://mpush.msolutions.cc/safe.php?p=Register&ref=gallery" target="_blank">', '</a>'),
+		  '<a href="http://mpush.msolutions.cc/safe.php?p=Register&amp;ref=gallery" target="_blank">', '</a>'),
 		'value' => 'gallery',
 		'type' => 'text',
 	),
@@ -1944,7 +1944,7 @@
 		  .'<dt>'. gTranslate('config',"Fixed") .'</dt>'
 		  .'<dd>'. gTranslate('config',"Displays prev+next groups of thumbs, changing only to display next group of thumbs.") . '</dd>'
 		  .'<dt>'. gTranslate('config',"Dynamic") . '</dt>'
-		  .'<dd>'. gTranslate('config',"Displays previos & next images, with current image between.") . '</dd>'
+		  .'<dd>'. gTranslate('config',"Displays previous & next images, with current image between.") . '</dd>'
 		  .'</dl>',
 		'value' => 'fixed',
 		'choices' => array(
@@ -2018,8 +2018,7 @@
 		'prompt' => gTranslate('config',"Subalbum frames"),
 		'desc' => gTranslate('config',"This frame will appear around the thumbnail image representing a subalbum."),
 		'choices' => available_frames(),
-		'value' => 
-		'simple_book'
+		'value' => 'simple_book'
 	),
 	'thumb_frame' => array(
 		'prompt' => gTranslate('config',"Frame around thumbs"),
diff -Naur gallery-1.5.3/setup/confirm.inc gallery-1.5.4/setup/confirm.inc
--- gallery-1.5.3/setup/confirm.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/confirm.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: confirm.inc,v 1.111.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: confirm.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 
diff -Naur gallery-1.5.3/setup/constants.inc gallery-1.5.4/setup/constants.inc
--- gallery-1.5.3/setup/constants.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/constants.inc	2006-08-15 14:14:12.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: constants.inc,v 1.52.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: constants.inc 14327 2006-08-15 12:14:12Z jenst $
  */
 ?>
 <?php
@@ -30,7 +30,7 @@
 <div class="header"><?php echo sprintf (_("Gallery Configuration Wizard: Step %d"),2); ?></div>
 
 <div class="sitedesc">
-<?php 
+<?php
 	echo _("In this step you'll customize various settings for Gallery.  If this is the first time you've customized Gallery, you'll notice that we've tried to pick reasonable defaults for you.  Even so, you'll probably have to make at least some minor changes.  If you've already configured Gallery before, then you'll notice that this page already has your current settings loaded, so you probably won't need to do much.");
 	echo '<br>';
 	echo _("Switch through the corresponding tab and fill the values you need. Some, but not all values are required. If you have finished this step use the button to go to the next Step.");
@@ -46,7 +46,9 @@
 </p>
 <?php
 
-makeSectionTabs($constants);
+$initialtab = makeSectionTabs($constants);
+echo '<input name="initialtab" id="initialtab" type="hidden" value="'. $initialtab .'">';
+echo "<div style=\"clear: both\"></div>";
 
 ?>
 <script type="text/javascript" language="Javascript">
@@ -66,7 +68,7 @@
 $i = 0;
 foreach ($constants as $key => $val) {
 	if( isset($val["enabled"]) && $val["enabled"] == "no") continue;
-	
+
 	if (isset($val["type"]) && ($val["type"] === "block_start" )) {
 		echo "\n<table width=\"100%\" class=\"inner\">";
 		echo evenOdd_row(make_fields($key, $val), $i % 2);
@@ -81,7 +83,7 @@
         }
         continue;
     }
-    
+
     if (isset($val["type"]) && ($val["type"] === 'subgroup_end' )) {
         echo '</div>';
         continue;
@@ -97,9 +99,9 @@
 		echo "\n<div id=\"". $val["name"] ."\" style=\"display: ". $val["default"] ."\">";
 		echo make_separator($key, $val);
 		continue;
-	
+
 	}
-	
+
 	if (isset($val["type"]) && ($val["type"] === 'group_end' )) {
 		echo "\n</div>";
 		continue;
@@ -110,7 +112,7 @@
 
 	/* if the variable is hidden, lock it in as we don't want to use previous values*/
 	if (isset($val["type"]) && ($val["type"] === "hidden")) {
-	       	if (!empty($val["persistent"]) && 
+	       	if (!empty($val["persistent"]) &&
 				isset($gallery->app->$key)) {
 			$val["value"] = $gallery->app->$key;
 		}
@@ -132,7 +134,7 @@
 		if (isset($app->$key)) {
 			$val["value"] = $app->$key;
 		}
-	
+
 		/* $gallery->app-> is the desired container, however */
 		if (isset($gallery->app->$key)) {
 			$val["value"] = $gallery->app->$key;
@@ -151,7 +153,7 @@
 			}
 			else if(isset($gallery->session->configForm->$key)) {
 				$val["value"] = $gallery->session->configForm->$key;
-	
+
 			}
 			if (get_magic_quotes_gpc() && !isset($val['noStripSlash'])) {
 				if (is_array($val["value"])) {
@@ -169,7 +171,7 @@
 		else {
 			$val['value'] = '';
                 }
-	
+
 		echo evenOdd_row(make_fields($key, $val), $i++ % 2);
 	}
 
diff -Naur gallery-1.5.3/setup/defaults.inc gallery-1.5.4/setup/defaults.inc
--- gallery-1.5.3/setup/defaults.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/defaults.inc	2006-08-15 14:14:12.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: defaults.inc,v 1.36.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: defaults.inc 14327 2006-08-15 12:14:12Z jenst $
  */
 ?>
 <input type="hidden" name="this_page" value="defaults">
@@ -48,7 +48,9 @@
 </p>
 
 <?php
-	makeSectionTabs($defaults);
+	$initialtab = makeSectionTabs($defaults);
+	echo '<input name="initialtab" id="initialtab" type="hidden" value="'. $initialtab .'">';
+	echo "<div style=\"clear: both\"></div>";
 
 $i = 0;
 foreach ($defaults as $key => $val) {
@@ -102,7 +104,7 @@
 
 	if (!isset($go_defaults) && isset($gallery->session->configForm->$key)) {
 		$val["value"] = $gallery->session->configForm->$key;
-		
+
 		if (get_magic_quotes_gpc()) {
 			$val["value"] = array_stripslashes($val["value"]);
 		}
@@ -120,7 +122,7 @@
 
 	$onThisPage[$key] = 1;
 	$preserve[$key] = 1;
-	
+
 	echo "\n</table>";
 }
 ?>
diff -Naur gallery-1.5.3/setup/diagnostics.php gallery-1.5.4/setup/diagnostics.php
--- gallery-1.5.3/setup/diagnostics.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/diagnostics.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: diagnostics.php,v 1.27.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: diagnostics.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.3/setup/frame_test.php gallery-1.5.4/setup/frame_test.php
--- gallery-1.5.3/setup/frame_test.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/frame_test.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: frame_test.php,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: frame_test.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/ghcc.php gallery-1.5.4/setup/ghcc.php
--- gallery-1.5.3/setup/ghcc.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/ghcc.php	2006-03-27 17:32:14.000000000 +0200
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: ghcc.php,v 1.11.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: ghcc.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/gpl.txt gallery-1.5.4/setup/gpl.txt
--- gallery-1.5.3/setup/gpl.txt	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/gpl.txt	2006-03-27 17:32:14.000000000 +0200
@@ -17,6 +17,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: gpl.txt,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: gpl.txt 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
diff -Naur gallery-1.5.3/setup/.htaccess gallery-1.5.4/setup/.htaccess
--- gallery-1.5.3/setup/.htaccess	2004-09-02 21:59:38.000000000 +0200
+++ gallery-1.5.4/setup/.htaccess	2004-09-02 21:59:38.000000000 +0200
@@ -1,4 +1,4 @@
-# $Id: .htaccess,v 1.17 2004/09/02 19:59:38 cryptographite Exp $
+# $Id: .htaccess 7444 2004-09-02 19:59:38Z cryptographite $
 <IfModule sapi_apache2.c>
 php_value auto_prepend_file	./php_value_ok.php
 php_value magic_quotes_gpc off
diff -Naur gallery-1.5.3/setup/index.php gallery-1.5.4/setup/index.php
--- gallery-1.5.3/setup/index.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/index.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: index.php,v 1.78.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: index.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/init.php gallery-1.5.4/setup/init.php
--- gallery-1.5.3/setup/init.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/init.php	2006-07-12 13:48:20.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: init.php,v 1.55.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: init.php 13957 2006-07-12 11:48:20Z jenst $
  */
 ?>
 <?php
@@ -31,7 +31,8 @@
 
 /* define the constants */
 setGalleryPaths();
-if (!isset($gallery->app->photoAlbumURL)) {
+
+if (!isset($gallery) || !isset($gallery->app->photoAlbumURL)) {
     define ('GALLERY_URL','..');
 }
 
diff -Naur gallery-1.5.3/setup/login.inc gallery-1.5.4/setup/login.inc
--- gallery-1.5.3/setup/login.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/login.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: login.inc,v 1.20.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: login.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/mod_rewrite.template gallery-1.5.4/setup/mod_rewrite.template
--- gallery-1.5.3/setup/mod_rewrite.template	2004-02-25 06:15:40.000000000 +0100
+++ gallery-1.5.4/setup/mod_rewrite.template	2004-02-25 06:15:40.000000000 +0100
@@ -1,4 +1,4 @@
-# $Id: mod_rewrite.template,v 1.8 2004/02/25 05:15:40 cryptographite Exp $
+# $Id: mod_rewrite.template 5352 2004-02-25 05:15:40Z cryptographite $
 
 Options -Indexes +FollowSymLinks
 <IfModule mod_rewrite.c>
diff -Naur gallery-1.5.3/setup/phpinfo.php gallery-1.5.4/setup/phpinfo.php
--- gallery-1.5.3/setup/phpinfo.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/phpinfo.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: phpinfo.php,v 1.13.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: phpinfo.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/php_value_ok.php gallery-1.5.4/setup/php_value_ok.php
--- gallery-1.5.3/setup/php_value_ok.php	2003-07-28 11:49:27.000000000 +0200
+++ gallery-1.5.4/setup/php_value_ok.php	2003-07-28 11:49:27.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: php_value_ok.php,v 1.5 2003/07/28 09:49:27 jefmcg Exp $ */ ?>
+<?php /* $Id: php_value_ok.php 3374 2003-07-28 09:49:27Z jefmcg $ */ ?>
 <?php
 // If we include this file it means that the php_value directive in .htaccess 
 // was obeyed.
diff -Naur gallery-1.5.3/setup/php_value.template gallery-1.5.4/setup/php_value.template
--- gallery-1.5.3/setup/php_value.template	2004-09-21 07:15:46.000000000 +0200
+++ gallery-1.5.4/setup/php_value.template	2004-09-21 07:15:47.000000000 +0200
@@ -1,4 +1,4 @@
-# $Id: php_value.template,v 1.11 2004/09/21 05:15:46 cryptographite Exp $
+# $Id: php_value.template 7649 2004-09-21 05:15:47Z cryptographite $
 
 php_value post_max_size 20971520
 php_value upload_max_filesize 20971520
diff -Naur gallery-1.5.3/setup/session_test.php gallery-1.5.4/setup/session_test.php
--- gallery-1.5.3/setup/session_test.php	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/session_test.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: session_test.php,v 1.30.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: session_test.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/setup/write.inc gallery-1.5.4/setup/write.inc
--- gallery-1.5.3/setup/write.inc	2006-03-27 17:32:13.000000000 +0200
+++ gallery-1.5.4/setup/write.inc	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: write.inc,v 1.70.2.1 2006/03/27 15:32:13 jenst Exp $
+ * $Id: write.inc 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/skins/bars002/css/screen.css gallery-1.5.4/skins/bars002/css/screen.css
--- gallery-1.5.3/skins/bars002/css/screen.css	2005-12-23 20:26:50.000000000 +0100
+++ gallery-1.5.4/skins/bars002/css/screen.css	2005-12-23 20:26:50.000000000 +0100
@@ -13,7 +13,7 @@
    Some of the styles below are overriden by specific
    album properties. These are noted
 
-   $Id: screen.css,v 1.5 2005/12/23 19:26:50 jenst Exp $
+   $Id: screen.css 12387 2005-12-23 19:26:50Z jenst $
 */
 
 
diff -Naur gallery-1.5.3/skins/bpurple/css/screen.css gallery-1.5.4/skins/bpurple/css/screen.css
--- gallery-1.5.3/skins/bpurple/css/screen.css	2005-09-24 13:43:55.000000000 +0200
+++ gallery-1.5.4/skins/bpurple/css/screen.css	2006-08-14 09:52:34.000000000 +0200
@@ -136,7 +136,7 @@
 .pcaption  /* modifies background for caption text to reside */
        {
          font-family:verdana, arial, sans-serif;
-         color: FFFFFF;
+         color: #FFF;
          font-size: 10px;
          font-weight:bold;
          background-color: #202020;
diff -Naur gallery-1.5.3/skins/bpurple/style.def gallery-1.5.4/skins/bpurple/style.def
--- gallery-1.5.3/skins/bpurple/style.def	2005-02-21 12:14:16.000000000 +0100
+++ gallery-1.5.4/skins/bpurple/style.def	2006-08-14 09:52:34.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
-$name=_("Bpurple");
-$description=_("White with grey pipes and purple highlight");
-$version='1.0.4';
-$last_update='2005-02-21';
+$name = _("Bpurple");
+$description = _("White with grey pipes and purple highlight");
+$version = '1.0.5';
+$last_update = '2006-08-14';
 ?>
diff -Naur gallery-1.5.3/skins/bred/css/screen.css gallery-1.5.4/skins/bred/css/screen.css
--- gallery-1.5.3/skins/bred/css/screen.css	2005-09-24 13:43:55.000000000 +0200
+++ gallery-1.5.4/skins/bred/css/screen.css	2006-08-14 09:52:34.000000000 +0200
@@ -136,7 +136,7 @@
 .pcaption  /* modifies background for caption text to reside */
        {
          font-family:verdana, arial, sans-serif;
-         color: FFFFFF;
+         color: #FFF;
          font-size: 10px;
          font-weight:bold;
          background-color: #202020;
diff -Naur gallery-1.5.3/skins/bred/style.def gallery-1.5.4/skins/bred/style.def
--- gallery-1.5.3/skins/bred/style.def	2005-02-21 12:14:31.000000000 +0100
+++ gallery-1.5.4/skins/bred/style.def	2006-08-14 09:52:34.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
-$name=_("Bred");
-$description=_("White with grey pipes and pink highlight");
-$version='1.0.4';
-$last_update='2005-02-21';
+$name = _("Bred");
+$description = _("White with grey pipes and pink highlight");
+$version = '1.0.5';
+$last_update = '2006-08-14';
 ?>
diff -Naur gallery-1.5.3/skins/hotred/css/screen.css gallery-1.5.4/skins/hotred/css/screen.css
--- gallery-1.5.3/skins/hotred/css/screen.css	2005-03-01 11:59:22.000000000 +0100
+++ gallery-1.5.4/skins/hotred/css/screen.css	2006-08-14 09:41:08.000000000 +0200
@@ -361,4 +361,5 @@
 .popup {
     font-size: 12px;
     background-image: url(../images/mod_descbg.jpg);
+    color: #000;
 }
diff -Naur gallery-1.5.3/skins/hotred/style.def gallery-1.5.4/skins/hotred/style.def
--- gallery-1.5.3/skins/hotred/style.def	2005-03-01 11:59:21.000000000 +0100
+++ gallery-1.5.4/skins/hotred/style.def	2006-08-14 09:41:08.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
-$name=_("Hot Red");
-$description=_("Black with red pipes and highlights, white text");
-$version='1.0.3';
-$last_update='2005-03-01';
+$name = _("Hot Red");
+$description = _("Black with red pipes and highlights, white text");
+$version='1.0.4';
+$last_update='2006-08-14';
 ?>
diff -Naur gallery-1.5.3/skins/jenskin/css/screen.css gallery-1.5.4/skins/jenskin/css/screen.css
--- gallery-1.5.3/skins/jenskin/css/screen.css	2006-03-27 17:32:14.000000000 +0200
+++ gallery-1.5.4/skins/jenskin/css/screen.css	2006-08-14 09:41:08.000000000 +0200
@@ -1,56 +1,61 @@
-/* 
+/*
    default text styles - background and colors overriden by
    album 'bgcolor', 'background', and 'textcolor' properties.
 */
 /*
-  $Id: screen.css,v 1.8.2.1 2006/03/27 15:32:14 jenst Exp $
- 
+  $Id: screen.css 14310 2006-08-14 07:41:08Z jenst $
+
   Gallery - a web based photo album viewer and editor
   Copyright (C) 2000-2006 Bharat Mediratta
- 
+
   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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 
-*/ 
+*/
 
 textarea:focus, input:focus, select:focus {
     background-color: #FFFFDA;
 }
 
-.commentbox	{ 
+.commentbox	{
     border-width:1px; border-style:solid; border-color: #000000;
     padding:2px;
 }
-		
-.commentboxhead	{ background-color: #FCFCF3; padding:2px;
-		  border-bottom-width:1px; border-bottom-style: solid; border-color: #000000;
-		  font-size:10pt;
-		}
+
+.commentboxhead	{
+    background-color: #FCFCF3;
+    padding:2px;
+    border-bottom-width:1px; border-bottom-style: solid; border-color: #000000;
+    font-size:10pt;
+}
 
 .commentlabel	{ background-color: #DCDCC0; padding:5px; font-weight: bold;
 		  font-size:10pt;
 		}
 
-.commentboxfooter { 
+.commentboxfooter {
 	background-color: #FCFCF3; padding:2px;
 	border-top-width:1px; border-top-style: solid; border-color: #000000;
 	font-size:10pt;
 }
 
-.sitedesc	{ background-color: #FCFCF3; margin-top:25px; padding:5px;
-		  border-style: solid; border-width: 1px ; border-color: #000000;
-		}
+.sitedesc	{
+    background-color: #FCFCF3;
+    margin-top: 25px;
+    padding: 5px;
+    border: 1px solid #000;
+}
 
 .inner		{ padding: 5px; margin-top:20px;
 		  border-style: solid; border-color: #000000; border-width:1px;
@@ -59,28 +64,28 @@
 .shortdesc	{ background-color: #DCDCC0; padding:5px; font-weight: bold;
 		}
 
-body	{ 
+body	{
 	  color: #000000;
 	  font-family: Verdana, Arial, Helvetica, sans-serif;
 	  background-image: url(../images/simplex-bkg.gif);
 	}
 
-a:link, a:visited { 
+a:link, a:visited {
 	color: #000000;
 		}
 
-a:hover { 
+a:hover {
     color: #000099;
     text-decoration: none;
 }
 
-/* 
-   text styles 
+/*
+   text styles
 */
 .title                          /* album titles on main page */
-	{ 
-	  font-size: 14px; 
-	  font-weight: bold; 
+	{
+	  font-size: 14px;
+	  font-weight: bold;
 	}
 
 .mod_title			/* album title -- Text is controlled by .title */
@@ -96,19 +101,23 @@
 	color:#000000;
 	}
 
-.desc	{ background-color: #FCFCF3 ; padding:3px; margin:8px; font-size:1.0em;
-	  width:80%;
-	  border-style: solid; border-color: #000000; 
-	  border-width:1px; -Moz-Border-Radius: 20px;
-	}
+.desc	{
+    background-color: #FCFCF3 ;
+    padding: 3px;
+    margin:8px;
+    font-size: 1.0em;
+    width: 80%;
+    border: 1px solid #000;
+    -Moz-Border-Radius: 10px;
+}
 
 .caption                        /* photo captions on all pages */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	}
 .modcaption  /* modifies background for caption text to reside */
 	{
-	  font-size: 10px; 
+	  font-size: 10px;
 	}
 
 .error {
@@ -132,30 +141,30 @@
 
 /*
 .warning        { font-weight:bold; background-color: #FFFF33; color: #000000 ;
-		  width: 150px; padding:2px; 
+		  width: 150px; padding:2px;
 		}
 */
 
-.headbox { 
+.headbox {
 	  background-color: #E6E6DC; font-size: 1.5em;  font-weight:bold; padding:10px;
 	  border-style: solid; border-width: 1px; border-color: #F0F0F0;
 	}
 
 .head                           /* page headers */
-	{ 
-	  font-size: 16px; 
-	  font-weight: bold; 
+	{
+	  font-size: 16px;
+	  font-weight: bold;
 	}
 
 .bread                          /* used in breadcrumb bars */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	}
 .nav                            /* used in navigation bars */
-	{ 
-	  font-size: 12px; 
+	{
+	  font-size: 12px;
 	}
-	
+
 .navtableborderbegin{
 	border:1px solid #000000;
 }
@@ -194,7 +203,7 @@
 	}
 
 input, select, option, textarea
-	{ 
+	{
 	  background-color: #FCFCFF; padding-left:5px; -Moz-Border-Radius: 20px;
 	}
 
@@ -205,22 +214,22 @@
 	}
 
 .admin                          /* used in admin bars */
-	{ 
-	  font-size: 10px; 
-	  font-weight: bold; 
+	{
+	  font-size: 10px;
+	  font-weight: bold;
 }
 
-.adminform { 
-    font-size: 10px; 
-    font-weight: bold; 
+.adminform {
+    font-size: 10px;
+    font-weight: bold;
 }
 
 .search                          /* used in search text */
-	{ 
-	  font-size: 10px; 
+	{
+	  font-size: 10px;
 	  font-weight: bold;
 	}
-	
+
 /* controls the background of popup. */
 .popupbody {
     margin: 5px;
@@ -228,7 +237,7 @@
     font-size: 12px;
  }
 
-.popuphead { 
+.popuphead {
     font-size: 16px; font-weight: bold;
     text-align: center;
     background-color: #FCFCF3;
@@ -237,48 +246,51 @@
     border: 1px solid black;
 }
 
-.popup /* controls the main text and message body */
- {
- }
+/* controls the main text and message body */
+.popup {
+    color: #000;
+}
 
 .popupform /* controls form textarea */
  {
  }
 
 .commentIndication {
-        color: red;
+    color: red;
 	font-weight: bold; font-size: 12px;
 	vertical-align:top;
-}.pview /* brackets both the image and all text in one frame */
+}
+
+.pview /* brackets both the image and all text in one frame */
 {
 	margin:7px;
 	padding: 7px;
  }
 
 .pcaption /* brackets all text below photo */
-{ 
+{
 	padding:2px;
 	margin-top:2px;
  }
 
 .vatable /* width of the div set for all photo sets - view albums  */
- { 
+ {
  	width: 100%;
  }
 
 .vathumbs /* full background bracket for images and text - veiw albums  */
- { 
+ {
 	margin:17px;
  }
 
 .vafloat /* float for view album - text */
  {
-	float: none; 
+	float: none;
  }
 
 .vafloat2 /* float for view album - images */
  {
-	float: none; 
+	float: none;
  }
 
 .vasummary /* controls the view of Album summary */
@@ -331,9 +343,44 @@
 
 .noLink {
     font-size: 10px;
-//	padding: 3px;
 }
 
 .debugmessage {
     font-size: 10px;
+}
+
+.g-va-poll-resultbox {
+    background-color: #FCFCF3;
+    margin: 2px 20px;
+    padding: 3px;
+    border: 1px solid #000;
+    -Moz-Border-Radius: 5px;
+}
+
+.separator {
+    font-size: 15px;
+    font-weight: bold;
+    color: #c64934;
+    padding: 0 10px 4px 0;
+    border-bottom: 1px solid #c64934;
+    margin-bottom: 5px;
+}
+
+.g-tabset {
+}
+
+.g-tabset a {
+    color: #000;
+    background-color: #FCFCF3;
+}
+
+.g-tabset a:hover {
+    color: #000;
+    background-color: #DCDCC0;
+}
+
+.g-tabset a.tab-hi {
+    border-bottom: 1px solid #000;
+    background-color: #009;
+    color: #fff;
 }
\ Pas de fin de ligne  la fin du fichier.
diff -Naur gallery-1.5.3/skins/jenskin/style.def gallery-1.5.4/skins/jenskin/style.def
--- gallery-1.5.3/skins/jenskin/style.def	2006-01-08 21:15:13.000000000 +0100
+++ gallery-1.5.4/skins/jenskin/style.def	2006-08-13 06:16:40.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
 $name=_("Jenskin");
 $description=_("A Skin made by Jens. It looks like the config wizard.");
-$version='1.0.11';
-$last_update='2006-01-08';
+$version='1.0.12';
+$last_update='2006-08-13';
 ?>
diff -Naur gallery-1.5.3/skins/madmod1/tpl/album.header.tpl gallery-1.5.4/skins/madmod1/tpl/album.header.tpl
--- gallery-1.5.3/skins/madmod1/tpl/album.header.tpl	2004-09-01 21:14:29.000000000 +0200
+++ gallery-1.5.4/skins/madmod1/tpl/album.header.tpl	2004-09-01 21:14:29.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: album.header.tpl,v 1.1 2004/09/01 19:14:29 jadeadragon Exp $ */ ?>
+<?php /* $Id: album.header.tpl 7430 2004-09-01 19:14:29Z jadeadragon $ */ ?>
 <?php
 global $navigator;
 // Calculate the beginning and ending of the navigator range
diff -Naur gallery-1.5.3/skins/madmod1/tpl/breadcrumb.tpl gallery-1.5.4/skins/madmod1/tpl/breadcrumb.tpl
--- gallery-1.5.3/skins/madmod1/tpl/breadcrumb.tpl	2005-02-01 12:36:40.000000000 +0100
+++ gallery-1.5.4/skins/madmod1/tpl/breadcrumb.tpl	2005-02-01 12:36:40.000000000 +0100
@@ -1,5 +1,5 @@
 <?php
-// $Id: breadcrumb.tpl,v 1.2 2005/02/01 11:36:40 jenst Exp $
+// $Id: breadcrumb.tpl 8909 2005-02-01 11:36:40Z jenst $
 global $breadcrumb, $navigator, $gallery;
 // If the border color is not passed in, we do a black/white combo
 
diff -Naur gallery-1.5.3/skins/madmod1/tpl/gallery.header.tpl gallery-1.5.4/skins/madmod1/tpl/gallery.header.tpl
--- gallery-1.5.3/skins/madmod1/tpl/gallery.header.tpl	2004-09-01 21:14:29.000000000 +0200
+++ gallery-1.5.4/skins/madmod1/tpl/gallery.header.tpl	2004-09-01 21:14:29.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: gallery.header.tpl,v 1.1 2004/09/01 19:14:29 jadeadragon Exp $ */ ?>
+<?php /* $Id: gallery.header.tpl 7430 2004-09-01 19:14:29Z jadeadragon $ */ ?>
 <?php
 global $navigator;
 // Calculate the beginning and ending of the navigator range
diff -Naur gallery-1.5.3/skins/madmod1/tpl/photo.header.tpl gallery-1.5.4/skins/madmod1/tpl/photo.header.tpl
--- gallery-1.5.3/skins/madmod1/tpl/photo.header.tpl	2004-09-01 21:14:29.000000000 +0200
+++ gallery-1.5.4/skins/madmod1/tpl/photo.header.tpl	2004-09-01 21:14:29.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: photo.header.tpl,v 1.1 2004/09/01 19:14:29 jadeadragon Exp $ */ ?>
+<?php /* $Id: photo.header.tpl 7430 2004-09-01 19:14:29Z jadeadragon $ */ ?>
 <?php
 global $navigator;
 
diff -Naur gallery-1.5.3/skins/madmod1/tpl/slideshow.header.tpl gallery-1.5.4/skins/madmod1/tpl/slideshow.header.tpl
--- gallery-1.5.3/skins/madmod1/tpl/slideshow.header.tpl	2004-09-01 21:14:29.000000000 +0200
+++ gallery-1.5.4/skins/madmod1/tpl/slideshow.header.tpl	2004-09-01 21:14:29.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: slideshow.header.tpl,v 1.1 2004/09/01 19:14:29 jadeadragon Exp $ */ ?>
+<?php /* $Id: slideshow.header.tpl 7430 2004-09-01 19:14:29Z jadeadragon $ */ ?>
 <?php
 global $navigator;
 // Calculate the beginning and ending of the navigator range
diff -Naur gallery-1.5.3/skins/yellow/css/screen.css gallery-1.5.4/skins/yellow/css/screen.css
--- gallery-1.5.3/skins/yellow/css/screen.css	2005-04-21 23:39:54.000000000 +0200
+++ gallery-1.5.4/skins/yellow/css/screen.css	2006-08-14 09:41:08.000000000 +0200
@@ -112,9 +112,12 @@
 	  color: red; 
 	  font-size: 12px; 
 	}
-.attention /* voting instructions */
-	{
-	}
+
+/* Voting instructions */
+.attention{
+    color: #00a;
+}
+
 .headbox  /* box around the page headers */
 	{
 	}
@@ -192,7 +195,9 @@
 .popup {
     border:1px dashed #F5BF50;
     font-size: 12px;
+    color: #000;
 }
+
 .editlink,  /* Used for the [edit] tags */
 .editlink a,
 .editlink a:link,
diff -Naur gallery-1.5.3/skins/yellow/style.def gallery-1.5.4/skins/yellow/style.def
--- gallery-1.5.3/skins/yellow/style.def	2005-02-18 15:41:56.000000000 +0100
+++ gallery-1.5.4/skins/yellow/style.def	2006-08-14 09:41:08.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
-$name=_("Yellow");
-$description=_("Yellow with yellow pipes and red highlights");
-$version='1.0.3';
-$last_update='2005-02-17';
+$name = _("Yellow");
+$description = _("Yellow with yellow pipes and red highlights");
+$version = '1.0.4';
+$last_update = '2006-08-14';
 ?>
diff -Naur gallery-1.5.3/slideshow.php gallery-1.5.4/slideshow.php
--- gallery-1.5.3/slideshow.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/slideshow.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: slideshow.php,v 1.81.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: slideshow.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/sort_album.php gallery-1.5.4/sort_album.php
--- gallery-1.5.3/sort_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/sort_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: sort_album.php,v 1.38.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: sort_album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/stamp_preview.php gallery-1.5.4/stamp_preview.php
--- gallery-1.5.3/stamp_preview.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/stamp_preview.php	2006-03-27 17:32:14.000000000 +0200
@@ -1,64 +1,64 @@
-<?php
-/*
- * Gallery - a web based photo album viewer and editor
- * Copyright (C) 2000-2006 Bharat Mediratta
- *
- * This file Copyright (C) 2003-2004 Joan McGalliard
- *
- * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
- *
- * $Id: stamp_preview.php,v 1.3.2.1 2006/03/27 15:31:25 jenst Exp $
- */
-?>
-<?php
-// ###################################################################
-// # IBPS E-C@ard for Gallery           Version 1                    #
-// # Copyright 2002 IBPS Friedrichs     info@ibps-friedrichs.de      #
-// # Ported for Gallery By freenik      webmaster@cittadipolicoro.com#
-// ###################################################################
-
-/* Modified by Jens Tkotz <jens@jems.de> */
-?>
-<?php
-
-require_once(dirname(__FILE__) . '/init.php');
-
-doctype();
-?>
-<html>
-    <?php common_header(); ?>
-    <title><?php echo _("Poststamp preview"); ?></title>
-</head>
-
-<body class="popupbody" dir="<?php echo $gallery->direction ?>">
-<div class="popuphead"><?php echo _("Choose a stamp:"); ?></div>
-<div align="center" class="popup">
-
-<table width="100" border="0" cellspacing="2" cellpadding="2">
-<?php
-for($i = 1; $i <= 27; $i++) {
-  $nr = sprintf("%02d", $i-1);
-  echo "\n<tr>";
-    echo "\n". '<td width="20" align="center" valign="middle" bgcolor="#CCCCCC" scope="col">'. $i .'</td>';
-    echo "\n". '<td bgcolor="#CCCCCC" scope="col">';
-    echo "\n\t" . '<img src="'. $gallery->app->photoAlbumURL .'/images/ecard_images/'. $nr .'.gif">';
-    echo "\n</td>";
-  echo "\n</tr>";
-}
-?>
-
-</table>
-</body>
-</html>
+<?php
+/*
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2006 Bharat Mediratta
+ *
+ * This file Copyright (C) 2003-2004 Joan McGalliard
+ *
+ * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: stamp_preview.php 13338 2006-03-27 15:32:14Z jenst $
+ */
+?>
+<?php
+// ###################################################################
+// # IBPS E-C@ard for Gallery           Version 1                    #
+// # Copyright 2002 IBPS Friedrichs     info@ibps-friedrichs.de      #
+// # Ported for Gallery By freenik      webmaster@cittadipolicoro.com#
+// ###################################################################
+
+/* Modified by Jens Tkotz <jens@jems.de> */
+?>
+<?php
+
+require_once(dirname(__FILE__) . '/init.php');
+
+doctype();
+?>
+<html>
+    <?php common_header(); ?>
+    <title><?php echo _("Poststamp preview"); ?></title>
+</head>
+
+<body class="popupbody" dir="<?php echo $gallery->direction ?>">
+<div class="popuphead"><?php echo _("Choose a stamp:"); ?></div>
+<div align="center" class="popup">
+
+<table width="100" border="0" cellspacing="2" cellpadding="2">
+<?php
+for($i = 1; $i <= 27; $i++) {
+  $nr = sprintf("%02d", $i-1);
+  echo "\n<tr>";
+    echo "\n". '<td width="20" align="center" valign="middle" bgcolor="#CCCCCC" scope="col">'. $i .'</td>';
+    echo "\n". '<td bgcolor="#CCCCCC" scope="col">';
+    echo "\n\t" . '<img src="'. $gallery->app->photoAlbumURL .'/images/ecard_images/'. $nr .'.gif">';
+    echo "\n</td>";
+  echo "\n</tr>";
+}
+?>
+
+</table>
+</body>
+</html>
diff -Naur gallery-1.5.3/stats.php gallery-1.5.4/stats.php
--- gallery-1.5.3/stats.php	2005-12-04 20:43:45.000000000 +0100
+++ gallery-1.5.4/stats.php	2005-12-04 20:43:46.000000000 +0100
@@ -50,7 +50,7 @@
  * Copyright (C) 2004 Jeremy Gilliat with rating contribution by Haplo
  * based on Bharat Mediratta's standard Gallery code.
  *
- * $Id: stats.php,v 1.40 2005/12/04 19:43:45 jenst Exp $
+ * $Id: stats.php 12188 2005-12-04 19:43:46Z jenst $
  */
 
 require_once(dirname(__FILE__) . '/init.php');
diff -Naur gallery-1.5.3/stats-wizard.php gallery-1.5.4/stats-wizard.php
--- gallery-1.5.3/stats-wizard.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/stats-wizard.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: stats-wizard.php,v 1.13.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: stats-wizard.php 13338 2006-03-27 15:32:14Z jenst $
  *
  */
 ?>
diff -Naur gallery-1.5.3/tools/build_manifest.php gallery-1.5.4/tools/build_manifest.php
--- gallery-1.5.3/tools/build_manifest.php	2006-03-27 17:32:14.000000000 +0200
+++ gallery-1.5.4/tools/build_manifest.php	2006-08-14 10:32:51.000000000 +0200
@@ -1,30 +1,30 @@
 <?php
 /*
- * Gallery - a web based photo album viewer and editor
- * Copyright (C) 2000-2006 Bharat Mediratta
- * This file by Joan McGalliard.
- * 
- * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
- *
- * $Id: build_manifest.php,v 1.15.2.1 2006/03/27 15:32:14 jenst Exp $
- */
+* Gallery - a web based photo album viewer and editor
+* Copyright (C) 2000-2006 Bharat Mediratta
+* This file by Joan McGalliard.
+*
+* 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+*
+* $Id: build_manifest.php 14314 2006-08-14 08:32:51Z jenst $
+*/
 
 /*
- * This script must be run from command line, in directory gallery/
- * eg php tools/build_manifest.php
- */
+* This script must be run from command line, in directory gallery/
+* eg php tools/build_manifest.php
+*/
 ?>
 <?php
 
@@ -38,7 +38,7 @@
 include (dirname(dirname(__FILE__)) . '/platform/fs_unix.php');
 
 if (!fs_is_readable("setup")) {
-       	print "Cannot build manifest unless in config mode";
+	print "Cannot build manifest unless in config mode";
 	print "\n";
 	exit (2);
 }
@@ -55,47 +55,67 @@
 
 ksort($files);
 foreach ($files as $file => $version) {
-    /*
-     * There are some exceptions.  We don't want to require these directories
-     *   po
-     *
-     * because they're not critical to the proper functioning of gallery
-     */
-    if (preg_match('{^(po)/}', $file)) {
-	continue;
-    }
-    
-    fwrite($fd, "\$versions['$file']='$version';\n");
-}	
+	fwrite($fd, "\$versions['$file']='$version';\n");
+}
 
 fwrite($fd, "?>\n");
 fclose($fd);
-print "Done\n";
+print "\nDone\n";
 
-function getManifestFiles($dir) {
-    $results = array();
-    
-    if (fs_file_exists("$dir/CVS/Entries")) {
-	$fd = fs_fopen("$dir/CVS/Entries", "rb");
-	while ($line = fgets($fd, 4096)) {
-	    if ($line[0] == 'D') {
-		preg_match('|^D/(.*?)/|', $line, $regs);
-		if (!empty($regs)) {
-		    $results = array_merge($results, getManifestFiles("$dir/$regs[1]"));
-		}
-	    } else {
-		preg_match('|^/(.*?)/|', $line, $regs);
-		$file = substr("$dir/$regs[1]", 2);
-		$version = getCVSVersion($file);
-		if (!empty($version)) {
-		    $results[$file] = $version;
+function getManifestFiles($folder) {
+	$results = array();
+	$filename = "$folder/.svn/entries";
+	$skipfolder = array('docs', 'po', 'tools', 'locale');
+	$skipfiles = array('ChangeLog.archive.gz', '.htaccess');
+
+	printf("\nFolder: %s", $folder);
+
+	if(in_array(substr($folder,2), $skipfolder)) {
+		echo " ----- Skipping -----";
+		return array();
+	}
+
+	if (fs_file_exists($filename)) {
+		$data = fs_file_get_contents($filename);
+		$parser = xml_parser_create();
+		xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
+		xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
+		xml_parse_into_struct($parser, $data, $values, $tags);
+		xml_parser_free($parser);
+
+		$i = 0;
+		foreach($values as $nr => $content) {
+			if($content['tag'] == 'entry') {
+				echo ".";
+				if($content['attributes']['kind'] == 'file') {
+					$i++;
+					$filename = $content['attributes']['name'];
+					$fullFilename = $folder . '/'. $filename;
+
+					if(in_array($filename, $skipfiles)) {
+						continue;
+					}
+
+					$localRevision = getSVNRevision($fullFilename);
+					/*
+					printf("\nName: %s, Repository Revision: %s, LocalRevision: %s",
+					$content['attributes']['name'],
+					$content['attributes']['committed-rev'],
+					$localRevision
+					);
+					*/
+					$results[substr($fullFilename,2)] = $localRevision;
+				}
+				elseif($content['attributes']['kind'] == 'dir' && !empty($content['attributes']['name'])) {
+					//printf("\nDir: %s<ul>", $content['attributes']['name']);
+					$results = array_merge($results, getManifestFiles($folder . '/'. $content['attributes']['name']));
+					//echo "</ul>";
+				}
+			}
 		}
-	    }
 	}
-	fclose($fd);
-    }
 
-    return $results;
+	return $results;
 }
 
 ?>
diff -Naur gallery-1.5.3/tools/despam-comments.php gallery-1.5.4/tools/despam-comments.php
--- gallery-1.5.3/tools/despam-comments.php	2006-03-27 17:32:14.000000000 +0200
+++ gallery-1.5.4/tools/despam-comments.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: despam-comments.php,v 1.23.2.1 2006/03/27 15:32:14 jenst Exp $
+ * $Id: despam-comments.php 13338 2006-03-27 15:32:14Z jenst $
  *
  * The idea for this was blatantly lifted from Jay Allen's most excellent
  * MT-Blacklist, a plugin for MovableType that helps kill spam dead.  No code
diff -Naur gallery-1.5.3/tools/find_orphans.php gallery-1.5.4/tools/find_orphans.php
--- gallery-1.5.3/tools/find_orphans.php	2006-03-27 17:32:14.000000000 +0200
+++ gallery-1.5.4/tools/find_orphans.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: find_orphans.php,v 1.26.2.1 2006/03/27 15:32:14 jenst Exp $
+ * $Id: find_orphans.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/tools/g1-report.php gallery-1.5.4/tools/g1-report.php
--- gallery-1.5.3/tools/g1-report.php	2006-01-06 07:39:58.000000000 +0100
+++ gallery-1.5.4/tools/g1-report.php	2006-05-04 12:35:36.000000000 +0200
@@ -1,7 +1,5 @@
 <?php
 /*
- * $RCSfile: g1-report.php,v $
- *
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
  * 
@@ -18,6 +16,8 @@
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
+ *
+ * $Id: g1-report.php 13594 2006-05-04 10:35:36Z jenst $
  */
 
 /**
diff -Naur gallery-1.5.3/tools/validate_albums.php gallery-1.5.4/tools/validate_albums.php
--- gallery-1.5.3/tools/validate_albums.php	2006-03-27 17:32:14.000000000 +0200
+++ gallery-1.5.4/tools/validate_albums.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: validate_albums.php,v 1.6.2.1 2006/03/27 15:32:14 jenst Exp $
+ * $Id: validate_albums.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/upgrade_album.php gallery-1.5.4/upgrade_album.php
--- gallery-1.5.3/upgrade_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/upgrade_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: upgrade_album.php,v 1.44.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: upgrade_album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/upgrade_users.php gallery-1.5.4/upgrade_users.php
--- gallery-1.5.3/upgrade_users.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/upgrade_users.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: upgrade_users.php,v 1.15.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: upgrade_users.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/user_preferences.php gallery-1.5.4/user_preferences.php
--- gallery-1.5.3/user_preferences.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/user_preferences.php	2006-06-19 14:22:19.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: user_preferences.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: user_preferences.php 13849 2006-06-19 12:22:19Z jenst $
  */
 ?>
 <?php
@@ -86,7 +86,7 @@
 		$gallery->user->setEmail($email);
 		if (isset($defaultLanguage)) {
 			$gallery->user->setDefaultLanguage($defaultLanguage);
-			$gallery->session->language=$defaultLanguage;
+			$gallery->session->language = $defaultLanguage;
 		}
 		// If a new password was entered, use it.  Otherwise leave it the same.
 		if ($new_password1) {
@@ -125,6 +125,7 @@
 if(isset($saveOK)) {  
     echo infoLine(_("User successfully updated."), 'success');
     echo "\n<br>\n";
+    echo '<script language="JavaScript" type="text/javascript">opener.location.reload()</script>';
 }
 
 echo _("You can change your user information here.");
diff -Naur gallery-1.5.3/util.php gallery-1.5.4/util.php
--- gallery-1.5.3/util.php	2006-03-28 12:54:51.000000000 +0200
+++ gallery-1.5.4/util.php	2006-08-14 09:49:09.000000000 +0200
@@ -2,22 +2,22 @@
 /*
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
- * 
+ *
  * 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., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: util.php,v 1.569.2.2 2006/03/28 10:54:51 jenst Exp $
+ * $Id: util.php 14311 2006-08-14 07:49:09Z jenst $
  */
 
 /**
@@ -131,7 +131,7 @@
 			}
 		}
 	}
-		
+
 	return false;
 }
 
@@ -151,25 +151,25 @@
 	$debugfile = '';
 	$status = '';
 	$results = array();
-	
+
 	if (isDebugging()) {
-	    debugMessage(sprintf(_("Executing: %s"), $cmd), __FILE__, __LINE__);
+	    debugMessage(sprintf(gTranslate('core', "Executing: %s"), $cmd), __FILE__, __LINE__);
 	    $debugfile = tempnam($gallery->app->tmpDir, "dbg");
 	}
 
 	fs_exec($cmd, $results, $status, $debugfile);
 
 	if (isDebugging()) {
-		print "\n<br>". _("Results:") ."<pre>";
+		print "\n<br>". gTranslate('core', "Results:") ."<pre>";
 		if ($results) {
 			print join("\n", $results);
 		} else {
-			print "<b>" ._("none") ."</b>";
+			print "<b>" .gTranslate('core', "none") ."</b>";
 		}
 		print "</pre>";
 
 		if (file_exists($debugfile)) {
-			print "\n<br> ". _("Debug messages:") ." <pre>";
+			print "\n<br> ". gTranslate('core', "Debug messages:") ." <pre>";
 			if ($fd = fs_fopen($debugfile, "r")) {
 				while (!feof($fd)) {
 					$buf = fgets($fd, 4096);
@@ -180,7 +180,7 @@
 			unlink($debugfile);
 			print "</pre>";
 		}
-		print "\n<br> ". sprintf(_("Status: %s (expected %s)"),
+		print "\n<br> ". sprintf(gTranslate('core', "Status: %s (expected %s)"),
 				$status, $gallery->app->expectedExecStatus);
 	}
 
@@ -203,38 +203,38 @@
 }
 
 function getDimensions($file) {
-    global $gallery;				
+    global $gallery;
 
-    debugMessage(sprintf(_("Getting Dimension of file: %s"), $file), __FILE__, __LINE__, 2);
+    debugMessage(sprintf(gTranslate('core', "Getting Dimension of file: %s"), $file), __FILE__, __LINE__, 2);
 
     if (! fs_file_exists($file)) {
-        debugMessage(_("The file does not exist ?!"), __FILE__, __LINE__);
+        debugMessage(gTranslate('core', "The file does not exist ?!"), __FILE__, __LINE__);
         return array(0, 0);
     }
-    
+
     list($width, $height) = getimagesize($file);
-    
+
     if ($width > 1 && $height > 1) {
-        debugMessage(sprintf(_("Dimensions: x: %d y: %d"), $width, $height), __FILE__, __LINE__, 3);
-		  
+        debugMessage(sprintf(gTranslate('core', "Dimensions: x: %d y: %d"), $width, $height), __FILE__, __LINE__, 3);
+
         return array($width, $height);
     }
 
-    debugMessage(sprintf(_("PHP's %s function is unable to determine dimensions."), "getimagesize()"), __FILE__, __LINE__);
-		
+    debugMessage(sprintf(gTranslate('core', "PHP's %s function is unable to determine dimensions."), "getimagesize()"), __FILE__, __LINE__);
+
     /* Just in case php can't determine dimensions. */
     switch($gallery->app->graphics) {
         case 'NetPBM':
-            list($lines, $status) = exec_internal(toPnmCmd($file) ." | ". 
+            list($lines, $status) = exec_internal(toPnmCmd($file) ." | ".
                 NetPBM('pnmfile', '--allimages'));
             break;
         case "ImageMagick":
             /* This fails under windows, IM isn't returning parsable status output. */
               list($lines, $status) = exec_internal(ImCmd('identify', '', fs_import_filename($file)));
         break;
-        
+
 	default:
-	    echo debugMessage(_("You have no graphics package configured for use!"));
+	    echo debugMessage(gTranslate('core', "You have no graphics package configured for use!"));
 	    return array(0, 0);
         break;
     }
@@ -247,7 +247,7 @@
                         return array($regs[1], $regs[2]);
                     }
                 break;
-                
+
                 case 'ImageMagick':
                     if (ereg("([0-9]+)x([0-9]+)", $line, $regs)) {
                         return array($regs[1], $regs[2]);
@@ -257,8 +257,8 @@
         }
     }
 
-    debugMessage(_("Unable to determine image dimensions!"), __FILE__, __LINE__);
-    
+    debugMessage(gTranslate('core', "Unable to determine image dimensions!"), __FILE__, __LINE__);
+
     return array(0, 0);
 }
 
@@ -308,7 +308,7 @@
 	} else {
 	    $modes = "rb";
 	}
-	
+
 	if ($fd = fs_fopen($fname, $modes)) {
 		while (!feof($fd)) {
 			$tmp .= fread($fd, 65536);
@@ -367,6 +367,7 @@
 function gallerySanityCheck() {
 	global $gallery;
 	global $GALLERY_OK;
+
        	if (!empty($gallery->backup_mode)) {
 	       	return NULL;
        	}
@@ -399,7 +400,7 @@
 	 *
 	 * 	Content-Type: image/pjpeg\n\n
 	 *
-	 * If so, remove everything up to and including the last 
+	 * If so, remove everything up to and including the last
 	 * newline
 	 */
 
@@ -431,14 +432,14 @@
 					fs_unlink($tempfile);
 				}
 			} else {
-				echo gallery_error(sprintf(_("Can't write to %s."),
+				echo gallery_error(sprintf(gTranslate('core', "Can't write to %s."),
 							$tempfile));
 			}
 			chmod("$dir/$file", 0644);
 		}
 		fclose($fd);
 	} else {
-		echo gallery_error(sprintf(_("Can't read %s."), "$dir/$file"));
+		echo gallery_error(sprintf(gTranslate('core', "Can't read %s."), "$dir/$file"));
 	}
 
 	return 1;
@@ -514,7 +515,7 @@
 			// Owners can always see at least the first level of sub-content
 			return $idx;
 		} elseif ($album->getItemOwnerModify() && $album->isItemOwner($gallery->user->getUid(), $idx)) {
-			// Hidden photo - allow the owner to see it (hidden sub-albums are covered 
+			// Hidden photo - allow the owner to see it (hidden sub-albums are covered
 			// in the album rights block by isOwnerOfAlbum)
 			return $idx;
 		} else {
@@ -586,7 +587,7 @@
             $path = $gallery->app->use_exif;
             list($return, $status) = @exec_internal(fs_import_filename($path, 1) .' '. //. ' -v ' .
             fs_import_filename($file, 1));
-    
+
             $unwantedFields = array('File name');
         break;
 
@@ -660,7 +661,7 @@
 	}
 
 	if (!isDebugging()) {
-		sprintf (_("Item Capture Date : %s"), strftime('%Y', $itemCaptureTimeStamp));
+		sprintf (gTranslate('core', "Item Capture Date : %s"), strftime('%Y', $itemCaptureTimeStamp));
 	}
 
 	return $itemCaptureTimeStamp;
@@ -705,12 +706,12 @@
 		/* Acquire an advisory lock */
 		$lockfd = fs_fopen("$file.lock", "a+");
 		if (!$lockfd) {
-			echo gallery_error(sprintf(_("Could not open lock file (%s) for writing!"),
+			echo gallery_error(sprintf(gTranslate('core', "Could not open lock file (%s) for writing!"),
 						"$file.lock"));
 			return 0;
 		}
 		if (!flock($lockfd, LOCK_EX)) {
-			echo gallery_error(sprintf(_("Could not acquire lock (%s)!"),
+			echo gallery_error(sprintf(gTranslate('core', "Could not acquire lock (%s)!"),
 						"$file.lock"));
 			return 0;
 		}
@@ -718,7 +719,7 @@
 
 	/*
 	 * Don't use tempnam because it may create a file on a different
-	 * partition which would cause rename() to fail.  Instead, create our own 
+	 * partition which would cause rename() to fail.  Instead, create our own
 	 * temporary file.
 	 */
 	$i = 0;
@@ -737,8 +738,8 @@
 			/* Something went wrong! */
 			$success = 0;
 		} else {
-			/* 
-			 * Make the current copy the backup, and then 
+			/*
+			 * Make the current copy the backup, and then
 			 * write the new current copy.  There's a
 			 * potential race condition here if the
 			 * advisory lock (above) fails; two processes
@@ -770,8 +771,8 @@
  * lastCommentDate functions in classes Album and AlbumItem.
  */
 function mostRecentComment($album, $i) {
-        $id = $album->getPhotoId($i); 
-        $index = $album->getPhotoIndex($id); 
+        $id = $album->getPhotoId($i);
+        $index = $album->getPhotoIndex($id);
         $recentcomment = $album->getComment($index, $album->numComments($i));
         return $recentcomment->getDatePosted();
 }
@@ -788,12 +789,12 @@
  * @param  string   $filename
  * @return string   $ext
  * @author Jens Tkotz <jens@peino.de>
- */ 
+ */
 function getExtension($filename) {
 	$ext = ereg_replace(".*\.([^\.]*)$", "\\1", $filename);
 	$ext = strtolower($ext);
-	
-	echo debugMessage(sprintf(_("extension of file %s is %s"), basename($filename), $ext), __FILE__, __LINE__, 3);
+
+	echo debugMessage(sprintf(gTranslate('core', "extension of file %s is %s"), basename($filename), $ext), __FILE__, __LINE__, 3);
 	return $ext;
 }
 
@@ -809,7 +810,7 @@
 	}
 }
 
-/** 
+/**
  * This function checks wether an archive can be decompressed via Gallery
  * It just uses the filename extension.
  * If the extension is handable the de/compressing tool is returned
@@ -820,7 +821,7 @@
 function canDecompressArchive($ext) {
 	global $gallery;
     $tool = false;
-    
+
 	$ext = strtolower($ext);
 	switch ($ext) {
 	    case 'zip':
@@ -834,7 +835,7 @@
 	            $tool = 'rar';
 	        }
         break;
-        
+
 	    default:
 	        /* Extension not supported, $tool stays fals */
 	        break;
@@ -842,7 +843,7 @@
 	return $tool;
 }
 
-/** 
+/**
  * This function checks wether an archive can be created via Gallery
  * It just uses the filename extension.
  * If the extension is handable the de/compressing tool is returned
@@ -860,7 +861,7 @@
 	elseif ($ext == 'rar' && !empty($gallery->app->rar)) {
 		return 'rar';
 	}
-	else {		
+	else {
 	    /* No suitable tool found */
 	    return false;
 	}
@@ -871,7 +872,7 @@
 
 	$cmd = '';
 	$files = array();
-	
+
 	if ($tool = canDecompressArchive($ext)) {
 	    $filename = fs_import_filename($archive);
 	    switch ($tool) {
@@ -890,7 +891,7 @@
 	        sort($files);
 	    }
 	}
-	
+
 	return $files;
 }
 
@@ -900,9 +901,9 @@
 
 	$cmd_pic_path = str_replace("[", "\[", $file);
 	$cmd_pic_path = str_replace("]", "\]", $cmd_pic_path);
-	
+
 	if($tool = canDecompressArchive($ext)) {
-	    echo debugMessage(sprintf(_("Extracting: %s with %s"), $archive, $tool),__FILE__, __LINE__,3);
+	    echo debugMessage(sprintf(gTranslate('core', "Extracting: %s with %s"), $archive, $tool),__FILE__, __LINE__,3);
 	    switch($tool) {
 	        case 'zip':
 	            $cmd = fs_import_filename($gallery->app->unzip) . " -j -o " .
@@ -916,33 +917,33 @@
 	            fs_import_filename($gallery->app->tmpDir);
 	            break;
 	    }
-	    
+
 	    return exec_wrapper($cmd);
 	}
 	else {
-	    echo debugMessage(sprintf(_("%s with extension %s is not an supported archive.", $archive, $ext)),__FILE__, __LINE__);
+	    echo debugMessage(sprintf(gTranslate('core', "%s with extension %s is not an supported archive.", $archive, $ext)),__FILE__, __LINE__);
 	    return false;
 	}
 }
 
 function createZip($folderName = '', $zipName = '', $deleteSource = true) {
     global $gallery;
-    
+
     if ($folderName == '') {
 	   return false;
     }
 
     $tool = canCreateArchive('zip');
-    
+
     if (! $tool) {
-        debugMessage(_("No Support for creating Zips"), __FILE__, __LINE__, 2);
+        debugMessage(gTranslate('core', "No Support for creating Zips"), __FILE__, __LINE__, 2);
         return false;
     } else {
-        debugMessage(sprintf(_("Creating Zipfile with %s"), $tool), __FILE__, __LINE__, 2);
+        debugMessage(sprintf(gTranslate('core', "Creating Zipfile with %s"), $tool), __FILE__, __LINE__, 2);
     }
-           
+
     $tmpDir = $gallery->app->tmpDir .'/'. uniqid(rand());
-    
+
     if ($zipName == '') {
 	   $fullZipName = 'gallery_zip.zip';
     }
@@ -952,7 +953,7 @@
 
     if(! fs_mkdir($tmpDir)) {
         echo gallery_error(
-          sprintf(_("Your tempfolder is not writeable! Please check permissions of this dir: %s"),
+          sprintf(gTranslate('core', "Your tempfolder is not writeable! Please check permissions of this dir: %s"),
           $gallery->app->tmpDir));
         return false;
     }
@@ -960,9 +961,9 @@
     $currentDir = getcwd();
     /* Switch to the folder that content is going to be zipped */
     chdir($folderName);
-    
+
 			$cmd = fs_import_filename($gallery->app->zip) ." -r $fullZipName *";
-    
+
     if (! exec_wrapper($cmd)) {
 	   echo gallery_error("Zipping failed");
 	   /* Go back */
@@ -975,7 +976,7 @@
 	   if($deleteSource) {
 	       rmdirRecursive($folderName);
 	   }
-	
+
 	return $fullZipName;
     }
 }
@@ -983,14 +984,14 @@
 function processNewImage($file, $ext, $name, $caption, $setCaption = '', $extra_fields=array(), $wmName="", $wmAlign=0, $wmAlignX=0, $wmAlignY=0, $wmSelect=0) {
     global $gallery;
     global $temp_files;
-    
-    echo debugMessage(sprintf(_("Processing file: %s"), $file), __FILE__, __LINE__,3);
+
+    echo debugMessage(sprintf(gTranslate('core', "Processing file: %s"), $file), __FILE__, __LINE__,3);
     /* Begin of code for the case the uploaded file is an archive */
     if (acceptableArchive($ext)) {
-        processingMsg(sprintf(_("Processing file '%s' as archive"), $name));
+        processingMsg(sprintf(gTranslate('core', "Processing file '%s' as archive"), $name));
         $tool = canDecompressArchive($ext);
         if (!$tool) {
-            processingMsg(sprintf(_("Skipping %s (%s support not enabled)"), $name, $ext));
+            processingMsg(sprintf(gTranslate('core', "Skipping %s (%s support not enabled)"), $name, $ext));
             echo "<br>";
             return;
         }
@@ -999,7 +1000,7 @@
          * Figure out what files inside the archive we can handle.
          * Put all Filenames into $files.
         */
-        echo debugMessage(_("Getting archive content Filenames"), __FILE__, __LINE__);
+        echo debugMessage(gTranslate('core', "Getting archive content Filenames"), __FILE__, __LINE__);
         $files = getArchiveFileNames($file, $ext);
 
         /* Get meta data */
@@ -1017,20 +1018,20 @@
             debugMessage(printMetaData($image_info), __FILE__, __LINE__);
         }
         else {
-            echo debugMessage(_("No Metadata"), __FILE__, __LINE__);
+            echo debugMessage(gTranslate('core', "No Metadata"), __FILE__, __LINE__);
         }
 
         /* Now process all valid files we found */
-        echo debugMessage(_("Processing files in archive"), __FILE__, __LINE__);
+        echo debugMessage(gTranslate('core', "Processing files in archive"), __FILE__, __LINE__);
         $loop = 0;
         foreach ($files as $pic_path) {
             $loop++;
             $pic = basename($pic_path);
             $tag = getExtension($pic);
-            echo debugMessage(sprintf(_("%d. %s"), $loop, $pic_path), __FILE__, __LINE__);
+            echo debugMessage(sprintf(gTranslate('core', "%d. %s"), $loop, $pic_path), __FILE__, __LINE__);
             if (acceptableFormat($tag) || acceptableArchive($tag)) {
                 if(!extractFileFromArchive($file, $ext, $pic_path)) {
-                    echo '<br>'. gallery_error(sprintf(_("Could not extract %s"), $pic_path));
+                    echo '<br>'. gallery_error(sprintf(gTranslate('core', "Could not extract %s"), $pic_path));
                     continue;
                 }
 
@@ -1150,13 +1151,13 @@
                 }
             }
 
-            echo "\n<p><b>******". sprintf(_("Adding %s"), $name) ."*****</b></p>";
-            
+            echo "\n<p><b>******". sprintf(gTranslate('core', "Adding %s"), $name) ."*****</b></p>";
+
             /* After all the preprocessing, NOW ADD THE element
              * function addPhoto($file, $tag, $originalFilename, $caption, $pathToThumb="", $extraFields=array(), $owner="", $votes=NULL,
              *                   $wmName="", $wmAlign=0, $wmAlignX=0, $wmAlignY=0, $wmSelect=0)
             */
-            $err = $gallery->album->addPhoto( 
+            $err = $gallery->album->addPhoto(
                 $file,
                 $ext,
                 $mangledFilename,
@@ -1167,15 +1168,15 @@
                 NULL,
                 $wmName, $wmAlign, $wmAlignX, $wmAlignY, $wmSelect
             );
-            
+
             if ($err) {
                 processingMsg(gallery_error($err));
-                processingMsg("<b>". sprintf(_("Need help?  Look in the  %s%s FAQ%s"),
+                processingMsg("<b>". sprintf(gTranslate('core', "Need help?  Look in the  %s%s FAQ%s"),
                 '<a href="http://gallery.sourceforge.net/faq.php" target=_new>', Gallery(), '</a>') .
                 "</b>");
             }
         } else {
-            processingMsg(sprintf(_("Skipping %s (can't handle %s format)"), $name, $ext));
+            processingMsg(sprintf(gTranslate('core', "Skipping %s (can't handle %s format)"), $name, $ext));
         }
     }
 }
@@ -1186,13 +1187,13 @@
 
 function findInPath($program) {
 	$path = explode(':', getenv('PATH'));
-	
+
 	foreach ($path as $dir) {
 		if (fs_file_exists("$dir/$program")) {
 			return "$dir/$program";
 		}
 	}
-	
+
 	return false;
 }
 
@@ -1282,13 +1283,13 @@
 }
 
 function logMessage ($msg, $logfile) {
-	
+
 	if ($fd = fs_fopen($logfile, "a")) {
 		fwrite($fd, strftime("%Y/%m/%d %H:%M.%S: $msg\n"));
 		fclose($fd);
 	}
 	elseif (isDebugging()) {
-		print sprintf(_("Cannot open logfile: %s"), $logfile);
+		print sprintf(gTranslate('core', "Cannot open logfile: %s"), $logfile);
 	}
 }
 
@@ -1371,7 +1372,7 @@
     if ($negativeTest) {
         $result = ! $result;
     }
-    
+
     return $result;
 }
 
@@ -1390,22 +1391,22 @@
     return $location;
 }
 
-// Returns the CVS version as a string, NULL if file can't be read, or "" 
+// Returns the SVN revision  as a string, NULL if file can't be read, or ""
 // if version can't be found.
+function getSVNRevision($file) {
 
-function getCVSVersion($file) {
-
-    $path= dirname(__FILE__) . "/$file";
+    $path = dirname(__FILE__) . "/$file";
     if (!fs_file_exists($path)) {
         return NULL;
     }
     if (!fs_is_readable($path)) {
         return NULL;
     }
-    $contents=file($path);
+
+    $contents = file($path);
     foreach ($contents as $line) {
-        if (ereg("\\\x24\x49\x64: [A-Za-z_.0-9]*,v ([0-9.]*) .*\x24$", trim($line), $matches) ||
-        ereg("\\\x24\x49\x64: [A-Za-z_.0-9]*,v ([0-9.]*) .*\x24 ", trim($line), $matches)) {
+        if (ereg("\\\x24\x49\x64: [A-Za-z_.0-9-]* ([0-9]*) .*\x24$", trim($line), $matches) ||
+        ereg("\\\x24\x49\x64: [A-Za-z_.0-9-]* ([0-9]*) .*\x24 ", trim($line), $matches)) {
             if ($matches[1]) {
                 return $matches[1];
             }
@@ -1415,11 +1416,11 @@
     return '';
 }
 
-/* Return -1 if old version is greater than new version, 0 if they are the 
+/* Return -1 if old version is greater than new version, 0 if they are the
    same and 1 if new version is greater.
  */
 function compareVersions($old_str, $new_str) {
-	if ($old_str === $new_str) { 
+	if ($old_str === $new_str) {
 		return 0;
 	}
 	$old=explode('.', $old_str);
@@ -1447,7 +1448,7 @@
 
 function contextHelp ($link) {
 	global $gallery;
-	
+
 	if ($gallery->app->showContextHelp == 'yes') {
 		return popup_link ('?', 'docs/context-help/' . $link, false, true, 500, 500);
 	} else {
@@ -1456,7 +1457,7 @@
 }
 
 function parse_csv ($filename, $delimiter=";") {
-    echo debugMessage(sprintf(_("Parsing for csv data in file: %s"), $filename), __FILE__, __LINE__);
+    echo debugMessage(sprintf(gTranslate('core', "Parsing for csv data in file: %s"), $filename), __FILE__, __LINE__);
 	$maxLength = 1024;
 	$return_array = array();
 	if ($fd = fs_fopen($filename, "rt")) {
@@ -1472,10 +1473,10 @@
 		fclose($fd);
 	}
 	if(isDebugging()){
-	   echo _("csv result:");
+	   echo gTranslate('core', "csv result:");
 	   print_r($return_array);
 	}
-	return $return_array;	
+	return $return_array;
 }
 
 /**
@@ -1529,7 +1530,7 @@
             $value = $gallery->album->getExtraField($index, $key);
             if (!empty($value)) {
                 /* Might be look strange, but $key could be in translateableFields() */
-                $table[_($key)] = str_replace("\n", "<br>", $value);
+                $table[gTranslate('core', $key)] = str_replace("\n", "<br>", $value);
             }
         }
     }
@@ -1552,9 +1553,9 @@
         if (isset($result)) {
             return $result;
         }
-        
+
         return array();
-    } 
+    }
 }
 
 function genGUID() {
@@ -1570,7 +1571,7 @@
 	if (!($iHeight < $thumbsize && $iWidth < $thumbsize)) {
 	    $thumbsize = max($iHeight, $iWidth);
 	}
-	    
+
 
 	switch ($frame) {
 		// special cases
@@ -1583,16 +1584,16 @@
 			$divCellWidth = $thumbsize + 7;
 			$divCellAdd =  7;
 		break;
-	
+
 		case "solid":
 			$divCellWidth = $thumbsize + $borderwidth +3;
 			$divCellAdd =  $borderwidth +3;
 		break;
-                  
+
 		default: // use frames directory or fallback to none.
 		    if(array_key_exists($frame, available_frames())) {
 			require(dirname(__FILE__) . "/html_wrap/frames/$frame/frame.def");
-                    
+
 			$divCellWidth = $thumbsize + $widthTL + $widthTR;
 			$divCellAdd = $heightTT + $heightBB;
 		    }
@@ -1612,7 +1613,7 @@
 	return array ($divCellWidth, $divCellHeight, $padding);
 }
 
-/* 
+/*
 ** Counts all Elements of an Array, but not the array(s) itself
 ** Code by A. Lindeman
 */
@@ -1638,18 +1639,18 @@
  */
 function getMimeType($filename) {
     static $mime_extension_map;
-    
+
     if (empty($mime_extension_map)) {
         require(dirname(__FILE__) . '/includes/definitions/mime.mapping.php');
     }
-    
+
     $extension = getExtension($filename);
     $mimetype = $mime_extension_map[$extension];
-    
-    echo debugMessage(sprintf(_("MIMEtype of file %s is %s"), basename($filename), $mimetype), __FILE__, __LINE__, 2);
+
+    echo debugMessage(sprintf(gTranslate('core', "MIMEtype of file %s is %s"), basename($filename), $mimetype), __FILE__, __LINE__, 2);
     return $mimetype;
 }
-    
+
 /* Ecard Function begin */
 function get_ecard_template($template_name) {
     global $gallery;
@@ -1700,7 +1701,7 @@
     $ecard_data = preg_replace ("/<%ecard_reciepient_name%>/", $ecard["name_recepient"], $ecard_data);
     $ecard_data = preg_replace ("/<%ecard_stamp%>/", $stampName, $ecard_data);
     $ecard_data = preg_replace ("/<%ecard_width%>/", $widthReplace, $ecard_data);
-	
+
     return $ecard_data;
   }
 
@@ -1736,7 +1737,7 @@
       $ecard_mail->setHtml($ecard_HTML_data, $ecard_PLAIN_data);
       $ecard_mail->setFrom($ecard["name_sender"] .' <'. $ecard["email_sender"] .'>');
       if (empty($ecard['subject'])) {
-          $ecard['subject'] = sprintf(_("%s sent you an E-C@rd."), $ecard["name_sender"]);
+          $ecard['subject'] = sprintf(gTranslate('core', "%s sent you an E-C@rd."), $ecard["name_sender"]);
       }
 
       $ecard_mail->setSubject($ecard['subject']);
@@ -1746,7 +1747,7 @@
 
       return $result;
   }
-  
+
 /**
  * This function is taken from
  * http://www.phpinsider.com/smarty-forum/viewtopic.php?t=1079
@@ -1776,7 +1777,7 @@
 
 	    if ($caseSensitive) {
 			$code = "
-	    if( $a == $b ) { 
+	    if( $a == $b ) {
 	        return 0;
 	    };
 	    if ( $a > $b ) {
@@ -1787,7 +1788,7 @@
 		}
 	    else {
 			$code = "
-	    if(strtoupper($a) == strtoupper($b)) { 
+	    if(strtoupper($a) == strtoupper($b)) {
 	        return 0;
 	    };
 	    if (strtoupper($a) > strtoupper($b)) {
@@ -1796,7 +1797,7 @@
 	        return -1 * $order;
 	    }";
 	    }
-	
+
 	    $sort_func = $sort_funcs[$sortby] = create_function('$a, $b', $code);
 	} else {
 	    $sort_func = $sort_funcs[$sortby];
@@ -1834,7 +1835,7 @@
 
     if(! fs_mkdir($dir)) {
         echo gallery_error(
-          sprintf(_("Gallery was unable to create a tempory subfolder in your tempdir. Please check permissions of this dir: %s"),
+          sprintf(gTranslate('core', "Gallery was unable to create a tempory subfolder in your tempdir. Please check permissions of this dir: %s"),
         $gallery->app->tmpDir));
         return false;
     }
@@ -1870,26 +1871,26 @@
 
 function downloadFile($filename) {
     global $gallery;
-    
+
     /* Verify its really a file */
     if(!fs_is_file($filename) || broken_link($filename)) {
-        echo gallery_error(sprintf(_("'%s' seems not to be a valid file. Download aborted."),
+        echo gallery_error(sprintf(gTranslate('core', "'%s' seems not to be a valid file. Download aborted."),
             $filename));
         return false;
     }
-    
+
     /* Verify $filename is inside the temp dir */
     $validFileName = strncmp($filename, $gallery->app->tmpDir, strlen($filename));
     if($validFileName < 0) {
-        echo gallery_error(sprintf(_("The file '%s' seems not inside Gallery tempdir %s, download aborted."),
+        echo gallery_error(sprintf(gTranslate('core', "The file '%s' seems not inside Gallery tempdir %s, download aborted."),
             $filename,  $gallery->app->tmpDir));
         return false;
     }
     elseif ($validFileName == 0 || dirname($filename) == $gallery->app->tmpDir) {
-        echo gallery_error(_("We are trying to download the tempdir itself ?! Download aborted."));
+        echo gallery_error(gTranslate('core', "We are trying to download the tempdir itself ?! Download aborted."));
         return false;
     }
-    
+
     $contentType = getMimeType($filename);
     $size = fs_filesize($filename);
 
@@ -1908,12 +1909,12 @@
     header('Content-Disposition: attachment; filename="'. basename($filename) .'"');
 
     echo $filedata;
-    
+
     /* As downloadable files are always created in a subfolder of the tempdir,
      * we delete this folder and its content
     */
     rmdirRecursive(dirname($filename));
-    
+
     return true;
 }
 
diff -Naur gallery-1.5.3/Version.php gallery-1.5.4/Version.php
--- gallery-1.5.3/Version.php	2006-04-07 00:38:01.000000000 +0200
+++ gallery-1.5.4/Version.php	2006-08-14 10:33:59.000000000 +0200
@@ -17,19 +17,19 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: Version.php,v 1.1566.2.15 2006/04/06 22:38:01 ckdake Exp $
+ * $Id: Version.php 14315 2006-08-14 08:33:59Z jenst $
  */
 ?>
 <?php
 
-$gallery->version = '1.5.3';
+$gallery->version = '1.5.4';
 $gallery->config_version = 96;
 $gallery->album_version = 37;
 $gallery->user_version = 6;
 $gallery->url = "http://gallery.sourceforge.net";
 
-/* do not edit the date!! modified by CVS */
-$gallery->last_change = strtotime(substr('$Date: 2006/04/06 22:38:01 $', 7, -1));
+/* do not edit the date!! modified by SVN */
+$gallery->last_change = strtotime(substr('$Date: 2006-08-14 10:33:59 +0200 (Mon, 14 Aug 2006) $', 7, -20));
 /*
  * PostNuke version info
  */
diff -Naur gallery-1.5.3/view_album.php gallery-1.5.4/view_album.php
--- gallery-1.5.3/view_album.php	2006-04-06 13:21:47.000000000 +0200
+++ gallery-1.5.4/view_album.php	2006-08-14 09:49:09.000000000 +0200
@@ -17,7 +17,7 @@
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
 *
-* $Id: view_album.php,v 1.327.2.3 2006/04/06 11:21:47 jenst Exp $
+* $Id: view_album.php 14311 2006-08-14 07:49:09Z jenst $
 */
 ?>
 <?php
@@ -121,7 +121,7 @@
 if (!$GALLERY_EMBEDDED_INSIDE) {
     doctype();
 ?>
-<html> 
+<html>
 <head>
   <title><?php echo $gallery->app->galleryTitle ?> :: <?php echo $gallery->album->fields["title"] ?></title>
   <?php common_header();
@@ -141,7 +141,7 @@
   if (!isset($last)) { ?>
   <link rel="next" href="<?php echo makeAlbumUrl($gallery->session->albumName, '', array('page' => $nextPage)) ?>" >
   <link rel="last" href="<?php echo makeAlbumUrl($gallery->session->albumName, '', array('page' => $maxPages)) ?>" >
-<?php } if ($gallery->album->isRoot() && 
+<?php } if ($gallery->album->isRoot() &&
 (!$gallery->session->offline ||
 	 isset($gallery->session->offlineAlbums["albums.php"]))) { ?>
   <link rel="up" href="<?php echo makeAlbumUrl(); ?>" >
@@ -149,7 +149,7 @@
 	 } else if (!$gallery->session->offline ||
 	 isset($gallery->session->offlineAlbums[$pAlbum->fields['parentAlbumName']])) { ?>
   <link rel="up" href="<?php echo makeAlbumUrl($gallery->album->fields['parentAlbumName']); ?>" >
-<?php } 
+<?php }
 if (!$gallery->session->offline ||
 	 isset($gallery->session->offlineAlbums["albums.php"])) { ?>
   <link rel="top" href="<?php echo makeGalleryUrl('albums.php', array('set_albumListPage' => 1)) ?>" >
@@ -181,7 +181,7 @@
 </head>
 
 <body dir="<?php echo $gallery->direction ?>">
-<?php 
+<?php
 }
 
 includeHtmlWrap("album.header");
@@ -258,9 +258,9 @@
         'name' => gTranslate('core', "Delete this (sub)album"),
         'requirements' => array('canDeleteAlbum', '!albumIsRoot'),
         'action' => 'popup',
-        'value' => makeGalleryUrl('delete_photo.php', 
+        'value' => makeGalleryUrl('delete_photo.php',
 			array('set_albumName' => $gallery->album->fields["parentAlbumName"],
-				'type' => 'popup', 
+				'type' => 'popup',
 				'id' => $gallery->album->fields["name"],
 				'albumDelete' => true))),
     'rename_album'    => array(
@@ -310,7 +310,7 @@
         'name' => gTranslate('core', "Rearrange items"),
         'requirements' => array('canWriteToAlbum', 'photosExist'),
         'action' => 'popup',
-        'value' => makeGalleryUrl('rearrange.php', 
+        'value' => makeGalleryUrl('rearrange.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'permissions'     => array(
         'name' => gTranslate('core', "Permissions"),
@@ -395,7 +395,7 @@
     . "</script>\n\n";
 
     $iconElements[] = "\n\t<select class=\"adminform\" name=\"admin_select\" onChange=\"execAdminOption()\">\n"
-    . "\t\t<option value=\"\">&laquo; " . _('Album Actions') . " &raquo;</option>\n"
+    . "\t\t<option value=\"\">&laquo; " . gTranslate('core', 'Album Actions') . " &raquo;</option>\n"
     . $adminOptionHTML
     . "\t</select>\n";
 }
@@ -468,8 +468,8 @@
 }
 
 if (($gallery->album->getPollType() == "rank") && canVote()) {
-    echo '<div align="left" class="vapoll">';
-    $my_choices=array();
+    $my_choices = array();
+
     if ( $gallery->album->fields["votes"]) {
         foreach ($gallery->album->fields["votes"] as $id => $image_votes) {
             $index=$gallery->album->getIndexByVotingId($id);
@@ -483,52 +483,61 @@
             }
         }
     }
-    if (sizeof($my_choices) == 0
-    && $gallery->album->getVoterClass() ==  "Logged in") {
-        print gTranslate('core', "You have no votes recorded for this poll."). '<br>';
-    }
-    else if (sizeof($my_choices) > 0) {
+
+    if (sizeof($my_choices) > 0) {
         ksort($my_choices);
-        print gTranslate('core', "Your current choices are");
-        print "<table>\n";
-        $nv_pairs=$gallery->album->getVoteNVPairs();
+        $nv_pairs = $gallery->album->getVoteNVPairs();
+
+        $va_poll_box1 = gTranslate('core', "Your votes are :");
+
+        $pollInfoTable = new galleryTable();
         foreach ($my_choices as $key => $id) {
-            print "<tr><td>". $nv_pairs[$key]["name"] .":</td>\n";
             $index = $gallery->album->getIndexByVotingId($id);
+
+            $pollInfoTable->addElement(array('content' => "- ". $nv_pairs[$key]["name"]));
+            $pollInfoTable->addElement(array('content' => ':'));
             if ($gallery->album->isAlbum($index)) {
                 $albumName = $gallery->album->getAlbumName($index);
-                print "<td><a href=\n".
-                  makeAlbumUrl($albumName). ">\n";
                 $myAlbum = new Album();
                 $myAlbum->load($albumName);
-                print sprintf(gTranslate('core', "Album: %s"), $myAlbum->fields['title']);
-                print "</a></td></tr>\n";
-            } else {
-                print "<td><a href=\n".
-                  makeAlbumUrl($gallery->session->albumName, $id) . ">\n";
+
+                $pollInfoTable->addElement(array('content' =>
+                galleryLink(
+                    makeAlbumUrl($albumName),
+                    sprintf(gTranslate('core', "Album: %s"), $myAlbum->fields['title']))
+                ));
+            }
+            else {
                 $desc = $gallery->album->getCaption($index);
                 if (trim($desc) == '') {
                     $desc = $gallery->album->getPhotoId($index);
                 }
-                print $desc;
-                print "</a></td></tr>\n";
+
+                $photoId = str_replace('item.', '', $id);
+                $pollInfoTable->addElement(array('content' =>
+                    galleryLink(makeAlbumUrl($gallery->session->albumName, $photoId), $desc)
+                ));
             }
         }
-        print "</table>\n";
+        $va_poll_box1 .= $pollInfoTable->render();
+
+        echo "\n<div class=\"g-va-poll-box1\">\n";
+        echo $va_poll_box1;
+        echo "\n</div>\n";
     }
-    echo '</div>';
 }
-$results = 1;
+
+list($va_poll_result, $results) = showResultsGraph( $gallery->album->getPollNumResults());
+
 if ($gallery->album->getPollShowResults()) {
-    echo '<div align="left" class="vapoll">';
-    list($buf, $results)=showResultsGraph( $gallery->album->getPollNumResults());
-    print $buf;
-    if ($results && testRequirement('isAdminOrAlbumOwner')) {
-        print "\n". '<a href="' . makeGalleryUrl("poll_results.php",
-          array("set_albumName" => $gallery->session->albumName)).
-          '">' .gTranslate('core', "See full poll results") . '</a><br>';
-    }
-    echo '</div>';
+    echo $va_poll_result;
+}
+
+if(!empty($results) && testRequirement('isAdminOrAlbumOwner')) {
+    echo galleryLink(
+        makeGalleryUrl("poll_results.php", array("set_albumName" => $gallery->session->albumName)),
+        gTranslate('core', "[ See full poll results ]"),
+        array('class' => 'admin'));
 }
 
 ?>
@@ -546,49 +555,51 @@
 
 echo makeFormIntro('view_album.php',
     array('name' => 'vote_form', 'style' => 'margin-bottom: 0px;'));
-    
+
 if (canVote()) {
-    echo '<div align="left" class="vapoll">';
-    $nv_pairs=$gallery->album->getVoteNVPairs();
-    if ($gallery->album->getPollScale() == 1) {
-        $options = $nv_pairs[0]["name"];
-    }
-    else {
-        /** note to translators:
+	$nv_pairs = $gallery->album->getVoteNVPairs();
+	if ($gallery->album->getPollScale() == 1) {
+		$options = $nv_pairs[0]["name"];
+	}
+	else {
+		/** note to translators:
          * This produces (in English) a list of the form: "a, b, c or d".  Correct translation
          * of ", " and " or  " should produce a version that makes sense in your language.
          */
-        $options = '';
-        for ($count=0; $count < $gallery->album->getPollScale()-2 ; $count++) {
-            $options .= $nv_pairs[$count]["name"] .gTranslate('core', ", ");
-        }
-        $options .= $nv_pairs[$count++]["name"] .gTranslate('core', " or ");
-        $options .= $nv_pairs[$count]["name"];
-    }
-    print '<span class="attention">';
-    print sprintf(gTranslate('core', "To vote for an image, click on %s."), $options);
-    print "  ".sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."),
-    "<b>".gTranslate('core', "Vote")."</b>");
-    if ($gallery->album->getPollType() == "rank") {
-        $voteCount=$gallery->album->getPollScale();
-        print "  ".
-          sprintf(gTranslate('core', "You have a total of %s and can change them if you wish."),
-            gTranslate('core', "1 vote", "%d votes", $voteCount));
-    }
-    else {
-        print "  ". gTranslate('core', "You can change your choices if you wish.");
-    }
-    echo "</span>";
+		$options = '';
+		for ($count=0; $count < $gallery->album->getPollScale()-2 ; $count++) {
+			$options .= $nv_pairs[$count]["name"] .gTranslate('core', ", ");
+		}
+		$options .= $nv_pairs[$count++]["name"] .gTranslate('core', " or ");
+		$options .= $nv_pairs[$count]["name"];
+	}
+
+	$va_poll_box3 = sprintf(gTranslate('core', "To vote for an image, click on %s."), $options);
+	$va_poll_box3 .= ' ';
+	$va_poll_box3 .= sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."), "<b>".gTranslate('core', "Vote")."</b>");
+	$va_poll_box3 .= ' ';
+	if ($gallery->album->getPollType() == 'rank') {
+		$voteCount = $gallery->album->getPollScale();
+		$va_poll_box3 .= gTranslate('core',
+			"You have a total of %d vote and can change it later if you wish.",
+			"You have a total of %d votes and can change them later if you wish.", $voteCount, '', true);
+	}
+	else {
+		$va_poll_box3 .= gTranslate('core', "You can change your votes later, if you wish.");
+	}
+
+	echo "\n<div class=\"g-va-poll-box3\">\n";
+    echo $va_poll_box3;
+    echo "\n</div>\n";
 ?>
-   </div>
-
-<?php if (canVote()) { ?>
 	<div align="center">
  		<input type=submit name="Vote" value="<?php print gTranslate('core', "Vote") ?>">
 	</div>
-<?php }
+
+<?php
 }
 ?>
+
 <!-- image grid table -->
 <table border="0" cellspacing="5" cellpadding="0" width="100%" class="vatable" align="center">
 <?php
@@ -727,8 +738,8 @@
                     list($wf, $hf) = $image->getRawDimensions();
                     /* display file sizes if dimensions are identical */
                     if ($wr == $wf && $hr == $hf && $viewFull && $photo->isResized()) {
-                        $fsr = ' ' . sprintf(_('%dkB'), (int) $photo->getFileSize(0) >> 10);
-                        $fsf = ' ' . sprintf(_('%dkB'), (int) $photo->getFileSize(1) >> 10);
+                        $fsr = ' ' . sprintf(gTranslate('core', '%dkB'), (int) $photo->getFileSize(0) >> 10);
+                        $fsf = ' ' . sprintf(gTranslate('core', '%dkB'), (int) $photo->getFileSize(1) >> 10);
                     } else {
                         $fsr = '';
                         $fsf = '';
@@ -856,13 +867,13 @@
             }
 
             $albumItemOptions = getItemActions($i, false);
-            if (sizeof($albumItemOptions) > 2 || 
+            if (sizeof($albumItemOptions) > 2 ||
               (sizeof($albumItemOptions) == 2 && !isset($albumItemOptions['showExif']))) {
                 echo drawSelect2("s$i", $albumItemOptions, array(
                     'onChange' => "imageEditChoice(document.vote_form.s$i)",
                     'class' => 'adminform'));
             }
-            
+
             if (canVote()) {
                 print '</div>';
             }
@@ -929,7 +940,7 @@
 
 ?>
 	</form>
-<?php if ($gallery->user->isLoggedIn() &&  
+<?php if ($gallery->user->isLoggedIn() &&
 $gallery->user->getEmail() &&
 !$gallery->session->offline &&
 $gallery->app->emailOn == "yes") {
@@ -945,7 +956,7 @@
             $gallery->album->unsetEmailMe('other', $gallery->user);
         }
     }
-    echo makeFormIntro("view_album.php", 
+    echo makeFormIntro("view_album.php",
         array("name" => "email_me", "style" => "margin-bottom: 0px;"));
     echo gTranslate('core', "Email me when one of the following actions are done to this album:")."  ";
     $checked_com = ($gallery->album->getEmailMe('comments', $gallery->user)) ? "checked" : "" ;
@@ -963,7 +974,7 @@
 	</form>
 <?php } ?>
 <!-- bottom nav -->
-<?php 
+<?php
 
 if($numVisibleItems != 0) {
     includeLayout('navtablebegin.inc');
diff -Naur gallery-1.5.3/view_comments.php gallery-1.5.4/view_comments.php
--- gallery-1.5.3/view_comments.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/view_comments.php	2006-03-27 17:32:14.000000000 +0200
@@ -20,7 +20,7 @@
  * This page Created by Joseph D. Scheve ( chevy@tnatech.com ) for the
  * very pimp application that is Gallery.
  *
- * $Id: view_comments.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: view_comments.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/view_photo.php gallery-1.5.4/view_photo.php
--- gallery-1.5.3/view_photo.php	2006-04-06 13:49:10.000000000 +0200
+++ gallery-1.5.4/view_photo.php	2006-08-14 09:49:09.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: view_photo.php,v 1.277.2.4 2006/04/06 11:49:10 jenst Exp $
+ * $Id: view_photo.php 14311 2006-08-14 07:49:09Z jenst $
  */
 ?>
 <?php
@@ -54,7 +54,7 @@
     }
 } else {
     if ($index > $gallery->album->numPhotos(1)) {
-        $index = $numPhotos;
+        $index = $gallery->album->numPhotos(1);
     }
     $id = $gallery->album->getPhotoId($index);
 }
@@ -109,7 +109,7 @@
 $do_fullOnly = isset($gallery->session->fullOnly) &&
     !strcmp($gallery->session->fullOnly,"on") &&
     strcmp($gallery->album->fields["use_fullOnly"],"yes");
-    
+
 if ($do_fullOnly) {
     $full = $gallery->user->canViewFullImages($gallery->album);
 }
@@ -213,10 +213,10 @@
 
 if (!$GALLERY_EMBEDDED_INSIDE) {
 	doctype(); ?>
-<html> 
+<html>
 <head>
   <title><?php echo $gallery->app->galleryTitle . ' :: '. $gallery->album->fields["title"] . ' :: '. $title ; ?></title>
-  <?php 	
+  <?php
   common_header(array('metaTags' => $metaTags));
 
   /* prefetch/navigation */
@@ -262,7 +262,7 @@
       { color: <?php echo $gallery->album->fields['linkcolor'] ?>; }
     A:hover
       { color: #ff6600; }
-<?php 
+<?php
 }
 if (!empty($gallery->album->fields["bgcolor"])) {
     echo "BODY { background-color:" . $gallery->album->fields['bgcolor'] . "; }";
@@ -278,7 +278,7 @@
     }
 }
 ?>
-  </style> 
+  </style>
 
   </head>
   <body dir="<?php echo $gallery->direction ?>">
@@ -477,7 +477,7 @@
       $gallery->user->canViewFullImages($gallery->album)) {
         $lparams['set_fullOnly'] = (!isset($gallery->session->fullOnly) || strcmp($gallery->session->fullOnly,"on")) ? "on" : "off";
         $link = makeAlbumURL($gallery->session->albumName, $id, $lparams);
-        $adminTextIconElemens[] = _('View Images:');
+        $adminTextIconElemens[] = gTranslate('core', 'View Images:');
         $iconTextNormal = gTranslate('core', "normal");
         $iconTextFull = gTranslate('core', "full");
 
@@ -582,7 +582,7 @@
 </div>
 
 
-<div style="width:<?php echo $mainWidth ?>"> 
+<div style="width:<?php echo $mainWidth ?>">
 <?php includeHtmlWrap("inline_photo.header"); ?>
 </div>
 
@@ -702,7 +702,7 @@
 
 includeHtmlWrap("inline_photo.footer");
 
-if ($gallery->user->isLoggedIn() &&  
+if ($gallery->user->isLoggedIn() &&
   $gallery->user->getEmail() &&
   !$gallery->session->offline &&
   $gallery->app->emailOn == "yes") {
@@ -772,7 +772,7 @@
 </form>
 <?php }
 if (isset($printFotoserveForm)) { ?>
-<form name="fotoserve" 
+<form name="fotoserve"
 action="http://www.fotoserve.com/menalto/build.html" method="post">
   <input type="hidden" name="image" value="<?php echo $rawImage ?>">
   <input type="hidden" name="thumb" value="<?php echo $thumbImage ?>">
diff -Naur gallery-1.5.3/view_photo_properties.php gallery-1.5.4/view_photo_properties.php
--- gallery-1.5.3/view_photo_properties.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/view_photo_properties.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: view_photo_properties.php,v 1.50.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: view_photo_properties.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
diff -Naur gallery-1.5.3/watermark_album.php gallery-1.5.4/watermark_album.php
--- gallery-1.5.3/watermark_album.php	2006-03-27 17:31:25.000000000 +0200
+++ gallery-1.5.4/watermark_album.php	2006-03-27 17:32:14.000000000 +0200
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
  *
- * $Id: watermark_album.php,v 1.24.2.1 2006/03/27 15:31:25 jenst Exp $
+ * $Id: watermark_album.php 13338 2006-03-27 15:32:14Z jenst $
  */
 ?>
 <?php
