diff -Naur gallery-1.5.2-pl2/add_comment.php gallery-1.5.3/add_comment.php
--- gallery-1.5.2-pl2/add_comment.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/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.56.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: add_comment.php,v 1.57.2.2 2006/04/06 11:49:10 jenst Exp $
  */
 ?>
 <?php
@@ -59,7 +59,8 @@
 	} elseif (isBlacklistedComment($tmp = array('commenter_name' => $commenter_name, 'comment_text' => $comment_text), false)) {
 		$error_text = gTranslate('core', "Your Comment contains forbidden words. It will not be added.");
 	} else {
-		$comment_text = strip_tags($comment_text);
+// Uncomment to forbid html in comments.
+//		$comment_text = strip_tags($comment_text);
 		$commenter_name = strip_tags($commenter_name);
 		$IPNumber = $_SERVER['REMOTE_ADDR'];
 		$gallery->album->addComment($id, $comment_text, $IPNumber, $commenter_name);
diff -Naur gallery-1.5.2-pl2/add_photos_frame.php gallery-1.5.3/add_photos_frame.php
--- gallery-1.5.2-pl2/add_photos_frame.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/add_photos_frame.php	2006-03-27 17:31:24.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.10.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: add_photos_frame.php,v 1.11.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/add_photos.php gallery-1.5.3/add_photos.php
--- gallery-1.5.2-pl2/add_photos.php	2006-01-08 21:07:15.000000000 +0100
+++ gallery-1.5.3/add_photos.php	2006-03-27 17:31:24.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.80.2.2 2006/01/08 20:07:15 jenst Exp $
+ * $Id: add_photos.php,v 1.82.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/administer_startpage.php gallery-1.5.3/administer_startpage.php
--- gallery-1.5.2-pl2/administer_startpage.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/administer_startpage.php	2006-03-27 17:31:24.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.4.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: administer_startpage.php,v 1.5.2.1 2006/03/27 15:31:24 jenst Exp $
  *
  */
 ?>
diff -Naur gallery-1.5.2-pl2/admin-page.php gallery-1.5.3/admin-page.php
--- gallery-1.5.2-pl2/admin-page.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/admin-page.php	2006-03-27 17:31:24.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.17.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: admin-page.php,v 1.18.2.1 2006/03/27 15:31:24 jenst Exp $
  *
  */
 ?>
diff -Naur gallery-1.5.2-pl2/album_permissions.php gallery-1.5.3/album_permissions.php
--- gallery-1.5.2-pl2/album_permissions.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/album_permissions.php	2006-03-27 17:31:24.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.62.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: album_permissions.php,v 1.63.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/albums.php gallery-1.5.3/albums.php
--- gallery-1.5.2-pl2/albums.php	2006-01-08 21:07:15.000000000 +0100
+++ gallery-1.5.3/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.216.2.2 2006/01/08 20:07:15 jenst Exp $
+ * $Id: albums.php,v 1.218.2.2 2006/04/04 22:13:34 jenst Exp $
  */
 ?>
 <?php
@@ -107,8 +107,10 @@
 <?php
     }
     if ($gallery->app->rssEnabled == "yes" && !$gallery->session->offline) {
+    	$title = sprintf(gTranslate('core', "%s RSS"), $gallery->app->galleryTitle);
+    	$rssHref = $gallery->app->photoAlbumURL . "/rss.php"
 ?>
-  <link rel="alternate" title="<?php echo sprintf(gTranslate('core', "%s RSS"), $gallery->app->galleryTitle) ?>" href="<?php echo $gallery->app->photoAlbumURL . "/rss.php" ?>" type="application/rss+xml">
+  <link rel="alternate" title="<?php echo $title?>" href="<?php echo $rssHref ?>" type="application/rss+xml">
 <?php
     } ?>
 </head>
@@ -419,7 +421,7 @@
 	$creationDate = $gallery->album->getCreationDate();
 	$lastModifiedDate = $gallery->album->getLastModificationDate();
 	if($creationDate) {
-		printf(_("Created on %s, last changed on %s."), $creationDate, $lastModifiedDate);
+		printf(gTranslate('core', "Created on %s, last changed on %s."), $creationDate, $lastModifiedDate);
 	}
 	else {
 		printf(gTranslate('core', "Last changed on %s."), $lastModifiedDate);
diff -Naur gallery-1.5.2-pl2/block-random.php gallery-1.5.3/block-random.php
--- gallery-1.5.2-pl2/block-random.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/block-random.php	2006-03-27 17:31:24.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.17.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: block-random.php,v 1.18.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 /*
  * This block selects a random photo for display.  It will only display photos
diff -Naur gallery-1.5.2-pl2/captionator.php gallery-1.5.3/captionator.php
--- gallery-1.5.2-pl2/captionator.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/captionator.php	2006-03-27 17:31:24.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.69.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: captionator.php,v 1.70.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/ChangeLog gallery-1.5.3/ChangeLog
--- gallery-1.5.2-pl2/ChangeLog	2006-02-07 03:32:38.000000000 +0100
+++ gallery-1.5.3/ChangeLog	2006-04-07 00:38:00.000000000 +0200
@@ -1,3 +1,92 @@
+2006-04-06 Chris Kelly <ckdake@ckdake.com> 1.5.3
+
+ * Release: 1.5.3
+
+2006-04-06 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b23
+
+ * Change: Allow HTML again also in comments and user captions for images.
+
+2006-04-06 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b22
+
+ * Fix: ImageMap was opened was popup when no icons are used.
+
+ * Change: Removed obsolete function showChoice()
+
+2006-04-05 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b21
+
+ * Fix: Frame around movies in photo view was broken.
+
+2006-04-04 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b20
+
+ * Fix: Use gTranslate instead of _( in albums.php, view_album.php and view_photo.php
+
+2006-04-04 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b19
+
+ * Change: Make select boxes in watermark form to stay at the value selected before a preview.
+   Thanks to ejolley from forum.
+   Change done as 1.5.3-cvs-b8 in HEAD
+
+
+ * Change: Added icons for rotate and flip.
+
+ * Change: Layout of rotate_photo.php.
+   Thanks to Volksport.
+   Change done as 1.5.3-cvs-b5 in HEAD
+
+ * Fix: Language Mode 2 (Browserlanguage) was broken.
+   
+2006-03-28 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b18
+
+ * SECURITY FIX *
+
+  It was possible to use/"inject" Javascript inside various places to abuse this as a XSS Exploit.
+
+  Now every userinput got from $_REQUEST is sanitized.
+  We use the PEAR packages HTML_Safe and XML_HTMLSax3 to do this.
+  Nice benefit is that HTML is now again possible in captions, titles, etc.
+
+  The Team would like to thank Aditya Mooley for catching and reporting this.
+  And giving us the time to fix it before going to public.
+
+  Aditya Mooley is member of the Coppermine-Gallery Development team.
+  So have a look at http://coppermine.sf.net, the page of our friendly competittion application.
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b17
+
+ * Fix: In some dropdown boxes the wrong items is selected.
+	Appears e.g. in slideshow in IE where "blend" should be selected, but acutally
+	"RANDOM" is.
+
+	Thanks to Yuan from forums.
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b16
+
+ * Fix: When Gallery runs in joomla the complete framework is loaded into the
+	progressbar when uploading pictures.
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b15
+
+ * Fix: Even if owner modification is set to "no" then owner are allowed to hide there pictures.
+	Especially odd when owner is "everybody".
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b14
+
+ * Fix: When uploading files via the FORM method, the order was reverted in IE and Opera.
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b13
+
+ * Fix: When border is set to "solid" or "dots" then an unnice space appeared around thumbs.
+
+2006-03-27 Jens Tkotz <jens@peino.de> 1.5.3-cvs-b12
+
+ * Fix: When you have "Can every permitted user see a comments overview" set to 'yes' 
+        and then the permitted user goes to the overview he/she will get a "add comment" Button.
+	Regardless wether the user is allowed to add comments, or not.
+
+	This Fix makes the button only appear when user is allowed to add comments.
+
+	Thanks to Yuan from forums.
+
 2006-02-06 Chris Kelly <ckdake@ckdake.com> 1.5.2-pl2
 
 * Release: 1.5.2-pl2
diff -Naur gallery-1.5.2-pl2/classes/AlbumDB.php gallery-1.5.3/classes/AlbumDB.php
--- gallery-1.5.2-pl2/classes/AlbumDB.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/AlbumDB.php	2006-03-27 17:31:26.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.45.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: AlbumDB.php,v 1.47.2.1 2006/03/27 15:31:26 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/AlbumItem.php gallery-1.5.3/classes/AlbumItem.php
--- gallery-1.5.2-pl2/classes/AlbumItem.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/AlbumItem.php	2006-03-27 17:31:26.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.111.2.2 2006/01/06 06:31:31 jenst Exp $
+ * $Id: AlbumItem.php,v 1.114.2.1 2006/03/27 15:31:26 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/Album.php gallery-1.5.3/classes/Album.php
--- gallery-1.5.2-pl2/classes/Album.php	2006-02-02 01:37:09.000000000 +0100
+++ gallery-1.5.3/classes/Album.php	2006-03-27 17:31:26.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.280.2.4 2006/02/02 00:37:09 jenst Exp $
+ * $Id: Album.php,v 1.285.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/Comment.php gallery-1.5.3/classes/Comment.php
--- gallery-1.5.2-pl2/classes/Comment.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/Comment.php	2006-03-27 17:31:26.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.20.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: Comment.php,v 1.21.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/database/mysql/Database.php gallery-1.5.3/classes/database/mysql/Database.php
--- gallery-1.5.2-pl2/classes/database/mysql/Database.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/database/mysql/Database.php	2006-03-27 17:31:26.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/01/06 06:31:31 jenst Exp $
+ * $Id: Database.php,v 1.12.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/Database.php gallery-1.5.3/classes/Database.php
--- gallery-1.5.2-pl2/classes/Database.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/Database.php	2006-03-27 17:31:26.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.10.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: Database.php,v 1.11.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/EverybodyUser.php gallery-1.5.3/classes/EverybodyUser.php
--- gallery-1.5.2-pl2/classes/EverybodyUser.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/EverybodyUser.php	2006-03-27 17:31:26.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.13.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: EverybodyUser.php,v 1.14.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/gallery/UserDB.php gallery-1.5.3/classes/gallery/UserDB.php
--- gallery-1.5.2-pl2/classes/gallery/UserDB.php	2006-01-18 19:06:03.000000000 +0100
+++ gallery-1.5.3/classes/gallery/UserDB.php	2006-03-27 17:31:26.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.38.2.2 2006/01/18 18:06:03 jenst Exp $
+ * $Id: UserDB.php,v 1.40.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/gallery/User.php gallery-1.5.3/classes/gallery/User.php
--- gallery-1.5.2-pl2/classes/gallery/User.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/gallery/User.php	2006-03-27 17:31:26.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.23.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: User.php,v 1.24.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/HTML/table.php gallery-1.5.3/classes/HTML/table.php
--- gallery-1.5.2-pl2/classes/HTML/table.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/HTML/table.php	2006-03-27 17:31:26.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.6.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: table.php,v 1.7.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/HTML_Safe/Safe.php gallery-1.5.3/classes/HTML_Safe/Safe.php
--- gallery-1.5.2-pl2/classes/HTML_Safe/Safe.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/classes/HTML_Safe/Safe.php	2006-03-28 12:54:52.000000000 +0200
@@ -0,0 +1,669 @@
+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
+
+/**
+ * HTML_Safe Parser
+ *
+ * PHP versions 4 and 5
+ *
+ * @category   HTML
+ * @package    HTML_Safe
+ * @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 $
+ * @link       http://pear.php.net/package/HTML_Safe
+ */
+
+
+/**
+ * This package requires HTMLSax3 package
+ */
+require_once (dirname(dirname(__FILE__)) .'/XML_HTMLSax3/HTMLSax3.php');
+
+
+/**
+ *
+ * HTML_Safe Parser
+ *
+ * This parser strips down all potentially dangerous content within HTML:
+ * <ul>
+ * <li>opening tag without its closing tag</li>
+ * <li>closing tag without its opening tag</li>
+ * <li>any of these tags: "base", "basefont", "head", "html", "body", "applet",
+ * "object", "iframe", "frame", "frameset", "script", "layer", "ilayer", "embed",
+ * "bgsound", "link", "meta", "style", "title", "blink", "xml" etc.</li>
+ * <li>any of these attributes: on*, data*, dynsrc</li>
+ * <li>javascript:/vbscript:/about: etc. protocols</li>
+ * <li>expression/behavior etc. in styles</li>
+ * <li>any other active content</li>
+ * </ul>
+ * It also tries to convert code to XHTML valid, but htmltidy is far better
+ * solution for this task.
+ *
+ * <b>Example:</b>
+ * <pre>
+ * $parser =& new HTML_Safe();
+ * $result = $parser->parse($doc);
+ * </pre>
+ *
+ * @category   HTML
+ * @package    HTML_Safe
+ * @author     Roman Ivanov <thingol@mail.ru>
+ * @copyright  1997-2005 Roman Ivanov
+ * @license    http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
+ * @version    Release: @package_version@
+ * @link       http://pear.php.net/package/HTML_Safe
+ */
+class HTML_Safe
+{
+    /**
+     * Storage for resulting HTML output
+     *
+     * @var string
+     * @access private
+     */
+    var $_xhtml = '';
+
+    /**
+     * Array of counters for each tag
+     *
+     * @var array
+     * @access private
+     */
+    var $_counter = array();
+
+    /**
+     * Stack of unclosed tags
+     *
+     * @var array
+     * @access private
+     */
+    var $_stack = array();
+
+    /**
+     * Array of counters for tags that must be deleted with all content
+     *
+     * @var array
+     * @access private
+     */
+    var $_dcCounter = array();
+
+    /**
+     * Stack of unclosed tags that must be deleted with all content
+     *
+     * @var array
+     * @access private
+     */
+    var $_dcStack = array();
+
+    /**
+     * Stores level of list (ol/ul) nesting
+     *
+     * @var int
+     * @access private
+     */
+    var $_listScope = 0;
+
+    /**
+     * Stack of unclosed list tags
+     *
+     * @var array
+     * @access private
+     */
+    var $_liStack = array();
+
+    /**
+     * Array of prepared regular expressions for protocols (schemas) matching
+     *
+     * @var array
+     * @access private
+     */
+    var $_protoRegexps = array();
+
+    /**
+     * Array of prepared regular expressions for CSS matching
+     *
+     * @var array
+     * @access private
+     */
+    var $_cssRegexps = array();
+
+    /**
+     * List of single tags ("<tag />")
+     *
+     * @var array
+     * @access public
+     */
+    var $singleTags = array('area', 'br', 'img', 'input', 'hr', 'wbr', );
+
+    /**
+     * List of dangerous tags (such tags will be deleted)
+     *
+     * @var array
+     * @access public
+     */
+    var $deleteTags = array(
+        'applet', 'base',   'basefont', 'bgsound', 'blink',  'body',
+        'embed',  'frame',  'frameset', 'head',    'html',   'ilayer',
+        'iframe', 'layer',  'link',     'meta',    'object', 'style',
+        'title',  'script',
+        );
+
+    /**
+     * List of dangerous tags (such tags will be deleted, and all content
+     * inside this tags will be also removed)
+     *
+     * @var array
+     * @access public
+     */
+    var $deleteTagsContent = array('script', 'style', 'title', 'xml', );
+
+    /**
+     * Type of protocols filtering ('white' or 'black')
+     *
+     * @var string
+     * @access public
+     */
+    var $protocolFiltering = 'white';
+
+    /**
+     * List of "dangerous" protocols (used for blacklist-filtering)
+     *
+     * @var array
+     * @access public
+     */
+    var $blackProtocols = array(
+        'about',   'chrome',     'data',       'disk',     'hcp',
+        'help',    'javascript', 'livescript', 'lynxcgi',  'lynxexec',
+        'ms-help', 'ms-its',     'mhtml',      'mocha',    'opera',
+        'res',     'resource',   'shell',      'vbscript', 'view-source',
+        'vnd.ms.radio',          'wysiwyg',
+        );
+
+    /**
+     * List of "safe" protocols (used for whitelist-filtering)
+     *
+     * @var array
+     * @access public
+     */
+    var $whiteProtocols = array(
+        'ed2k',   'file', 'ftp',  'gopher', 'http',  'https',
+        'irc',    'mailto', 'news', 'nntp', 'telnet', 'webcal',
+        'xmpp',   'callto',
+        );
+
+    /**
+     * List of attributes that can contain protocols
+     *
+     * @var array
+     * @access public
+     */
+    var $protocolAttributes = array(
+        'action', 'background', 'codebase', 'dynsrc', 'href', 'lowsrc', 'src',
+        );
+
+    /**
+     * List of dangerous CSS keywords
+     *
+     * Whole style="" attribute will be removed, if parser will find one of
+     * these keywords
+     *
+     * @var array
+     * @access public
+     */
+    var $cssKeywords = array(
+        'absolute', 'behavior',       'behaviour',   'content', 'expression',
+        'fixed',    'include-source', 'moz-binding',
+        );
+
+    /**
+     * List of tags that can have no "closing tag"
+     *
+     * @var array
+     * @access public
+     * @deprecated XHTML does not allow such tags
+     */
+    var $noClose = array();
+
+    /**
+     * List of block-level tags that terminates paragraph
+     *
+     * Paragraph will be closed when this tags opened
+     *
+     * @var array
+     * @access public
+     */
+    var $closeParagraph = array(
+        'address', 'blockquote', 'center', 'dd',      'dir',       'div',
+        'dl',      'dt',         'h1',     'h2',      'h3',        'h4',
+        'h5',      'h6',         'hr',     'isindex', 'listing',   'marquee',
+        'menu',    'multicol',   'ol',     'p',       'plaintext', 'pre',
+        'table',   'ul',         'xmp',
+        );
+
+    /**
+     * List of table tags, all table tags outside a table will be removed
+     *
+     * @var array
+     * @access public
+     */
+    var $tableTags = array(
+        'caption', 'col', 'colgroup', 'tbody', 'td', 'tfoot', 'th',
+        'thead',   'tr',
+        );
+
+    /**
+     * List of list tags
+     *
+     * @var array
+     * @access public
+     */
+    var $listTags = array('dir', 'menu', 'ol', 'ul', 'dl', );
+
+    /**
+     * List of dangerous attributes
+     *
+     * @var array
+     * @access public
+     */
+    var $attributes = array('dynsrc', 'id', 'name', );
+
+    /**
+     * List of allowed "namespaced" attributes
+     *
+     * @var array
+     * @access public
+     */
+    var $attributesNS = array('xml:lang', );
+
+    /**
+     * Constructs class
+     *
+     * @access public
+     */
+    function HTML_Safe()
+    {
+        //making regular expressions based on Proto & CSS arrays
+        foreach ($this->blackProtocols as $proto) {
+            $preg = "/[\s\x01-\x1F]*";
+            for ($i=0; $i<strlen($proto); $i++) {
+                $preg .= $proto{$i} . "[\s\x01-\x1F]*";
+            }
+            $preg .= ":/i";
+            $this->_protoRegexps[] = $preg;
+        }
+
+        foreach ($this->cssKeywords as $css) {
+            $this->_cssRegexps[] = '/' . $css . '/i';
+        }
+        return true;
+    }
+
+    /**
+     * Handles the writing of attributes - called from $this->_openHandler()
+     *
+     * @param array $attrs array of attributes $name => $value
+     * @return boolean
+     * @access private
+     */
+    function _writeAttrs ($attrs)
+    {
+        if (is_array($attrs)) {
+            foreach ($attrs as $name => $value) {
+
+                $name = strtolower($name);
+
+                if (strpos($name, 'on') === 0) {
+                    continue;
+                }
+                if (strpos($name, 'data') === 0) {
+                    continue;
+                }
+                if (in_array($name, $this->attributes)) {
+                    continue;
+                }
+                if (!preg_match("/^[a-z0-9]+$/i", $name)) {
+                    if (!in_array($name, $this->attributesNS)) {
+                        continue;
+                    }
+                }
+
+                if (($value === TRUE) || (is_null($value))) {
+                    $value = $name;
+                }
+
+                if ($name == 'style') {
+
+                   // removes insignificant backslahes
+                   $value = str_replace("\\", '', $value);
+
+                   // removes CSS comments
+                   while (1)
+                   {
+                     $_value = preg_replace("!/\*.*?\*/!s", '', $value);
+                     if ($_value == $value) break;
+                     $value = $_value;
+                   }
+
+                   // replace all & to &amp;
+                   $value = str_replace('&amp;', '&', $value);
+                   $value = str_replace('&', '&amp;', $value);
+
+                   foreach ($this->_cssRegexps as $css) {
+                       if (preg_match($css, $value)) {
+                           continue 2;
+                       }
+                   }
+                   foreach ($this->_protoRegexps as $proto) {
+                       if (preg_match($proto, $value)) {
+                           continue 2;
+                       }
+                   }
+                }
+
+                $tempval = preg_replace('/&#(\d+);?/me', "chr('\\1')", $value); //"'
+                $tempval = preg_replace('/&#x([0-9a-f]+);?/mei', "chr(hexdec('\\1'))", $tempval);
+
+                if ((in_array($name, $this->protocolAttributes)) &&
+                    (strpos($tempval, ':') !== false))
+                {
+                    if ($this->protocolFiltering == 'black') {
+                        foreach ($this->_protoRegexps as $proto) {
+                            if (preg_match($proto, $tempval)) continue 2;
+                        }
+                    } else {
+                        $_tempval = explode(':', $tempval);
+                        $proto = $_tempval[0];
+                        if (!in_array($proto, $this->whiteProtocols)) {
+                            continue;
+                        }
+                    }
+                }
+
+                $value = str_replace("\"", "&quot;", $value);
+                $this->_xhtml .= ' ' . $name . '="' . $value . '"';
+            }
+        }
+        return true;
+    }
+
+    /**
+     * Opening tag handler - called from HTMLSax
+     *
+     * @param object $parser HTML Parser
+     * @param string $name   tag name
+     * @param array  $attrs  tag attributes
+     * @return boolean
+     * @access private
+     */
+    function _openHandler(&$parser, $name, $attrs)
+    {
+        $name = strtolower($name);
+
+        if (in_array($name, $this->deleteTagsContent)) {
+            array_push($this->_dcStack, $name);
+            $this->_dcCounter[$name] = isset($this->_dcCounter[$name]) ? $this->_dcCounter[$name]+1 : 1;
+        }
+        if (count($this->_dcStack) != 0) {
+            return true;
+        }
+
+        if (in_array($name, $this->deleteTags)) {
+            return true;
+        }
+
+        if (!preg_match("/^[a-z0-9]+$/i", $name)) {
+            if (preg_match("!(?:\@|://)!i", $name)) {
+                $this->_xhtml .= '&lt;' . $name . '&gt;';
+            }
+            return true;
+        }
+
+        if (in_array($name, $this->singleTags)) {
+            $this->_xhtml .= '<' . $name;
+            $this->_writeAttrs($attrs);
+            $this->_xhtml .= ' />';
+            return true;
+        }
+
+        // TABLES: cannot open table elements when we are not inside table
+        if ((isset($this->_counter['table'])) && ($this->_counter['table'] <= 0)
+            && (in_array($name, $this->tableTags)))
+        {
+            return true;
+        }
+
+        // PARAGRAPHS: close paragraph when closeParagraph tags opening
+        if ((in_array($name, $this->closeParagraph)) && (in_array('p', $this->_stack))) {
+            $this->_closeHandler($parser, 'p');
+        }
+
+        // LISTS: we should close <li> if <li> of the same level opening
+        if ($name == 'li' && count($this->_liStack) &&
+            $this->_listScope == $this->_liStack[count($this->_liStack)-1])
+        {
+            $this->_closeHandler($parser, 'li');
+        }
+
+        // LISTS: we want to know on what nesting level of lists we are
+        if (in_array($name, $this->listTags)) {
+            $this->_listScope++;
+        }
+        if ($name == 'li') {
+            array_push($this->_liStack, $this->_listScope);
+        }
+
+        $this->_xhtml .= '<' . $name;
+        $this->_writeAttrs($attrs);
+        $this->_xhtml .= '>';
+        array_push($this->_stack,$name);
+        $this->_counter[$name] = isset($this->_counter[$name]) ? $this->_counter[$name]+1 : 1;
+        return true;
+    }
+
+    /**
+     * Closing tag handler - called from HTMLSax
+     *
+     * @param object $parsers HTML parser
+     * @param string $name    tag name
+     * @return boolean
+     * @access private
+     */
+    function _closeHandler(&$parser, $name)
+    {
+
+        $name = strtolower($name);
+
+        if (isset($this->_dcCounter[$name]) && ($this->_dcCounter[$name] > 0) &&
+            (in_array($name, $this->deleteTagsContent)))
+        {
+           while ($name != ($tag = array_pop($this->_dcStack))) {
+            $this->_dcCounter[$tag]--;
+           }
+
+           $this->_dcCounter[$name]--;
+        }
+
+        if (count($this->_dcStack) != 0) {
+            return true;
+        }
+
+        if ((isset($this->_counter[$name])) && ($this->_counter[$name] > 0)) {
+           while ($name != ($tag = array_pop($this->_stack))) {
+               $this->_closeTag($tag);
+           }
+
+           $this->_closeTag($name);
+        }
+        return true;
+    }
+
+    /**
+     * Closes tag
+     *
+     * @param string $tag tag name
+     * @return boolean
+     * @access private
+     */
+    function _closeTag($tag)
+    {
+        if (!in_array($tag, $this->noClose)) {
+            $this->_xhtml .= '</' . $tag . '>';
+        }
+
+        $this->_counter[$tag]--;
+
+        if (in_array($tag, $this->listTags)) {
+            $this->_listScope--;
+        }
+
+        if ($tag == 'li') {
+            array_pop($this->_liStack);
+        }
+        return true;
+    }
+
+    /**
+     * Character data handler - called from HTMLSax
+     *
+     * @param object $parser HTML parser
+     * @param string $data   textual data
+     * @return boolean
+     * @access private
+     */
+    function _dataHandler(&$parser, $data)
+    {
+        if (count($this->_dcStack) == 0) {
+            $this->_xhtml .= $data;
+        }
+        return true;
+    }
+
+    /**
+     * Escape handler - called from HTMLSax
+     *
+     * @param object $parser HTML parser
+     * @param string $data   comments or other type of data
+     * @return boolean
+     * @access private
+     */
+    function _escapeHandler(&$parser, $data)
+    {
+        return true;
+    }
+
+    /**
+     * Returns the XHTML document
+     *
+     * @return string Processed (X)HTML document
+     * @access public
+     */
+    function getXHTML ()
+    {
+        while ($tag = array_pop($this->_stack)) {
+            $this->_closeTag($tag);
+        }
+
+        return $this->_xhtml;
+    }
+
+    /**
+     * Clears current document data
+     *
+     * @return boolean
+     * @access public
+     */
+    function clear()
+    {
+        $this->_xhtml = '';
+        return true;
+    }
+
+    /**
+     * Main parsing fuction
+     *
+     * @param string $doc HTML document for processing
+     * @return string Processed (X)HTML document
+     * @access public
+     */
+    function parse($doc)
+    {
+
+       // Save all '<' symbols
+       $doc = preg_replace("/<(?=[^a-zA-Z\/\!\?\%])/", '&lt;', $doc);
+
+       // Web documents shouldn't contains \x00 symbol
+       $doc = str_replace("\x00", '', $doc);
+
+       // Opera6 bug workaround
+       $doc = str_replace("\xC0\xBC", '&lt;', $doc);
+
+       // UTF-7 encoding ASCII decode
+       $doc = $this->repackUTF7($doc);
+
+       // Instantiate the parser
+       $parser=& new XML_HTMLSax3();
+
+       // Set up the parser
+       $parser->set_object($this);
+
+       $parser->set_element_handler('_openHandler','_closeHandler');
+       $parser->set_data_handler('_dataHandler');
+       $parser->set_escape_handler('_escapeHandler');
+
+       $parser->parse($doc);
+
+       return $this->getXHTML();
+
+    }
+
+
+    /**
+     * UTF-7 decoding fuction
+     *
+     * @param string $str HTML document for recode ASCII part of UTF-7 back to ASCII
+     * @return string Decoded document
+     * @access private
+     */
+    function repackUTF7($str)
+    {
+       return preg_replace_callback('!\+([0-9a-zA-Z/]+)\-!', array($this, 'repackUTF7Callback'), $str);
+    }
+
+    /**
+     * Additional UTF-7 decoding fuction
+     *
+     * @param string $str String for recode ASCII part of UTF-7 back to ASCII
+     * @return string Recoded string
+     * @access private
+     */
+    function repackUTF7Callback($str)
+    {
+       $str = base64_decode($str[1]);
+       $str = preg_replace_callback('/^((?:\x00.)*)((?:[^\x00].)+)/', array($this, 'repackUTF7Back'), $str);
+       return preg_replace('/\x00(.)/', '$1', $str);
+    }
+
+    /**
+     * Additional UTF-7 encoding fuction
+     *
+     * @param string $str String for recode ASCII part of UTF-7 back to ASCII
+     * @return string Recoded string
+     * @access private
+     */
+    function repackUTF7Back($str)
+    {
+       return $str[1].'+'.rtrim(base64_encode($str[2]), '=').'-';
+    }
+}
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * c-hanging-comment-ender-p: nil
+ * End:
+ */
+
+?>
diff -Naur gallery-1.5.2-pl2/classes/Image.php gallery-1.5.3/classes/Image.php
--- gallery-1.5.2-pl2/classes/Image.php	2006-01-18 19:06:03.000000000 +0100
+++ gallery-1.5.3/classes/Image.php	2006-03-27 17:31:26.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.70.2.2 2006/01/18 18:06:03 jenst Exp $
+ * $Id: Image.php,v 1.72.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/LoggedInUser.php gallery-1.5.3/classes/LoggedInUser.php
--- gallery-1.5.2-pl2/classes/LoggedInUser.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/LoggedInUser.php	2006-03-27 17:31:26.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.9.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: LoggedInUser.php,v 1.10.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/mambo/UserDB.php gallery-1.5.3/classes/mambo/UserDB.php
--- gallery-1.5.2-pl2/classes/mambo/UserDB.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/mambo/UserDB.php	2006-03-27 17:31:27.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.4.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: UserDB.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/mambo/User.php gallery-1.5.3/classes/mambo/User.php
--- gallery-1.5.2-pl2/classes/mambo/User.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/mambo/User.php	2006-03-27 17:31:27.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.4.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: User.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/NobodyUser.php gallery-1.5.3/classes/NobodyUser.php
--- gallery-1.5.2-pl2/classes/NobodyUser.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/NobodyUser.php	2006-03-27 17:31:26.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.14.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: NobodyUser.php,v 1.15.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nsnnuke/AdminUser.php gallery-1.5.3/classes/nsnnuke/AdminUser.php
--- gallery-1.5.2-pl2/classes/nsnnuke/AdminUser.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nsnnuke/AdminUser.php	2006-03-27 17:31:27.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.4.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: AdminUser.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nsnnuke/UserDB.php gallery-1.5.3/classes/nsnnuke/UserDB.php
--- gallery-1.5.2-pl2/classes/nsnnuke/UserDB.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nsnnuke/UserDB.php	2006-03-27 17:31:27.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.4.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: UserDB.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nsnnuke/User.php gallery-1.5.3/classes/nsnnuke/User.php
--- gallery-1.5.2-pl2/classes/nsnnuke/User.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nsnnuke/User.php	2006-03-27 17:31:27.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.4.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: User.php,v 1.5.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nuke5/AdminUser.php gallery-1.5.3/classes/nuke5/AdminUser.php
--- gallery-1.5.2-pl2/classes/nuke5/AdminUser.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nuke5/AdminUser.php	2006-03-27 17:31:27.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.10.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: AdminUser.php,v 1.11.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nuke5/UserDB.php gallery-1.5.3/classes/nuke5/UserDB.php
--- gallery-1.5.2-pl2/classes/nuke5/UserDB.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nuke5/UserDB.php	2006-03-27 17:31:27.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.13.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: UserDB.php,v 1.14.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/nuke5/User.php gallery-1.5.3/classes/nuke5/User.php
--- gallery-1.5.2-pl2/classes/nuke5/User.php	2006-01-06 07:31:32.000000000 +0100
+++ gallery-1.5.3/classes/nuke5/User.php	2006-03-27 17:31:27.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.11.2.1 2006/01/06 06:31:32 jenst Exp $
+ * $Id: User.php,v 1.12.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/postnuke/UserDB.php gallery-1.5.3/classes/postnuke/UserDB.php
--- gallery-1.5.2-pl2/classes/postnuke/UserDB.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/classes/postnuke/UserDB.php	2006-03-27 17:31:27.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.11.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: UserDB.php,v 1.12.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/postnuke/User.php gallery-1.5.3/classes/postnuke/User.php
--- gallery-1.5.2-pl2/classes/postnuke/User.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/classes/postnuke/User.php	2006-03-27 17:31:27.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.9.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: User.php,v 1.10.2.1 2006/03/27 15:31:27 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/postnuke0.7.1/UserDB.php gallery-1.5.3/classes/postnuke0.7.1/UserDB.php
--- gallery-1.5.2-pl2/classes/postnuke0.7.1/UserDB.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/classes/postnuke0.7.1/UserDB.php	2006-03-27 17:31:28.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.8.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: UserDB.php,v 1.9.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/postnuke0.7.1/User.php gallery-1.5.3/classes/postnuke0.7.1/User.php
--- gallery-1.5.2-pl2/classes/postnuke0.7.1/User.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/classes/postnuke0.7.1/User.php	2006-03-27 17:31:28.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.11.2.1 2006/01/06 06:31:33 jenst Exp $
+* $Id: User.php,v 1.12.2.1 2006/03/27 15:31:28 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/remote/GalleryRemoteProperties.php gallery-1.5.3/classes/remote/GalleryRemoteProperties.php
--- gallery-1.5.2-pl2/classes/remote/GalleryRemoteProperties.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/classes/remote/GalleryRemoteProperties.php	2006-03-27 17:31:28.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.8.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: GalleryRemoteProperties.php,v 1.9.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/UserDB.php gallery-1.5.3/classes/UserDB.php
--- gallery-1.5.2-pl2/classes/UserDB.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/classes/UserDB.php	2006-03-27 17:31:26.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.24.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: UserDB.php,v 1.25.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/User.php gallery-1.5.3/classes/User.php
--- gallery-1.5.2-pl2/classes/User.php	2006-01-18 19:06:03.000000000 +0100
+++ gallery-1.5.3/classes/User.php	2006-03-27 17:31:26.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.33.2.3 2006/01/18 18:06:03 jenst Exp $
+ * $Id: User.php,v 1.37.2.1 2006/03/27 15:31:26 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3/Decorators.php gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/Decorators.php
--- gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3/Decorators.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/Decorators.php	2006-03-28 12:54:52.000000000 +0200
@@ -0,0 +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);
+    }
+}
+?>
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3/States.php gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/States.php
--- gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3/States.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3/States.php	2006-03-28 12:54:52.000000000 +0200
@@ -0,0 +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;
+    }
+}
+?>
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3.php gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3.php
--- gallery-1.5.2-pl2/classes/XML_HTMLSax3/HTMLSax3.php	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/classes/XML_HTMLSax3/HTMLSax3.php	2006-03-28 12:54:52.000000000 +0200
@@ -0,0 +1,687 @@
+<?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: HTMLSax3.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
+//
+/**
+* Main parser components
+* @package XML_HTMLSax3
+* @version $Id: HTMLSax3.php,v 1.1.2.1 2006/03/28 10:54:52 jenst Exp $
+*/
+/**
+* Required classes
+*/
+if (!defined('XML_HTMLSAX3')) {
+    define('XML_HTMLSAX3', dirname(__FILE__) .'/');
+}
+require_once(XML_HTMLSAX3 . 'HTMLSax3/States.php');
+require_once(XML_HTMLSAX3 . 'HTMLSax3/Decorators.php');
+
+/**
+* Base State Parser
+* @package XML_HTMLSax3
+* @access protected
+* @abstract
+*/
+class XML_HTMLSax3_StateParser {
+    /**
+    * Instance of user front end class to be passed to callbacks
+    * @var XML_HTMLSax3
+    * @access private
+    */
+    var $htmlsax;
+    /**
+    * User defined object for handling elements
+    * @var object
+    * @access private
+    */
+    var $handler_object_element;
+    /**
+    * User defined open tag handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_opening;
+    /**
+    * User defined close tag handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_closing;
+    /**
+    * User defined object for handling data in elements
+    * @var object
+    * @access private
+    */
+    var $handler_object_data;
+    /**
+    * User defined data handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_data;
+    /**
+    * User defined object for handling processing instructions
+    * @var object
+    * @access private
+    */
+    var $handler_object_pi;
+    /**
+    * User defined processing instruction handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_pi;
+    /**
+    * User defined object for handling JSP/ASP tags
+    * @var object
+    * @access private
+    */
+    var $handler_object_jasp;
+    /**
+    * User defined JSP/ASP handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_jasp;
+    /**
+    * User defined object for handling XML escapes
+    * @var object
+    * @access private
+    */
+    var $handler_object_escape;
+    /**
+    * User defined XML escape handler method
+    * @var string
+    * @access private
+    */
+    var $handler_method_escape;
+    /**
+    * User defined handler object or NullHandler
+    * @var object
+    * @access private
+    */
+    var $handler_default;
+    /**
+    * Parser options determining parsing behavior
+    * @var array
+    * @access private
+    */
+    var $parser_options = array();
+    /**
+    * XML document being parsed
+    * @var string
+    * @access private
+    */
+    var $rawtext;
+    /**
+    * Position in XML document relative to start (0)
+    * @var int
+    * @access private
+    */
+    var $position;
+    /**
+    * Length of the XML document in characters
+    * @var int
+    * @access private
+    */
+    var $length;
+    /**
+    * Array of state objects
+    * @var array
+    * @access private
+    */
+    var $State = array();
+
+    /**
+    * Constructs XML_HTMLSax3_StateParser setting up states
+    * @var XML_HTMLSax3 instance of user front end class
+    * @access protected
+    */
+    function XML_HTMLSax3_StateParser (& $htmlsax) {
+        $this->htmlsax = & $htmlsax;
+        $this->State[XML_HTMLSAX3_STATE_START] =& new XML_HTMLSax3_StartingState();
+
+        $this->State[XML_HTMLSAX3_STATE_CLOSING_TAG] =& new XML_HTMLSax3_ClosingTagState();
+        $this->State[XML_HTMLSAX3_STATE_TAG] =& new XML_HTMLSax3_TagState();
+        $this->State[XML_HTMLSAX3_STATE_OPENING_TAG] =& new XML_HTMLSax3_OpeningTagState();
+
+        $this->State[XML_HTMLSAX3_STATE_PI] =& new XML_HTMLSax3_PiState();
+        $this->State[XML_HTMLSAX3_STATE_JASP] =& new XML_HTMLSax3_JaspState();
+        $this->State[XML_HTMLSAX3_STATE_ESCAPE] =& new XML_HTMLSax3_EscapeState();
+    }
+
+    /**
+    * Moves the position back one character
+    * @access protected
+    * @return void
+    */
+    function unscanCharacter() {
+        $this->position -= 1;
+    }
+
+    /**
+    * Moves the position forward one character
+    * @access protected
+    * @return void
+    */
+    function ignoreCharacter() {
+        $this->position += 1;
+    }
+
+    /**
+    * Returns the next character from the XML document or void if at end
+    * @access protected
+    * @return mixed
+    */
+    function scanCharacter() {
+        if ($this->position < $this->length) {
+            return $this->rawtext{$this->position++};
+        }
+    }
+
+    /**
+    * Returns a string from the current position to the next occurance
+    * of the supplied string
+    * @param string string to search until
+    * @access protected
+    * @return string
+    */
+    function scanUntilString($string) {
+        $start = $this->position;
+        $this->position = strpos($this->rawtext, $string, $start);
+        if ($this->position === FALSE) {
+            $this->position = $this->length;
+        }
+        return substr($this->rawtext, $start, $this->position - $start);
+    }
+
+    /**
+    * Returns a string from the current position until the first instance of
+    * one of the characters in the supplied string argument
+    * @param string string to search until
+    * @access protected
+    * @return string
+    * @abstract
+    */
+    function scanUntilCharacters($string) {}
+
+    /**
+    * Moves the position forward past any whitespace characters
+    * @access protected
+    * @return void
+    * @abstract
+    */
+    function ignoreWhitespace() {}
+
+    /**
+    * Begins the parsing operation, setting up any decorators, depending on
+    * parse options invoking _parse() to execute parsing
+    * @param string XML document to parse
+    * @access protected
+    * @return void
+    */
+    function parse($data) {
+        if ($this->parser_options['XML_OPTION_TRIM_DATA_NODES']==1) {
+            $decorator =& new XML_HTMLSax3_Trim(
+                $this->handler_object_data,
+                $this->handler_method_data);
+            $this->handler_object_data =& $decorator;
+            $this->handler_method_data = 'trimData';
+        }
+        if ($this->parser_options['XML_OPTION_CASE_FOLDING']==1) {
+            $open_decor =& new XML_HTMLSax3_CaseFolding(
+                $this->handler_object_element,
+                $this->handler_method_opening,
+                $this->handler_method_closing);
+            $this->handler_object_element =& $open_decor;
+            $this->handler_method_opening ='foldOpen';
+            $this->handler_method_closing ='foldClose';
+        }
+        if ($this->parser_options['XML_OPTION_LINEFEED_BREAK']==1) {
+            $decorator =& new XML_HTMLSax3_Linefeed(
+                $this->handler_object_data,
+                $this->handler_method_data);
+            $this->handler_object_data =& $decorator;
+            $this->handler_method_data = 'breakData';
+        }
+        if ($this->parser_options['XML_OPTION_TAB_BREAK']==1) {
+            $decorator =& new XML_HTMLSax3_Tab(
+                $this->handler_object_data,
+                $this->handler_method_data);
+            $this->handler_object_data =& $decorator;
+            $this->handler_method_data = 'breakData';
+        }
+        if ($this->parser_options['XML_OPTION_ENTITIES_UNPARSED']==1) {
+            $decorator =& new XML_HTMLSax3_Entities_Unparsed(
+                $this->handler_object_data,
+                $this->handler_method_data);
+            $this->handler_object_data =& $decorator;
+            $this->handler_method_data = 'breakData';
+        }
+        if ($this->parser_options['XML_OPTION_ENTITIES_PARSED']==1) {
+            $decorator =& new XML_HTMLSax3_Entities_Parsed(
+                $this->handler_object_data,
+                $this->handler_method_data);
+            $this->handler_object_data =& $decorator;
+            $this->handler_method_data = 'breakData';
+        }
+        // Note switched on by default
+        if ($this->parser_options['XML_OPTION_STRIP_ESCAPES']==1) {
+            $decorator =& new XML_HTMLSax3_Escape_Stripper(
+                $this->handler_object_escape,
+                $this->handler_method_escape);
+            $this->handler_object_escape =& $decorator;
+            $this->handler_method_escape = 'strip';
+        }
+        $this->rawtext = $data;
+        $this->length = strlen($data);
+        $this->position = 0;
+        $this->_parse();
+    }
+
+    /**
+    * Performs the parsing itself, delegating calls to a specific parser
+    * state
+    * @param constant state object to parse with
+    * @access protected
+    * @return void
+    */
+    function _parse($state = XML_HTMLSAX3_STATE_START) {
+        do {
+            $state = $this->State[$state]->parse($this);
+        } while ($state != XML_HTMLSAX3_STATE_STOP &&
+                    $this->position < $this->length);
+    }
+}
+
+/**
+* Parser for PHP Versions below 4.3.0. Uses a slower parsing mechanism than
+* the equivalent PHP 4.3.0+  subclass of StateParser
+* @package XML_HTMLSax3
+* @access protected
+* @see XML_HTMLSax3_StateParser_Gtet430
+*/
+class XML_HTMLSax3_StateParser_Lt430 extends XML_HTMLSax3_StateParser {
+    /**
+    * Constructs XML_HTMLSax3_StateParser_Lt430 defining available
+    * parser options
+    * @var XML_HTMLSax3 instance of user front end class
+    * @access protected
+    */
+    function XML_HTMLSax3_StateParser_Lt430(& $htmlsax) {
+        parent::XML_HTMLSax3_StateParser($htmlsax);
+        $this->parser_options['XML_OPTION_TRIM_DATA_NODES'] = 0;
+        $this->parser_options['XML_OPTION_CASE_FOLDING'] = 0;
+        $this->parser_options['XML_OPTION_LINEFEED_BREAK'] = 0;
+        $this->parser_options['XML_OPTION_TAB_BREAK'] = 0;
+        $this->parser_options['XML_OPTION_ENTITIES_PARSED'] = 0;
+        $this->parser_options['XML_OPTION_ENTITIES_UNPARSED'] = 0;
+        $this->parser_options['XML_OPTION_STRIP_ESCAPES'] = 0;
+    }
+
+    /**
+    * Returns a string from the current position until the first instance of
+    * one of the characters in the supplied string argument
+    * @param string string to search until
+    * @access protected
+    * @return string
+    */
+    function scanUntilCharacters($string) {
+        $startpos = $this->position;
+        while ($this->position < $this->length && strpos($string, $this->rawtext{$this->position}) === FALSE) {
+            $this->position++;
+        }
+        return substr($this->rawtext, $startpos, $this->position - $startpos);
+    }
+
+    /**
+    * Moves the position forward past any whitespace characters
+    * @access protected
+    * @return void
+    */
+    function ignoreWhitespace() {
+        while ($this->position < $this->length &&
+            strpos(" \n\r\t", $this->rawtext{$this->position}) !== FALSE) {
+            $this->position++;
+        }
+    }
+
+    /**
+    * Begins the parsing operation, setting up the unparsed XML entities
+    * decorator if necessary then delegating further work to parent
+    * @param string XML document to parse
+    * @access protected
+    * @return void
+    */
+    function parse($data) {
+        parent::parse($data);
+    }
+}
+
+/**
+* Parser for PHP Versions equal to or greater than 4.3.0. Uses a faster
+* parsing mechanism than the equivalent PHP < 4.3.0 subclass of StateParser
+* @package XML_HTMLSax3
+* @access protected
+* @see XML_HTMLSax3_StateParser_Lt430
+*/
+class XML_HTMLSax3_StateParser_Gtet430 extends XML_HTMLSax3_StateParser {
+    /**
+    * Constructs XML_HTMLSax3_StateParser_Gtet430 defining available
+    * parser options
+    * @var XML_HTMLSax3 instance of user front end class
+    * @access protected
+    */
+    function XML_HTMLSax3_StateParser_Gtet430(& $htmlsax) {
+        parent::XML_HTMLSax3_StateParser($htmlsax);
+        $this->parser_options['XML_OPTION_TRIM_DATA_NODES'] = 0;
+        $this->parser_options['XML_OPTION_CASE_FOLDING'] = 0;
+        $this->parser_options['XML_OPTION_LINEFEED_BREAK'] = 0;
+        $this->parser_options['XML_OPTION_TAB_BREAK'] = 0;
+        $this->parser_options['XML_OPTION_ENTITIES_PARSED'] = 0;
+        $this->parser_options['XML_OPTION_ENTITIES_UNPARSED'] = 0;
+        $this->parser_options['XML_OPTION_STRIP_ESCAPES'] = 0;
+    }
+    /**
+    * Returns a string from the current position until the first instance of
+    * one of the characters in the supplied string argument.
+    * @param string string to search until
+    * @access protected
+    * @return string
+    */
+    function scanUntilCharacters($string) {
+        $startpos = $this->position;
+        $length = strcspn($this->rawtext, $string, $startpos);
+        $this->position += $length;
+        return substr($this->rawtext, $startpos, $length);
+    }
+
+    /**
+    * Moves the position forward past any whitespace characters
+    * @access protected
+    * @return void
+    */
+    function ignoreWhitespace() {
+        $this->position += strspn($this->rawtext, " \n\r\t", $this->position);
+    }
+
+    /**
+    * Begins the parsing operation, setting up the parsed and unparsed
+    * XML entity decorators if necessary then delegating further work
+    * to parent
+    * @param string XML document to parse
+    * @access protected
+    * @return void
+    */
+    function parse($data) {
+        parent::parse($data);
+    }
+}
+
+/**
+* Default NullHandler for methods which were not set by user
+* @package XML_HTMLSax3
+* @access protected
+*/
+class XML_HTMLSax3_NullHandler {
+    /**
+    * Generic handler method which does nothing
+    * @access protected
+    * @return void
+    */
+    function DoNothing() {
+    }
+}
+
+/**
+* User interface class. All user calls should only be made to this class
+* @package XML_HTMLSax3
+* @access public
+*/
+class XML_HTMLSax3 {
+    /**
+    * Instance of concrete subclass of XML_HTMLSax3_StateParser
+    * @var XML_HTMLSax3_StateParser
+    * @access private
+    */
+    var $state_parser;
+
+    /**
+    * Constructs XML_HTMLSax3 selecting concrete StateParser subclass
+    * depending on PHP version being used as well as setting the default
+    * NullHandler for all callbacks<br />
+    * <b>Example:</b>
+    * <pre>
+    * $myHandler = & new MyHandler();
+    * $parser = new XML_HTMLSax3();
+    * $parser->set_object($myHandler);
+    * $parser->set_option('XML_OPTION_CASE_FOLDING');
+    * $parser->set_element_handler('myOpenHandler','myCloseHandler');
+    * $parser->set_data_handler('myDataHandler');
+    * $parser->parser($xml);
+    * </pre>
+    * @access public
+    */
+    function XML_HTMLSax3() {
+        if (version_compare(phpversion(), '4.3', 'ge')) {
+            $this->state_parser =& new XML_HTMLSax3_StateParser_Gtet430($this);
+        } else {
+            $this->state_parser =& new XML_HTMLSax3_StateParser_Lt430($this);
+        }
+        $nullhandler =& new XML_HTMLSax3_NullHandler();
+        $this->set_object($nullhandler);
+        $this->set_element_handler('DoNothing', 'DoNothing');
+        $this->set_data_handler('DoNothing');
+        $this->set_pi_handler('DoNothing');
+        $this->set_jasp_handler('DoNothing');
+        $this->set_escape_handler('DoNothing');
+    }
+
+    /**
+    * Sets the user defined handler object. Returns a PEAR Error
+    * if supplied argument is not an object.
+    * @param object handler object containing SAX callback methods
+    * @access public
+    * @return mixed
+    */
+    function set_object(&$object) {
+        if ( is_object($object) ) {
+            $this->state_parser->handler_default =& $object;
+            return true;
+        } else {
+            require_once('PEAR.php');
+            PEAR::raiseError('XML_HTMLSax3::set_object requires '.
+                'an object instance');
+        }
+    }
+
+    /**
+    * Sets a parser option. By default all options are switched off.
+    * Returns a PEAR Error if option is invalid<br />
+    * <b>Available options:</b>
+    * <ul>
+    * <li>XML_OPTION_TRIM_DATA_NODES: trim whitespace off the beginning
+    * and end of data passed to the data handler</li>
+    * <li>XML_OPTION_LINEFEED_BREAK: linefeeds result in additional data
+    * handler calls</li>
+    * <li>XML_OPTION_TAB_BREAK: tabs result in additional data handler
+    * calls</li>
+    * <li>XML_OPTION_ENTITIES_UNPARSED: XML entities are returned as
+    * seperate data handler calls in unparsed form</li>
+    * <li>XML_OPTION_ENTITIES_PARSED: (PHP 4.3.0+ only) XML entities are
+    * returned as seperate data handler calls and are parsed with
+    * PHP's html_entity_decode() function</li>
+    * <li>XML_OPTION_STRIP_ESCAPES: strips out the -- -- comment markers
+    * or CDATA markup inside an XML escape, if found.</li>
+    * </ul>
+    * To get HTMLSax to behave in the same way as the native PHP SAX parser,
+    * using it's default state, you need to switch on XML_OPTION_LINEFEED_BREAK,
+    * XML_OPTION_ENTITIES_PARSED and XML_OPTION_CASE_FOLDING
+    * @param string name of parser option
+    * @param int (optional) 1 to switch on, 0 for off
+    * @access public
+    * @return boolean
+    */
+    function set_option($name, $value=1) {
+        if ( array_key_exists($name,$this->state_parser->parser_options) ) {
+            $this->state_parser->parser_options[$name] = $value;
+            return true;
+        } else {
+            require_once('PEAR.php');
+            PEAR::raiseError('XML_HTMLSax3::set_option('.$name.') illegal');
+        }
+    }
+
+    /**
+    * Sets the data handler method which deals with the contents of XML
+    * elements.<br />
+    * The handler method must accept two arguments, the first being an
+    * instance of XML_HTMLSax3 and the second being the contents of an
+    * XML element e.g.
+    * <pre>
+    * function myDataHander(& $parser,$data){}
+    * </pre>
+    * @param string name of method
+    * @access public
+    * @return void
+    * @see set_object
+    */
+    function set_data_handler($data_method) {
+        $this->state_parser->handler_object_data =& $this->state_parser->handler_default;
+        $this->state_parser->handler_method_data = $data_method;
+    }
+
+    /**
+    * Sets the open and close tag handlers
+    * <br />The open handler method must accept three arguments; the parser,
+    * the tag name and an array of attributes e.g.
+    * <pre>
+    * function myOpenHander(& $parser,$tagname,$attrs=array()){}
+    * </pre>
+    * The close handler method must accept two arguments; the parser and
+    * the tag name e.g.
+    * <pre>
+    * function myCloseHander(& $parser,$tagname){}
+    * </pre>
+    * @param string name of open method
+    * @param string name of close method
+    * @access public
+    * @return void
+    * @see set_object
+    */
+    function set_element_handler($opening_method, $closing_method) {
+        $this->state_parser->handler_object_element =& $this->state_parser->handler_default;
+        $this->state_parser->handler_method_opening = $opening_method;
+        $this->state_parser->handler_method_closing = $closing_method;
+    }
+
+    /**
+    * Sets the processing instruction handler method e.g. for PHP open
+    * and close tags<br />
+    * The handler method must accept three arguments; the parser, the
+    * PI target and data inside the PI
+    * <pre>
+    * function myPIHander(& $parser,$target, $data){}
+    * </pre>
+    * @param string name of method
+    * @access public
+    * @return void
+    * @see set_object
+    */
+    function set_pi_handler($pi_method) {
+        $this->state_parser->handler_object_pi =& $this->state_parser->handler_default;
+        $this->state_parser->handler_method_pi = $pi_method;
+    }
+
+    /**
+    * Sets the XML escape handler method e.g. for comments and doctype
+    * declarations<br />
+    * The handler method must accept two arguments; the parser and the
+    * contents of the escaped section
+    * <pre>
+    * function myEscapeHander(& $parser, $data){}
+    * </pre>
+    * @param string name of method
+    * @access public
+    * @return void
+    * @see set_object
+    */
+    function set_escape_handler($escape_method) {
+        $this->state_parser->handler_object_escape =& $this->state_parser->handler_default;
+        $this->state_parser->handler_method_escape = $escape_method;
+    }
+
+    /**
+    * Sets the JSP/ASP markup handler<br />
+    * The handler method must accept two arguments; the parser and
+    * body of the JASP tag
+    * <pre>
+    * function myJaspHander(& $parser, $data){}
+    * </pre>
+    * @param string name of method
+    * @access public
+    * @return void
+    * @see set_object
+    */
+    function set_jasp_handler ($jasp_method) {
+        $this->state_parser->handler_object_jasp =& $this->state_parser->handler_default;
+        $this->state_parser->handler_method_jasp = $jasp_method;
+    }
+
+    /**
+    * Returns the current string position of the "cursor" inside the XML
+    * document
+    * <br />Intended for use from within a user defined handler called
+    * via the $parser reference e.g.
+    * <pre>
+    * function myDataHandler(& $parser,$data) {
+    *     echo( 'Current position: '.$parser->get_current_position() );
+    * }
+    * </pre>
+    * @access public
+    * @return int
+    * @see get_length
+    */
+    function get_current_position() {
+        return $this->state_parser->position;
+    }
+
+    /**
+    * Returns the string length of the XML document being parsed
+    * @access public
+    * @return int
+    */
+    function get_length() {
+        return $this->state_parser->length;
+    }
+
+    /**
+    * Start parsing some XML
+    * @param string XML document
+    * @access public
+    * @return void
+    */
+    function parse($data) {
+        $this->state_parser->parse($data);
+    }
+}
+?>
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/contrib/joomla/admin.gallery.html.php gallery-1.5.3/contrib/joomla/admin.gallery.html.php
--- gallery-1.5.2-pl2/contrib/joomla/admin.gallery.html.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/contrib/joomla/admin.gallery.html.php	2006-03-27 17:31:28.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.1.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: admin.gallery.html.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 class HTML_content {
diff -Naur gallery-1.5.2-pl2/contrib/joomla/admin.gallery.php gallery-1.5.3/contrib/joomla/admin.gallery.php
--- gallery-1.5.2-pl2/contrib/joomla/admin.gallery.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/contrib/joomla/admin.gallery.php	2006-03-27 17:31:28.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.1.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: admin.gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.2-pl2/contrib/joomla/gallery.php gallery-1.5.3/contrib/joomla/gallery.php
--- gallery-1.5.2-pl2/contrib/joomla/gallery.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/contrib/joomla/gallery.php	2006-03-27 17:31:28.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.1.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.2-pl2/contrib/joomla/gallery.xml gallery-1.5.3/contrib/joomla/gallery.xml
--- gallery-1.5.2-pl2/contrib/joomla/gallery.xml	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/contrib/joomla/gallery.xml	2006-03-27 17:31:28.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.1.2.2 2006/01/06 06:31:33 jenst Exp $
+ | $Id: gallery.xml,v 1.3.2.1 2006/03/27 15:31:28 jenst Exp $
 -->
 <mosinstall type="component" version="1.05">
 	<name>Gallery</name>
diff -Naur gallery-1.5.2-pl2/contrib/joomla/toolbar.gallery.php gallery-1.5.3/contrib/joomla/toolbar.gallery.php
--- gallery-1.5.2-pl2/contrib/joomla/toolbar.gallery.php	2006-01-06 07:31:33.000000000 +0100
+++ gallery-1.5.3/contrib/joomla/toolbar.gallery.php	2006-03-27 17:31:28.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.1.2.1 2006/01/06 06:31:33 jenst Exp $
+ * $Id: toolbar.gallery.php,v 1.2.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 require_once($mainframe->getPath('toolbar_default'));
diff -Naur gallery-1.5.2-pl2/contrib/mambo/admin.gallery.html.php gallery-1.5.3/contrib/mambo/admin.gallery.html.php
--- gallery-1.5.2-pl2/contrib/mambo/admin.gallery.html.php	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/mambo/admin.gallery.html.php	2006-03-27 17:31:28.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.3.2.1 2006/01/06 06:31:34 jenst Exp $
+ * $Id: admin.gallery.html.php,v 1.4.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 class HTML_content {
diff -Naur gallery-1.5.2-pl2/contrib/mambo/admin.gallery.php gallery-1.5.3/contrib/mambo/admin.gallery.php
--- gallery-1.5.2-pl2/contrib/mambo/admin.gallery.php	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/mambo/admin.gallery.php	2006-03-27 17:31:28.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.4.2.1 2006/01/06 06:31:34 jenst Exp $
+ * $Id: admin.gallery.php,v 1.5.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.2-pl2/contrib/mambo/gallery.php gallery-1.5.3/contrib/mambo/gallery.php
--- gallery-1.5.2-pl2/contrib/mambo/gallery.php	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/mambo/gallery.php	2006-03-27 17:31:28.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.5.2.1 2006/01/06 06:31:34 jenst Exp $
+ * $Id: gallery.php,v 1.6.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
diff -Naur gallery-1.5.2-pl2/contrib/mambo/gallery.xml gallery-1.5.3/contrib/mambo/gallery.xml
--- gallery-1.5.2-pl2/contrib/mambo/gallery.xml	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/mambo/gallery.xml	2006-03-27 17:31:28.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.5.2.2 2006/01/06 06:31:34 jenst Exp $
+ | $Id: gallery.xml,v 1.7.2.1 2006/03/27 15:31:28 jenst Exp $
 -->
 <mosinstall type="component" version="4.5">
 	<name>Gallery</name>
diff -Naur gallery-1.5.2-pl2/contrib/mambo/toolbar.gallery.php gallery-1.5.3/contrib/mambo/toolbar.gallery.php
--- gallery-1.5.2-pl2/contrib/mambo/toolbar.gallery.php	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/mambo/toolbar.gallery.php	2006-03-27 17:31:28.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.3.2.1 2006/01/06 06:31:34 jenst Exp $
+ * $Id: toolbar.gallery.php,v 1.4.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 
 require_once($mainframe->getPath('toolbar_default'));
diff -Naur gallery-1.5.2-pl2/contrib/phpBB2/modules.php gallery-1.5.3/contrib/phpBB2/modules.php
--- gallery-1.5.2-pl2/contrib/phpBB2/modules.php	2006-01-06 07:31:34.000000000 +0100
+++ gallery-1.5.3/contrib/phpBB2/modules.php	2006-03-27 17:31:28.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.9.2.1 2006/01/06 06:31:34 jenst Exp $
+ * $Id: modules.php,v 1.10.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/contrib/phpnuke/block-Random_Image.php.sample gallery-1.5.3/contrib/phpnuke/block-Random_Image.php.sample
--- gallery-1.5.2-pl2/contrib/phpnuke/block-Random_Image.php.sample	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/contrib/phpnuke/block-Random_Image.php.sample	2006-03-27 17:31:28.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.4.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: block-Random_Image.php.sample,v 1.5.2.1 2006/03/27 15:31:28 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/copy_photo.php gallery-1.5.3/copy_photo.php
--- gallery-1.5.2-pl2/copy_photo.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/copy_photo.php	2006-03-27 17:31:24.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.27.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: copy_photo.php,v 1.28.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/create_user.php gallery-1.5.3/create_user.php
--- gallery-1.5.2-pl2/create_user.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/create_user.php	2006-03-27 17:31:24.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.56.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: create_user.php,v 1.57.2.1 2006/03/27 15:31:24 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/css/base.css.default gallery-1.5.3/css/base.css.default
--- gallery-1.5.2-pl2/css/base.css.default	2006-01-18 19:06:03.000000000 +0100
+++ gallery-1.5.3/css/base.css.default	2006-04-04 23:58:24.000000000 +0200
@@ -11,7 +11,7 @@
    Some of the styles below are overridden by specific 
    album properties.
 
-   $Id: base.css.default,v 1.26.2.3 2006/01/18 18:06:03 jenst Exp $
+   $Id: base.css.default,v 1.29.2.2 2006/04/04 21:58:24 jenst Exp $
 */ 
 
 
@@ -528,4 +528,33 @@
 .shortdesc {
     text-align: left;
     font-weight: bold;
+}
+
+.g-iconmenu {
+    font-size: 7.2pt;
+}
+
+.g-iconmenu a {
+    -moz-border-radius: 3px;
+    text-decoration: none;
+    text-align: center;
+    font-weight: bold;
+    display: block;
+    padding: 2px;
+}
+
+.g-iconmenu a:hover {
+   white-space: nowrap;
+   border-bottom: 1px solid #66A;
+   border-right: 1px solid #66A;
+   border-top: 1px solid #224;
+   border-left: 1px solid #224;
+   padding: 1px;
+   text-decoration: none;
+   font-weight: bold;
+   display: block;
+}
+
+.g-iconmenu td {
+    text-align: center;
 }
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/css/config.css.default gallery-1.5.3/css/config.css.default
--- gallery-1.5.2-pl2/css/config.css.default	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/css/config.css.default	2006-03-27 17:31:28.000000000 +0200
@@ -1,5 +1,5 @@
 /*
-  $Id: config.css.default,v 1.29.2.1 2006/01/06 06:31:35 jenst Exp $
+  $Id: config.css.default,v 1.30.2.1 2006/03/27 15:31:28 jenst Exp $
  
   Gallery - a web based photo album viewer and editor
   Copyright (C) 2000-2006 Bharat Mediratta
diff -Naur gallery-1.5.2-pl2/css/screen.css.default gallery-1.5.3/css/screen.css.default
--- gallery-1.5.2-pl2/css/screen.css.default	2005-12-30 19:38:12.000000000 +0100
+++ gallery-1.5.3/css/screen.css.default	2006-03-27 17:31:28.000000000 +0200
@@ -13,7 +13,7 @@
    Some of the styles below are overriden by specific 
    album properties. These are noted 
 
-   $Id: screen.css.default,v 1.19.2.1 2005/12/30 18:38:12 jenst Exp $
+   $Id: screen.css.default,v 1.21.2.1 2006/03/27 15:31:28 jenst Exp $
 */ 
 
 
diff -Naur gallery-1.5.2-pl2/delete_album.php gallery-1.5.3/delete_album.php
--- gallery-1.5.2-pl2/delete_album.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/delete_album.php	2006-03-27 17:31: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: delete_album.php,v 1.50.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: delete_album.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/delete_photo.php gallery-1.5.3/delete_photo.php
--- gallery-1.5.2-pl2/delete_photo.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/delete_photo.php	2006-03-27 17:31: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: delete_photo.php,v 1.72.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: delete_photo.php,v 1.75.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/delete_user.php gallery-1.5.3/delete_user.php
--- gallery-1.5.2-pl2/delete_user.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/delete_user.php	2006-03-27 17:31: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: delete_user.php,v 1.46.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: delete_user.php,v 1.49.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/do_command.php gallery-1.5.3/do_command.php
--- gallery-1.5.2-pl2/do_command.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/do_command.php	2006-03-27 17:31: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: do_command.php,v 1.88.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: do_command.php,v 1.89.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/docs/g1package/gallery1-install.faq.a.html gallery-1.5.3/docs/g1package/gallery1-install.faq.a.html
--- gallery-1.5.2-pl2/docs/g1package/gallery1-install.faq.a.html	2006-02-07 03:36:21.000000000 +0100
+++ gallery-1.5.3/docs/g1package/gallery1-install.faq.a.html	2006-04-10 04:16:37.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="id2518400"></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="id2518469"></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="id2520882"></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="id2520950"></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.2-pl2/docs/g1package/gallery1-install.faq.b.html gallery-1.5.3/docs/g1package/gallery1-install.faq.b.html
--- gallery-1.5.2-pl2/docs/g1package/gallery1-install.faq.b.html	2006-02-07 03:36:21.000000000 +0100
+++ gallery-1.5.3/docs/g1package/gallery1-install.faq.b.html	2006-04-10 04:16:37.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="id2520970"></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="id2521038"></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="id2521013"></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="id2521081"></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="id2521038"></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="id2521106"></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="id2521245"></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="id2521313"></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="id2521285"></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="id2521354"></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.2-pl2/docs/g1package/gallery1-install.faq.c.html gallery-1.5.3/docs/g1package/gallery1-install.faq.c.html
--- gallery-1.5.2-pl2/docs/g1package/gallery1-install.faq.c.html	2006-02-07 03:36:22.000000000 +0100
+++ gallery-1.5.3/docs/g1package/gallery1-install.faq.c.html	2006-04-10 04:16:38.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="id2521357"></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="id2521425"></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="id2521444"></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="id2521512"></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="id2521732"></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="id2521800"></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="id2521767"></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="id2521835"></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="id2521798"></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="id2521866"></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="id2521878"></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="id2521947"></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="id2521981"></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="id2522049"></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="id2522028"></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="id2522097"></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="id2522074"></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="id2522142"></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="id2522265"></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="id2522333"></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="id2522350"></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="id2522418"></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="id2522383"></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="id2522451"></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="id2522447"></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="id2522515"></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="id2522509"></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="id2522577"></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="id2522590"></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="id2522658"></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="id2522670"></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="id2522739"></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="id2522756"></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="id2522824"></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="id2522881"></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="id2522949"></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="id2522954"></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="id2523023"></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="id2523004"></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="id2523072"></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="id2523050"></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="id2523118"></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="id2523094"></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="id2523162"></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="id2523321"></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="id2523389"></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="id2523387"></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="id2523455"></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="id2523452"></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="id2523521"></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="id2523541"></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="id2523609"></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="id2523577"></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="id2523646"></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="id2523620"></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="id2523688"></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="id2523663"></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="id2523731"></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="id2523706"></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="id2523774"></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="id2523792"></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="id2523861"></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="id2523892"></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="id2523961"></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="id2523934"></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="id2524002"></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="id2524003"></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="id2524071"></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="id2524048"></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="id2524116"></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="id2524102"></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="id2524170"></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="id2524167"></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="id2524236"></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="id2524262"></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="id2524331"></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="id2524320"></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="id2524388"></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="id2524373"></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="id2524442"></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="id2524408"></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="id2524476"></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="id2524454"></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="id2524522"></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.2-pl2/docs/g1package/gallery1-install.faq.d.html gallery-1.5.3/docs/g1package/gallery1-install.faq.d.html
--- gallery-1.5.2-pl2/docs/g1package/gallery1-install.faq.d.html	2006-02-07 03:36:22.000000000 +0100
+++ gallery-1.5.3/docs/g1package/gallery1-install.faq.d.html	2006-04-10 04:16:38.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="id2524501"></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="id2524569"></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="id2524627"></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="id2524695"></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="id2524665"></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="id2524733"></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="id2524699"></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="id2524768"></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.2-pl2/docs/g1package/index.html gallery-1.5.3/docs/g1package/index.html
--- gallery-1.5.2-pl2/docs/g1package/index.html	2006-02-07 03:36:25.000000000 +0100
+++ gallery-1.5.3/docs/g1package/index.html	2006-04-10 04:16:40.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="Chapter 1. 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="id2467353"></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="Chapter 1. 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>
     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: Mon Feb 6 21:36:14 EST 2006
+  Documentation last generated on: Sun Apr 9 22:16:32 EDT 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"> Chapter 1. Gallery 1.x Installation Guide</td></tr></table></div></body></html>
diff -Naur gallery-1.5.2-pl2/download.php gallery-1.5.3/download.php
--- gallery-1.5.2-pl2/download.php	2006-02-07 03:21:42.000000000 +0100
+++ gallery-1.5.3/download.php	2006-03-27 17:31: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: download.php,v 1.3.2.2 2006/02/07 02:21:42 jenst Exp $
+* $Id: download.php,v 1.4.2.1 2006/03/27 15:31:25 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/ecard_form.php gallery-1.5.3/ecard_form.php
--- gallery-1.5.2-pl2/ecard_form.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/ecard_form.php	2006-03-27 17:31:25.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.15.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: ecard_form.php,v 1.16.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/ecard_preview.php gallery-1.5.3/ecard_preview.php
--- gallery-1.5.2-pl2/ecard_preview.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/ecard_preview.php	2006-03-27 17:31: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: ecard_preview.php,v 1.3.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: ecard_preview.php,v 1.4.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/edit_appearance.php gallery-1.5.3/edit_appearance.php
--- gallery-1.5.2-pl2/edit_appearance.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/edit_appearance.php	2006-03-27 17:31: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_appearance.php,v 1.116.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: edit_appearance.php,v 1.117.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/edit_caption.php gallery-1.5.3/edit_caption.php
--- gallery-1.5.2-pl2/edit_caption.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/edit_caption.php	2006-03-27 17:31: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_caption.php,v 1.68.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: edit_caption.php,v 1.69.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/edit_field.php gallery-1.5.3/edit_field.php
--- gallery-1.5.2-pl2/edit_field.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/edit_field.php	2006-03-28 12:54:50.000000000 +0200
@@ -2,29 +2,29 @@
 /*
  * 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: edit_field.php,v 1.49.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: edit_field.php,v 1.50.2.2 2006/03/28 10:54:50 jenst Exp $
  */
 ?>
 <?php
 
 require_once(dirname(__FILE__) . '/init.php');
 
-list($save, $field, $data) = getRequestVar(array('save', 'field', 'data'));
+list($save, $field, $data, $set_albumName) = getRequestVar(array('save', 'field', 'data', 'set_albumName'));
 
 // Hack check
 if (!$gallery->user->canChangeTextOfAlbum($gallery->album)) {
@@ -32,17 +32,14 @@
 	exit;
 }
 
+$reloadOpener = false;
 doctype();
 echo "\n<html>";
 
 if (isset($save)) {
-    if ($field == 'title') {
-        $data = strip_tags($data);
-    }
     $gallery->album->fields[$field] = $data;
     $gallery->album->save(array(i18n("%s modified"), $field));
-    dismissAndReload();
-    return;
+    $reloadOpener = true;
 }
 ?>
 <head>
@@ -50,26 +47,28 @@
   <?php common_header(); ?>
 </head>
 <body dir="<?php echo $gallery->direction ?>" class="popupbody">
+<?php if ($reloadOpener) reload(); ?>
 <div class="popuphead"><?php echo sprintf(gTranslate('core', "Edit %s"), gTranslate('common', $field)) ?></div>
 <div class="popup" align="center">
-<?php 
-	echo sprintf(gTranslate('core', "Edit the %s and click %s when you're done"), gTranslate('common', $field), 
+<?php
+	echo sprintf(gTranslate('core', "Edit the %s and click %s when you're done"), gTranslate('common', $field),
 	  '<b>' . gTranslate('core', "Save") . '</b>');
 
-	echo makeFormIntro("edit_field.php", 
+	echo makeFormIntro("edit_field.php",
 		array("name" => "theform"),
-		array("type" => "popup")); 
+		array("type" => "popup"));
 ?>
 	<input type="hidden" name="field" value="<?php echo $field ?>">
+	<input type="hidden" name="set_albumName" value="<?php echo $gallery->session->albumName ?>">
 	<textarea name="data" rows="8" cols="50"><?php echo $gallery->album->fields[$field] ?></textarea>
 	<p>
 		<input type="submit" name="save" value="<?php echo gTranslate('core', "Save") ?>">
-		<input type="button" name="cancel" value="<?php echo gTranslate('core', "Cancel") ?>" onclick='parent.close()'>
+		<input type="button" name="cancel" value="<?php echo gTranslate('core', "Close Window") ?>" onclick='parent.close()'>
 	</p>
 	</form>
 
 	<script language="javascript1.2" type="text/JavaScript">
-	<!--   
+	<!--
 	// position cursor in top form field
 	document.theform.data.focus();
 	//-->
diff -Naur gallery-1.5.2-pl2/edit_thumb.php gallery-1.5.3/edit_thumb.php
--- gallery-1.5.2-pl2/edit_thumb.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/edit_thumb.php	2006-03-27 17:31: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_thumb.php,v 1.44.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: edit_thumb.php,v 1.45.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/edit_watermark.php gallery-1.5.3/edit_watermark.php
--- gallery-1.5.2-pl2/edit_watermark.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/edit_watermark.php	2006-04-04 23:58:23.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.20.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: edit_watermark.php,v 1.23.2.2 2006/04/04 21:58:23 jenst Exp $
  */
 ?>
 <?php
@@ -86,16 +86,8 @@
 }
 
 doctype();
-
+printPopupStart(_("Edit Watermark"));
 ?>
-<html>
-<head>
-  <title><?php echo _("Edit Watermark") ?></title>
-  <?php common_header(); ?>
-</head>
-<body dir="<?php echo $gallery->direction ?>" class="popupbody">
-<div class="popuphead"><?php echo _("Edit Watermark") ?></div>
-<div class="popup" align="center">
 <p>
 <?php
 if (isset($preview)) {
@@ -111,12 +103,11 @@
     echo '<p class="error">'. $err . '</p>';
 }
 
-
 if ($photo->image->type == 'gif') {
     echo infoLine(_("Your image is a gif. Watermarking on animated gifs is currently not supported and will 'deface & unanimate' your picture."), 'notice');
 }
 
-echo makeFormIntro('edit_watermark.php', array('name' => 'theform'));
+echo makeFormIntro('edit_watermark.php');
 global $watermarkForm;
 $watermarkForm["askRecursive"] = 0;
 $watermarkForm["askPreview"] = 1;
@@ -134,7 +125,7 @@
 <script language="javascript1.2" type="text/JavaScript">
 <!--
 // position cursor in top form field
-document.theform.cancel.focus();
+document.g1_form.cancel.focus();
 //-->
 </script>
 </div>
diff -Naur gallery-1.5.2-pl2/extra_fields.php gallery-1.5.3/extra_fields.php
--- gallery-1.5.2-pl2/extra_fields.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/extra_fields.php	2006-03-27 17:31:25.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.34.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: extra_fields.php,v 1.35.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/gallery_remote2.php gallery-1.5.3/gallery_remote2.php
--- gallery-1.5.2-pl2/gallery_remote2.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/gallery_remote2.php	2006-03-27 17:31: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: gallery_remote2.php,v 1.77.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: gallery_remote2.php,v 1.78.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/gallery_remote.php gallery-1.5.3/gallery_remote.php
--- gallery-1.5.2-pl2/gallery_remote.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/gallery_remote.php	2006-03-27 17:31: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: gallery_remote.php,v 1.27.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: gallery_remote.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/help/imagemap.php gallery-1.5.3/help/imagemap.php
--- gallery-1.5.2-pl2/help/imagemap.php	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/help/imagemap.php	2006-03-27 17:31:29.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.1.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: imagemap.php,v 1.2.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?><?php
 
diff -Naur gallery-1.5.2-pl2/help/metadataOnUpload.php gallery-1.5.3/help/metadataOnUpload.php
--- gallery-1.5.2-pl2/help/metadataOnUpload.php	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/help/metadataOnUpload.php	2006-03-27 17:31:29.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.2.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: metadataOnUpload.php,v 1.3.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?><?php
 
diff -Naur gallery-1.5.2-pl2/html_wrap/inline_imagewrap.inc gallery-1.5.3/html_wrap/inline_imagewrap.inc
--- gallery-1.5.2-pl2/html_wrap/inline_imagewrap.inc	2006-02-06 22:26:55.000000000 +0100
+++ gallery-1.5.3/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.2.1 2006/02/06 21:26:55 jenst Exp $
+// $Id: inline_imagewrap.inc,v 1.36.4.2 2006/03/27 16:07:16 jenst Exp $
 
 
 //-- shorten the variables for convinience ---
@@ -32,33 +32,29 @@
 }
 
 switch ($frame) {
-// special cases
-case "none":
-  echo $href_tag;
-  break;
-case "dots":
+    // special cases
+    case "none":
+	echo $href_tag;
+    break;
+    case "dots":
 ?>
-  <div style="width: <?php echo $imageWidth; ?>; border:<?php echo "${borderWidth}px dashed $borderColor"; ?>">
-        <?php echo $href_tag ?>
-  </div>
+   <div style="<?php echo "width:${imageWidth}px; border:${borderWidth}px dashed $borderColor;" ?>"><?php echo $href_tag ?></div>
 <?php
-  break;
-case "solid":
+    break;
+    case "solid":
 ?>
-  <div style="width: <?php echo $imageWidth; ?>; border:<?php echo "${borderWidth}px solid $borderColor"; ?>">
-        <?php echo $href_tag ?>
-  </div>
-  <?php
-  break;
+  <div style="<?php echo "width:${imageWidth}px; border: ${borderWidth}px solid $borderColor;" ?>"><?php echo $href_tag ?></div>
+<?php
+    break;
     default: // use frames directory or fallback to none
 	if(array_key_exists($frame, available_frames())) {
 	    $base .= "/html_wrap/frames/$frame";
 	    require(dirname(__FILE__) . "/frames/$frame/frame.def");
-  // Safari/Opera ignore height="100%" for table, but this ensures HTML
-  // standards, so do it for all browsers
-  $hLL = $imageHeight - $heightLLT - $heightLLB;
-  $hRR = $imageHeight - $heightRRT - $heightRRB;
-  ?>
+	    // Safari/Opera ignore height="100%" for table, but this ensures HTML
+	    // standards, so do it for all browsers
+	    $hLL = $imageHeight - $heightLLT - $heightLLB;
+	    $hRR = $imageHeight - $heightRRT - $heightRRB;
+?>
 
   <table width="1" border="0" cellspacing="0" cellpadding="0" dir="ltr">
   <tr>
diff -Naur gallery-1.5.2-pl2/html_wrap/photo.footer.default gallery-1.5.3/html_wrap/photo.footer.default
--- gallery-1.5.2-pl2/html_wrap/photo.footer.default	2006-01-18 19:06:05.000000000 +0100
+++ gallery-1.5.3/html_wrap/photo.footer.default	2006-03-27 17:31:29.000000000 +0200
@@ -1,5 +1,5 @@
 <?php
-// $Id: photo.footer.default,v 1.29.2.1 2006/01/18 18:06:05 jenst Exp $
+// $Id: photo.footer.default,v 1.30.2.1 2006/03/27 15:31:29 jenst Exp $
 // 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.2-pl2/imagemap.php gallery-1.5.3/imagemap.php
--- gallery-1.5.2-pl2/imagemap.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/imagemap.php	2006-03-27 17:31: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: imagemap.php,v 1.5.2.1 2006/01/06 06:31:30 jenst Exp $
+* $Id: imagemap.php,v 1.6.2.1 2006/03/27 15:31:25 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/images/icons/imageedit/flip.gif gallery-1.5.3/images/icons/imageedit/flip.gif
--- gallery-1.5.2-pl2/images/icons/imageedit/flip.gif	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/images/icons/imageedit/flip.gif	2006-04-06 13:26:21.000000000 +0200
@@ -0,0 +1 @@
+GIF89a  Ä    ¸Ò¨¿ÇÖåž¸ÒŽ£·***‡ŸµÄÔäÃÓãÉ×åˆ ¶ÔàëÀÒáÂÓãÒÞê–°È’©¿ÉØå£¼Ôÿÿÿ                                 !ù   ,       F %ŽdiŠÀyCªŽl ¸jÈti(Ät‘ @D!	”%¦Š"‘Ä“áÁpÈ* rÃ½( ùŒ^PMo6) ;
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/images/icons/imageedit/mirror.gif gallery-1.5.3/images/icons/imageedit/mirror.gif
--- gallery-1.5.2-pl2/images/icons/imageedit/mirror.gif	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/images/icons/imageedit/mirror.gif	2006-04-06 13:26:21.000000000 +0200
@@ -0,0 +1 @@
+GIF89a  Ä    ¸Ò¨¿ˆ ¶ÊÙå‘¨¾ÁÒâ***ÂÒã	uŠºÆÓÄÔäv‹Ÿz¦zŒš|’¦ÿÿÿ                                          !ù   ,       D`$ŽdižhŠ€)À´Ð%€Ü@Ü¹]À@ ~@×ÉD>p€ÁOP(~œk èù‰ B8´¹2ZÅn»ß¤ ;
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/images/icons/imageedit/rotate-180.gif gallery-1.5.3/images/icons/imageedit/rotate-180.gif
--- gallery-1.5.2-pl2/images/icons/imageedit/rotate-180.gif	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/images/icons/imageedit/rotate-180.gif	2006-04-06 13:26:21.000000000 +0200
@@ -0,0 +1,3 @@
+GIF89a  Õ)    ¸ÒÄÔä000Ÿ¹Ò£¼ÕÂÒã¢»ÓÈ×å—®ÆÌÚç¤½Õ±ÇÛÁÒâ¤¶Ÿ¹ÓÊÙå<AFÇÖåz‡”ªÁØ¨­²ÌÙçÌÙæ«µ¿ˆ‘›š²È•­Å »Óƒ‘ŸŸ¹Ñ¢¼Ô'''ÅÔä¡»Ò ºÓÀÎÚ–£°ÃÓãŽ¢´***ÿÿÿ                                                                  !ù  ) ,       cÀ”0(‡È! !A* $ 
+Ç@*¤ZQÀ5JŒO‚ÌE‘¦€ˆ¤¾C]i1
+{D}{ V‘X'[u‘„]Vf\J~¡RE¤§¨¨A ;
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/images/icons/imageedit/rotate-270.gif gallery-1.5.3/images/icons/imageedit/rotate-270.gif
--- gallery-1.5.2-pl2/images/icons/imageedit/rotate-270.gif	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/images/icons/imageedit/rotate-270.gif	2006-04-06 13:26:21.000000000 +0200
@@ -0,0 +1,2 @@
+GIF89a  Ä    ¸Ò¤¼ÔÕáì×àé¶ÊÜºÍßBBB´ÈÜÍÚä³ÈÚÙãíÈÌÒ·ÊÞ¯ÅÚMMMˆ–£ÁÃÈÇÖå¥½Õ©Á×È×äÿÿÿ                        !ù   ,       Aà%Ždiž(	 Ö
+¤G” Aðž¡µ2…‰£w+*” ÄUTjMãJ] Á¢ç»r»( 15GSg²z}	 ;
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/images/icons/imageedit/rotate-90.gif gallery-1.5.3/images/icons/imageedit/rotate-90.gif
--- gallery-1.5.2-pl2/images/icons/imageedit/rotate-90.gif	1970-01-01 01:00:00.000000000 +0100
+++ gallery-1.5.3/images/icons/imageedit/rotate-90.gif	2006-04-06 13:26:21.000000000 +0200
@@ -0,0 +1 @@
+GIF89a  Ä    ¸ÒÄÔä±ÇÛÈ×å‘¥¸§¾Ô¢¼ÔÁÒâ£¼Õ111”¡­Ÿ·Î¢»Ó(((ÊØå***Ÿ¹ÓÔàëÇÖåŸ¹ÒÃÓã½ÃÈœ·ÑœªÂÓãÉ×å¤½Õÿÿÿ         !ù   ,       F 'Ždiž& ®¨“öXNA4…‚Þ¹M„‚œV€ÅàÀ0¶8€JÀà<ªp–	"drDµÈ™Ç©3:­zŽÖîø3 ;
\ Pas de fin de ligne à la fin du fichier.
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_applet.cfg gallery-1.5.3/includes/add_photos/add_applet.cfg
--- gallery-1.5.2-pl2/includes/add_photos/add_applet.cfg	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_applet.cfg	2006-03-27 17:31:29.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.3.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_applet.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_applet.inc gallery-1.5.3/includes/add_photos/add_applet.inc
--- gallery-1.5.2-pl2/includes/add_photos/add_applet.inc	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_applet.inc	2006-03-27 17:31:29.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.9.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_applet.inc,v 1.10.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_applet_mini.cfg gallery-1.5.3/includes/add_photos/add_applet_mini.cfg
--- gallery-1.5.2-pl2/includes/add_photos/add_applet_mini.cfg	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_applet_mini.cfg	2006-03-27 17:31:29.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.3.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_applet_mini.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_applet_mini.inc gallery-1.5.3/includes/add_photos/add_applet_mini.inc
--- gallery-1.5.2-pl2/includes/add_photos/add_applet_mini.inc	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_applet_mini.inc	2006-03-27 17:31:29.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.8.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_applet_mini.inc,v 1.9.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_form.inc gallery-1.5.3/includes/add_photos/add_form.inc
--- gallery-1.5.2-pl2/includes/add_photos/add_form.inc	2006-01-08 21:07:17.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_form.inc	2006-03-27 17:31:29.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.28.2.3 2006/01/08 20:07:17 jenst Exp $
+ * $Id: add_form.inc,v 1.32.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_other.inc gallery-1.5.3/includes/add_photos/add_other.inc
--- gallery-1.5.2-pl2/includes/add_photos/add_other.inc	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_other.inc	2006-03-27 17:31:29.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.12.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_other.inc,v 1.13.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <p>
diff -Naur gallery-1.5.2-pl2/includes/add_photos/add_url.inc gallery-1.5.3/includes/add_photos/add_url.inc
--- gallery-1.5.2-pl2/includes/add_photos/add_url.inc	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/add_url.inc	2006-03-27 17:31:29.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.17.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: add_url.inc,v 1.18.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/add_photos/captionOptions.inc.php gallery-1.5.3/includes/add_photos/captionOptions.inc.php
--- gallery-1.5.2-pl2/includes/add_photos/captionOptions.inc.php	2006-01-06 07:31:35.000000000 +0100
+++ gallery-1.5.3/includes/add_photos/captionOptions.inc.php	2006-03-27 17:31:29.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.5.2.1 2006/01/06 06:31:35 jenst Exp $
+ * $Id: captionOptions.inc.php,v 1.6.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <input type="radio" name="setCaption" value="0" id="setCaption0"><label for="setCaption0"><?php echo gTranslate('core', "Leave blank.") ?></label>
diff -Naur gallery-1.5.2-pl2/includes/definitions/albumProperties.php gallery-1.5.3/includes/definitions/albumProperties.php
--- gallery-1.5.2-pl2/includes/definitions/albumProperties.php	2006-02-06 22:26:55.000000000 +0100
+++ gallery-1.5.3/includes/definitions/albumProperties.php	2006-03-27 17:31:29.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.10.2.2 2006/02/06 21:26:55 jenst Exp $
+ * $Id: albumProperties.php,v 1.11.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/definitions/services.php gallery-1.5.3/includes/definitions/services.php
--- gallery-1.5.2-pl2/includes/definitions/services.php	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/definitions/services.php	2006-03-27 17:31:29.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.3.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: services.php,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/slideshow/applet.cfg gallery-1.5.3/includes/slideshow/applet.cfg
--- gallery-1.5.2-pl2/includes/slideshow/applet.cfg	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/slideshow/applet.cfg	2006-03-27 17:31:29.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.3.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: applet.cfg,v 1.4.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/includes/slideshow/applet.inc gallery-1.5.3/includes/slideshow/applet.inc
--- gallery-1.5.2-pl2/includes/slideshow/applet.inc	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/slideshow/applet.inc	2006-03-27 17:31:29.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.10.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: applet.inc,v 1.11.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/slideshow/high.inc gallery-1.5.3/includes/slideshow/high.inc
--- gallery-1.5.2-pl2/includes/slideshow/high.inc	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/slideshow/high.inc	2006-03-27 17:31:29.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.18.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: high.inc,v 1.19.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/includes/slideshow/low.inc gallery-1.5.3/includes/slideshow/low.inc
--- gallery-1.5.2-pl2/includes/slideshow/low.inc	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/slideshow/low.inc	2006-03-27 17:31:29.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.16.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: low.inc,v 1.17.2.1 2006/03/27 15:31:29 jenst Exp $
  */
 
 /*
diff -Naur gallery-1.5.2-pl2/includes/stats/stats.inc.php gallery-1.5.3/includes/stats/stats.inc.php
--- gallery-1.5.2-pl2/includes/stats/stats.inc.php	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/includes/stats/stats.inc.php	2006-03-27 17:31: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: stats.inc.php,v 1.12.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: stats.inc.php,v 1.13.2.1 2006/03/27 15:31:30 jenst Exp $
  *
  */
 ?>
diff -Naur gallery-1.5.2-pl2/index.php gallery-1.5.3/index.php
--- gallery-1.5.2-pl2/index.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/index.php	2006-03-27 17:31: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: index.php,v 1.78.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: index.php,v 1.81.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/init.php gallery-1.5.3/init.php
--- gallery-1.5.2-pl2/init.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/init.php	2006-03-27 17:31: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: init.php,v 1.135.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: init.php,v 1.137.2.1 2006/03/27 15:31:25 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/layout/commentboxbottom.inc gallery-1.5.3/layout/commentboxbottom.inc
--- gallery-1.5.2-pl2/layout/commentboxbottom.inc	2004-10-02 22:58:39.000000000 +0200
+++ gallery-1.5.3/layout/commentboxbottom.inc	2006-03-27 18:04:33.000000000 +0200
@@ -1,17 +1,19 @@
-<?php /* $Id: commentboxbottom.inc,v 1.15 2004/10/02 20:58:39 jenst Exp $ */ ?>
+<?php /* $Id: commentboxbottom.inc,v 1.15.8.1 2006/03/27 16:04:33 jenst Exp $ */ ?>
 <?php global $embeddedAlbum, $id, $index ;
-if(!$embeddedAlbum == 1)
-{
+if(!$embeddedAlbum == 1) {
         $url = "add_comment.php?set_albumName={$gallery->album->fields['name']}&id=$id";
 ?>
                 </td>
         </tr>
         </table>
 
-	<input type="button" onClick="javascript:<?php echo popup($url) ?>" value="<?php echo _("add comment") ?>">
-	<?php
+<?php
+	if ($gallery->user->canAddComments($gallery->album)) {
+	    echo "\n". '<input type="button" onClick="javascript:'. popup($url) .'" value="'. _("add comment") .'">';
+	}
+
 	if ($gallery->user->canWriteToAlbum($gallery->album)) {
-	echo '<input type="submit" value="'. _("Delete marked comments") .'">';
+		echo "\n". '<input type="submit" value="'. _("Delete marked comments") .'">';
 	}
 	?>
 	</form>
diff -Naur gallery-1.5.2-pl2/layout/navmicro.inc gallery-1.5.3/layout/navmicro.inc
--- gallery-1.5.2-pl2/layout/navmicro.inc	2005-12-29 15:37:10.000000000 +0100
+++ gallery-1.5.3/layout/navmicro.inc	2006-03-27 17:31:30.000000000 +0200
@@ -1,4 +1,4 @@
-<?php /* $Id: navmicro.inc,v 1.4.2.1 2005/12/29 14:37:10 jenst Exp $ */ ?>
+<?php /* $Id: navmicro.inc,v 1.6.2.1 2006/03/27 15:31:30 jenst Exp $ */ ?>
 <?php
 global $navigator;
 global $full;
diff -Naur gallery-1.5.2-pl2/layout/watermarkform.inc gallery-1.5.3/layout/watermarkform.inc
--- gallery-1.5.2-pl2/layout/watermarkform.inc	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/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.22.2.3 2006/01/06 06:31:36 jenst Exp $
+ * $Id: watermarkform.inc,v 1.26.2.2 2006/04/04 21:58:25 jenst Exp $
  */
 
 /**
@@ -30,6 +30,7 @@
 global $wmAlignY;
 global $previewFull;
 global $wmName;
+global $wmSelect;
 
 $err = "";
 if (!isset($wmAlignX) || ($wmAlignX <= 0)) {
@@ -75,7 +76,12 @@
             }
         }
         if ($matches_ext) {
-             $options[] = array('value' => $wmFile, 'text' => $wmFile);
+        	if(!empty($wmName) && $wmName == $wmFile) {
+        		$options[] = array('value' => $wmFile, 'text' => $wmFile, 'selected' => true);
+        	}
+        	else {
+        		$options[] = array('value' => $wmFile, 'text' => $wmFile);
+        	}
         }
     }
     closedir($wmDir);
diff -Naur gallery-1.5.2-pl2/lib/albumItem.php gallery-1.5.3/lib/albumItem.php
--- gallery-1.5.2-pl2/lib/albumItem.php	2006-02-02 01:29:09.000000000 +0100
+++ gallery-1.5.3/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.14.2.4 2006/02/02 00:29:09 jenst Exp $
+ * $Id: albumItem.php,v 1.18.2.3 2006/04/06 11:21:49 jenst Exp $
  */
 
 /**
@@ -27,10 +27,11 @@
 
 /**
  * This function shows all possible actions for an album item.
- * @param	integer $i	index number of the item
- * @return 	array		Array of all possible album item for the current user.
+ * @param	integer $i		index number of the item
+ * @param	boolean	$withIcons	Wether icons should be used, or not.
+ * @return 	array			Array of all possible album item for the current user.
  */
-function getItemActions($i, $withIcons = false, $popupsOnly = false) {
+function getItemActions($i, $withIcons = false) {
 	global $gallery;
 	global $nextId;
 
@@ -127,13 +128,13 @@
 	    			'value' =>  showChoice2('edit_watermark.php', array('index' => $i))
     			);
     		}
-    		if(!$popupsOnly) {
-    			$options[] = array(
+    		$options[] = array(
 	    			'pure_text' => _("ImageMap"),
 	    			'text' => getIconText('behavior-capplet.gif', _("ImageMap"), $override, $withIcons),
-	    			'value' => showChoice2('imagemap.php', array('index' => $i), false)
+	    			'value' => showChoice2('imagemap.php', array('index' => $i), false),
+				'attrs' => array('class' => 'url')
+				
     			);
-    		}
     	}
 
     	$options[] = array(
@@ -202,6 +203,20 @@
 	    		'value' => showChoice2("copy_photo.php", array("index" => $i))
     	    );
     	}
+
+    	if ($gallery->album->isHidden($i)) {
+    		$options[] = array(
+	    		'pure_text' => _("Show"),
+	    		'text' => getIconText('idea.gif', _("Show"), $override, $withIcons),
+	    		'value' => showChoice2("do_command.php", array("cmd" => "show", "index" => $i))
+    		);
+    	} else {
+    		$options[] = array(
+	    		'pure_text' => _("Hide"),
+	    		'text' => getIconText('no_idea.gif', _("Hide"), $override, $withIcons),
+	    		'value' => showChoice2("do_command.php", array("cmd" => "hide", "index" => $i))
+    		);
+    	}
     }
 
     if ($gallery->user->canWriteToAlbum($gallery->album)) {
@@ -229,22 +244,6 @@
     		);
     	}
 
-    if (isset($isOwner)) {
-    	if ($gallery->album->isHidden($i)) {
-    		$options[] = array(
-	    		'pure_text' => _("Show"),
-	    		'text' => getIconText('idea.gif', _("Show"), $override, $withIcons),
-	    		'value' => showChoice2("do_command.php", array("cmd" => "show", "index" => $i))
-    		);
-    	} else {
-    		$options[] = array(
-	    		'pure_text' => _("Hide"),
-	    		'text' => getIconText('no_idea.gif', _("Hide"), $override, $withIcons),
-	    		'value' => showChoice2("do_command.php", array("cmd" => "hide", "index" => $i))
-    		);
-    	}
-    }
-
     if ($gallery->user->canDeleteFromAlbum($gallery->album) ||
       ($gallery->album->getItemOwnerDelete() && isset($isOwner))) {
     	if($isAlbum) {
diff -Naur gallery-1.5.2-pl2/lib/album.php gallery-1.5.3/lib/album.php
--- gallery-1.5.2-pl2/lib/album.php	2006-01-08 21:07:18.000000000 +0100
+++ gallery-1.5.3/lib/album.php	2006-03-27 17:31: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.php,v 1.4.2.2 2006/01/08 20:07:18 jenst Exp $
+ * $Id: album.php,v 1.6.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 
 /**
diff -Naur gallery-1.5.2-pl2/lib/content.php gallery-1.5.3/lib/content.php
--- gallery-1.5.2-pl2/lib/content.php	2006-02-02 01:27:39.000000000 +0100
+++ gallery-1.5.3/lib/content.php	2006-03-27 17:31: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: content.php,v 1.14.2.4 2006/02/02 00:27:39 jenst Exp $
+* $Id: content.php,v 1.18.2.1 2006/03/27 15:31:30 jenst Exp $
 */
 
 /**
diff -Naur gallery-1.5.2-pl2/lib/Form.php gallery-1.5.3/lib/Form.php
--- gallery-1.5.2-pl2/lib/Form.php	2006-01-06 07:31:36.000000000 +0100
+++ gallery-1.5.3/lib/Form.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: Form.php,v 1.31.2.1 2006/01/06 06:31:36 jenst Exp $
+ * $Id: Form.php,v 1.32.2.3 2006/04/06 11:21:49 jenst Exp $
  */
 ?>
 <?php 
@@ -120,7 +120,7 @@
                     $sel = ' selected';
                 }
             }
-            else if (!strcmp($value, $selected) || !strcmp($text, $selected) || $selected == '__ALL__') {
+            else if ($value == $selected || $text == $selected || $selected === '__ALL__') {
                 $sel = ' selected';
             }
             $buf .= "<option value=\"$value\"$sel>". $text ."</option>" . $crlf;
@@ -145,7 +145,8 @@
     if(!empty($options)) {
         foreach ($options as $nr => $option) {
             $sel = isset($option['selected']) ? ' selected' : '';
-            $buf .= "\n\t". '<option value="'. $option['value'] .'"'. $sel.'>'. $option['text'] .'</option>' . $crlf;
+            $optAttrs = isset($option['attrs']) ? generateAttrs($option['attrs']) : '';
+            $buf .= "\n\t". "<option $optAttrs value=\"". $option['value'] ."\" $sel>". $option['text'] ."</option>$crlf";
         }
     }
 
@@ -241,16 +242,6 @@
     return $html;
 }
 
-function showChoice($label, $target, $args, $class="") {
-    global $gallery;
-
-    if (empty($args['set_albumName'])) {
-        $args['set_albumName'] = $gallery->session->albumName;
-    }
-    $args['type'] = 'popup';
-    echo "\t<option class=\"$class\" value='" . makeGalleryUrl($target, $args) . "'>$label</option>\n";
-}
-
 function showChoice2($target, $args, $popup = true) {
     global $gallery;
 
diff -Naur gallery-1.5.2-pl2/lib/imageManipulation.php gallery-1.5.3/lib/imageManipulation.php
--- gallery-1.5.2-pl2/lib/imageManipulation.php	2006-02-02 01:39:04.000000000 +0100
+++ gallery-1.5.3/lib/imageManipulation.php	2006-03-27 17:31: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: imageManipulation.php,v 1.7.2.5 2006/02/02 00:39:04 jenst Exp $
+ * $Id: imageManipulation.php,v 1.12.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 
 /**
diff -Naur gallery-1.5.2-pl2/lib/lang.php gallery-1.5.3/lib/lang.php
--- gallery-1.5.2-pl2/lib/lang.php	2006-01-06 18:42:26.000000000 +0100
+++ gallery-1.5.3/lib/lang.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: lang.php,v 1.66.2.3 2006/01/06 17:42:26 jenst Exp $
+ * $Id: lang.php,v 1.70.2.2 2006/04/04 21:58:25 jenst Exp $
  */
 
 /**
@@ -319,7 +319,7 @@
         switch ($ML_mode) {
             case 1:
             /* Static Language */
-            $gallery->language = getDefaultLanguage();
+                $gallery->language = getDefaultLanguage();
             break;
             
             case 3:
@@ -334,9 +334,11 @@
                 $gallery->language = getDefaultLanguage();
             }
             break;
+            
             default:
             /* Use Browser Language or Userlanguage when mode 2 or any other (wrong) mode*/
             $gallery->browser_language = getBrowserLanguage();
+            $gallery->language = $gallery->browser_language;
 
             if (!empty($gallery->user) && $gallery->user->getDefaultLanguage() != '') {
                 $gallery->language = $gallery->user->getDefaultLanguage();
diff -Naur gallery-1.5.2-pl2/lib/mail.php gallery-1.5.3/lib/mail.php
--- gallery-1.5.2-pl2/lib/mail.php	2006-01-06 07:31:37.000000000 +0100
+++ gallery-1.5.3/lib/mail.php	2006-03-27 17:31: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: mail.php,v 1.8.2.1 2006/01/06 06:31:37 jenst Exp $
+ * $Id: mail.php,v 1.9.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 
 /**
diff -Naur gallery-1.5.2-pl2/lib/messages.php gallery-1.5.3/lib/messages.php
--- gallery-1.5.2-pl2/lib/messages.php	2006-01-19 11:31:54.000000000 +0100
+++ gallery-1.5.3/lib/messages.php	2006-03-27 17:31: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: messages.php,v 1.4.2.2 2006/01/19 10:31:54 jenst Exp $
+ * $Id: messages.php,v 1.7.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/lib/popup.php gallery-1.5.3/lib/popup.php
--- gallery-1.5.2-pl2/lib/popup.php	2005-12-15 21:00:30.000000000 +0100
+++ gallery-1.5.3/lib/popup.php	2006-03-27 18:11:15.000000000 +0200
@@ -45,7 +45,7 @@
 	$width = (int)$width;
 
 	$attrs = "height=$height,width=$width,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes";
-	return "open('" . unhtmlentities(makeGalleryUrl($url)) . "','Status','$attrs');";
+	return "open('" . unhtmlentities(build_popup_url($url)) . "','Status','$attrs');";
 }
 
 function popup_link($title, $url, $url_is_complete=0, $online_only=true, $height=500,$width=500, $cssclass='', $extraJS='') {
diff -Naur gallery-1.5.2-pl2/lib/setup.php gallery-1.5.3/lib/setup.php
--- gallery-1.5.2-pl2/lib/setup.php	2006-01-10 06:30:53.000000000 +0100
+++ gallery-1.5.3/lib/setup.php	2006-03-27 17:31: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: setup.php,v 1.11.2.3 2006/01/10 05:30:53 jenst Exp $
+ * $Id: setup.php,v 1.14.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/lib/valchecks.php gallery-1.5.3/lib/valchecks.php
--- gallery-1.5.2-pl2/lib/valchecks.php	2006-02-06 22:26:55.000000000 +0100
+++ gallery-1.5.3/lib/valchecks.php	2006-03-28 12:54:53.000000000 +0200
@@ -17,52 +17,64 @@
  * 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.3.2.2 2006/02/06 21:26:55 jenst Exp $
+ * $Id: valchecks.php,v 1.4.2.2 2006/03/28 10:54:53 jenst Exp $
  */
 ?>
 <?php
 
-/*
-** This is a wrapper around different valchecks
-** The input is the value, the type its tested against and optional a default
-** The return is given by the valcheck function
+/**
+ * This is a wrapper around different valchecks
+ * The input is the value, the type its tested against and optional a default
+ * The return is given by the valcheck function
 */
-function sanityCheck($var, $type, $default = NULL) {
-    switch ($type) {
-	case 'int':
-	    return isValidInteger($var, true, NULL, true);
-	    break;
-	case 'int_notnull':
-	    return isValidInteger($var, true, $default, false);
-	    break;
-	case 'int_empty':
-	    return isValidInteger($var, true, $default, true);
-	    break;
-	case 'pictureFrame':
-	    if(array_key_exists($var, available_frames())) {
-		return array(0, $var, '');
-	    }
-	    else {
-	        return array(2, $var, _("The given frame is not valid."));
-	    }
-	    break;
-	default:
-	    return array(0, $var, '');
-	    break;
-    }
+function sanityCheck($var, $type, $default = NULL, $choices = array()) {
+      switch ($type) {
+        case 'int':
+            return isValidInteger($var, true, NULL, true);
+            break;
+        case 'int_notnull':
+            return isValidInteger($var, true, $default, false);
+            break;
+        case 'int_empty':
+            return isValidInteger($var, true, $default, true);
+            break;
+        case 'pictureFrame':
+            if(array_key_exists($var, available_frames())) {
+                return array(0, $var, '');
+            }
+            else {
+                return array(2, $var, _("The given frame is not valid."));
+            }
+            break;
+        case 'inChoice':
+            if(in_array($var, $choices)) {
+                return array(0, $var, '');
+            }
+            elseif (isset($default)) {
+                return array(1, $default, _("Value was set to given default. Because the original value is not a in the allowed amount of choices."));
+            }
+            else {
+                return array(2, $var, _("The given value is not in the allowed amount of choices."));
+            }
+            break;
+        default:
+        case 'text':
+            return isValidText($var, $default);
+            break;
+	}
 }
 
-/*
-** This function checks if a given value is a valid integer.
-** Valid means:
-** --- its a numeric value
-** --- is not lower a given minum (can be 1 or 0)
-** You can give a default to correct an invalid input
-**
-** Return is an array that contains:
-** --- Status, can be 0 for OK, 1 for set to default, 2 failure and no default
-** --- Original or default value
-** --- Debug message
+/**
+ * This function checks if a given value is a valid integer.
+ * Valid means:
+ * --- its a numeric value
+ * --- is not lower a given minum (can be 1 or 0)
+ * You can give a default to correct an invalid input
+ *
+ * Return is an array that contains:
+ * --- Status, can be 0 for OK, 1 for set to default, 2 failure and no default
+ * --- Original or default value
+ * --- Debug message
 */
 function isValidInteger($mixed, $includingZero = false, $default = NULL, $emptyAllowed = false) {
     $minimum = ($includingZero == true) ? 0 : 1;
@@ -89,4 +101,45 @@
 
     return array(0, $mixed, '');
 }
+
+function isValidText($text, $default = NULL) {
+    $sanitized = sanitizeInput($text);
+    if($sanitized != $text) {
+        if(isset($default)) {
+            return array(1, $default, _("Value was set to given default. Because the original value is not a valid text"));
+        }
+        else {
+            return array(1, $sanitized, _("Value was corrected, because the original value is not a valid text"));
+        }
+    }
+    else {
+        return array(0, $text, '');
+    }
+}
+
+function sanitizeInput($value) {
+    require_once(dirname(dirname(__FILE__)) .'/classes/HTML_Safe/Safe.php');
+    static $safehtml;
+    if (empty($safehtml)) {
+        $safehtml =& new HTML_Safe();
+    }
+
+    if(is_array($value)) {
+        //echo "\n -> Array";
+        //echo "\n<ul>";
+        foreach($value as $subkey => $subvalue) {
+            //printf("\n<li>Checking SubValue: %s", htmlspecialchars($subkey));
+            $sanitized[$subkey] = sanitizeInput($subvalue);
+        }
+        //echo "\n</ul>";
+    }
+    else {
+        //echo " === ". htmlspecialchars($value);
+        $sanitized = $safehtml->parse($value);
+        if($sanitized != $value) {
+            //echo "--->". $sanitized;
+        }
+    }
+    return $sanitized;
+}
 ?>
diff -Naur gallery-1.5.2-pl2/lib/voting.php gallery-1.5.3/lib/voting.php
--- gallery-1.5.2-pl2/lib/voting.php	2006-01-06 07:31:37.000000000 +0100
+++ gallery-1.5.3/lib/voting.php	2006-03-27 17:31: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: voting.php,v 1.10.2.1 2006/01/06 06:31:37 jenst Exp $
+ * $Id: voting.php,v 1.11.2.1 2006/03/27 15:31:30 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/login.php gallery-1.5.3/login.php
--- gallery-1.5.2-pl2/login.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/login.php	2006-03-27 17:31: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: login.php,v 1.70.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: login.php,v 1.71.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/manage_users.php gallery-1.5.3/manage_users.php
--- gallery-1.5.2-pl2/manage_users.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/manage_users.php	2006-03-27 17:31: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: manage_users.php,v 1.49.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: manage_users.php,v 1.50.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/manifest.inc gallery-1.5.3/manifest.inc
--- gallery-1.5.2-pl2/manifest.inc	2006-02-07 03:36:26.000000000 +0100
+++ gallery-1.5.3/manifest.inc	2006-04-10 04:16:41.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.8.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: gpl.txt,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/modify_user.php gallery-1.5.3/modify_user.php
--- gallery-1.5.2-pl2/modify_user.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/modify_user.php	2006-03-27 17:31: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: modify_user.php,v 1.47.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: modify_user.php,v 1.48.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/move_album.php gallery-1.5.3/move_album.php
--- gallery-1.5.2-pl2/move_album.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/move_album.php	2006-03-27 17:31: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: move_album.php,v 1.61.2.1 2006/01/06 06:31:30 jenst Exp $
+* $Id: move_album.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
 */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/move_photo.php gallery-1.5.3/move_photo.php
--- gallery-1.5.2-pl2/move_photo.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/move_photo.php	2006-03-27 17:31: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: move_photo.php,v 1.98.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: move_photo.php,v 1.99.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/multi_create_user.php gallery-1.5.3/multi_create_user.php
--- gallery-1.5.2-pl2/multi_create_user.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/multi_create_user.php	2006-03-27 17:31:25.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.27.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: multi_create_user.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/new_password.php gallery-1.5.3/new_password.php
--- gallery-1.5.2-pl2/new_password.php	2006-01-19 11:31:53.000000000 +0100
+++ gallery-1.5.3/new_password.php	2006-03-27 17:31: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: new_password.php,v 1.18.2.2 2006/01/19 10:31:53 jenst Exp $
+ * $Id: new_password.php,v 1.20.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/nls.php gallery-1.5.3/nls.php
--- gallery-1.5.2-pl2/nls.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/nls.php	2006-03-27 17:31: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: nls.php,v 1.42.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: nls.php,v 1.43.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 
 /**
diff -Naur gallery-1.5.2-pl2/photo_owner.php gallery-1.5.3/photo_owner.php
--- gallery-1.5.2-pl2/photo_owner.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/photo_owner.php	2006-03-27 17:31:25.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.26.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: photo_owner.php,v 1.27.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/platform/fs_unix.php gallery-1.5.3/platform/fs_unix.php
--- gallery-1.5.2-pl2/platform/fs_unix.php	2006-01-11 11:29:42.000000000 +0100
+++ gallery-1.5.3/platform/fs_unix.php	2006-03-27 17:32: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: fs_unix.php,v 1.33.2.3 2006/01/11 10:29:42 jenst Exp $
+ * $Id: fs_unix.php,v 1.36.2.1 2006/03/27 15:32:09 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/platform/fs_win32.php gallery-1.5.3/platform/fs_win32.php
--- gallery-1.5.2-pl2/platform/fs_win32.php	2006-01-06 07:32:45.000000000 +0100
+++ gallery-1.5.3/platform/fs_win32.php	2006-03-27 17:32: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: fs_win32.php,v 1.37.2.1 2006/01/06 06:32:45 jenst Exp $
+ * $Id: fs_win32.php,v 1.38.2.1 2006/03/27 15:32:09 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/po/change_version.sh gallery-1.5.3/po/change_version.sh
--- gallery-1.5.2-pl2/po/change_version.sh	2006-01-19 18:43:19.000000000 +0100
+++ gallery-1.5.3/po/change_version.sh	2006-03-27 17:32:10.000000000 +0200
@@ -1,5 +1,5 @@
 #!/bin/bash
-# $Id: change_version.sh,v 1.10.2.1 2006/01/19 17:43:19 jenst Exp $
+# $Id: change_version.sh,v 1.11.2.1 2006/03/27 15:32:10 jenst Exp $
 
 NEW_VERSION="1.5.2"
 
diff -Naur gallery-1.5.2-pl2/po/copyright-header.txt gallery-1.5.3/po/copyright-header.txt
--- gallery-1.5.2-pl2/po/copyright-header.txt	2006-01-06 07:32:45.000000000 +0100
+++ gallery-1.5.3/po/copyright-header.txt	2006-03-27 17:32:10.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.2.2.1 2006/01/06 06:32:45 jenst Exp $
+# $Id: copyright-header.txt,v 1.3.2.1 2006/03/27 15:32:10 jenst Exp $
 #
 # @version	<Version>
 # @package      Languagepack
diff -Naur gallery-1.5.2-pl2/po/gallery-common.pot gallery-1.5.3/po/gallery-common.pot
--- gallery-1.5.2-pl2/po/gallery-common.pot	2006-01-22 00:45:16.000000000 +0100
+++ gallery-1.5.3/po/gallery-common.pot	2006-04-05 00:32:03.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.7.2.11 2006/01/21 23:45:16 jenst Exp $
+# $Id: gallery-common.pot,v 1.13.2.3 2006/04/04 22:32:03 jenst Exp $
 #
 # @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-01-22 00:37+0100\n"
+"POT-Creation-Date: 2006-04-05 00:31+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"
@@ -100,332 +100,332 @@
 msgid "Album Frame"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:126
+#: ../includes/definitions/albumProperties.php:127
 msgid "Thumb Frame"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:132
+#: ../includes/definitions/albumProperties.php:134
 msgid "Image Frame"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:144
+#: ../includes/definitions/albumProperties.php:147
 msgid "Slideshow"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:148
+#: ../includes/definitions/albumProperties.php:151
 msgid "Slideshow Type"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:150
-#: ../includes/definitions/albumProperties.php:198
-#: ../includes/definitions/albumProperties.php:212
+#: ../includes/definitions/albumProperties.php:153
+#: ../includes/definitions/albumProperties.php:201
+#: ../includes/definitions/albumProperties.php:215
 msgid "Off"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:150
+#: ../includes/definitions/albumProperties.php:153
 msgid "Ordered"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:150
+#: ../includes/definitions/albumProperties.php:153
 msgid "Random"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:154
+#: ../includes/definitions/albumProperties.php:157
 msgid "Include sub-albums in slideshow"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:156
-#: ../includes/definitions/albumProperties.php:162
-#: ../includes/definitions/albumProperties.php:236
-#: ../includes/definitions/albumProperties.php:242
-#: ../includes/definitions/albumProperties.php:248
-#: ../includes/definitions/albumProperties.php:254
-#: ../includes/definitions/albumProperties.php:283
-#: ../includes/definitions/albumProperties.php:319
-#: ../includes/definitions/albumProperties.php:364
-#: ../includes/definitions/albumProperties.php:370
-#: ../includes/definitions/albumProperties.php:376
-#: ../includes/definitions/albumProperties.php:382
-#: ../includes/definitions/albumProperties.php:392
-#: ../includes/definitions/albumProperties.php:398
-#: ../includes/definitions/albumProperties.php:440
-#: ../includes/definitions/albumProperties.php:452
+#: ../includes/definitions/albumProperties.php:159
+#: ../includes/definitions/albumProperties.php:165
+#: ../includes/definitions/albumProperties.php:239
+#: ../includes/definitions/albumProperties.php:245
+#: ../includes/definitions/albumProperties.php:251
+#: ../includes/definitions/albumProperties.php:257
+#: ../includes/definitions/albumProperties.php:286
+#: ../includes/definitions/albumProperties.php:322
+#: ../includes/definitions/albumProperties.php:367
+#: ../includes/definitions/albumProperties.php:373
+#: ../includes/definitions/albumProperties.php:379
+#: ../includes/definitions/albumProperties.php:385
+#: ../includes/definitions/albumProperties.php:395
+#: ../includes/definitions/albumProperties.php:401
+#: ../includes/definitions/albumProperties.php:443
+#: ../includes/definitions/albumProperties.php:455
 msgid "Yes"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:156
-#: ../includes/definitions/albumProperties.php:162
-#: ../includes/definitions/albumProperties.php:236
-#: ../includes/definitions/albumProperties.php:242
-#: ../includes/definitions/albumProperties.php:248
-#: ../includes/definitions/albumProperties.php:254
-#: ../includes/definitions/albumProperties.php:283
-#: ../includes/definitions/albumProperties.php:319
-#: ../includes/definitions/albumProperties.php:364
-#: ../includes/definitions/albumProperties.php:370
-#: ../includes/definitions/albumProperties.php:376
-#: ../includes/definitions/albumProperties.php:382
-#: ../includes/definitions/albumProperties.php:392
-#: ../includes/definitions/albumProperties.php:398
-#: ../includes/definitions/albumProperties.php:440
-#: ../includes/definitions/albumProperties.php:452
+#: ../includes/definitions/albumProperties.php:159
+#: ../includes/definitions/albumProperties.php:165
+#: ../includes/definitions/albumProperties.php:239
+#: ../includes/definitions/albumProperties.php:245
+#: ../includes/definitions/albumProperties.php:251
+#: ../includes/definitions/albumProperties.php:257
+#: ../includes/definitions/albumProperties.php:286
+#: ../includes/definitions/albumProperties.php:322
+#: ../includes/definitions/albumProperties.php:367
+#: ../includes/definitions/albumProperties.php:373
+#: ../includes/definitions/albumProperties.php:379
+#: ../includes/definitions/albumProperties.php:385
+#: ../includes/definitions/albumProperties.php:395
+#: ../includes/definitions/albumProperties.php:401
+#: ../includes/definitions/albumProperties.php:443
+#: ../includes/definitions/albumProperties.php:455
 msgid "No"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:160
+#: ../includes/definitions/albumProperties.php:163
 msgid "Allow slideshow to loop"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:166
+#: ../includes/definitions/albumProperties.php:169
 msgid "Slideshow Length"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:179
+#: ../includes/definitions/albumProperties.php:182
 msgid "Sizes"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:183
+#: ../includes/definitions/albumProperties.php:186
 msgid "Thumbnail size"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:190
+#: ../includes/definitions/albumProperties.php:193
 msgid "The ratio in which the thumbnails are made.<br>This affects only new thumbs. For existing use 'rebuild thumbs'"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:192
+#: ../includes/definitions/albumProperties.php:195
 msgid "As the original image"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:192
+#: ../includes/definitions/albumProperties.php:195
 msgid "Square thumbs"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:196
+#: ../includes/definitions/albumProperties.php:199
 msgid "Maximum dimensions of intermediate sized images"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:203
+#: ../includes/definitions/albumProperties.php:206
 msgid "Maximum file size of intermediate sized JPEG/PNG images in kilobytes (0 or blank for no size restriction)"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:210
+#: ../includes/definitions/albumProperties.php:213
 msgid "Maximum dimensions of full sized images"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:212
+#: ../includes/definitions/albumProperties.php:215
 #, php-format
 msgid "%d (%d MPix)"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:217
+#: ../includes/definitions/albumProperties.php:220
 msgid "Maximum file size of full sized JPEG/PNG images in kilobytes (0 or blank for no size restriction)"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:230
+#: ../includes/definitions/albumProperties.php:233
 msgid "Display"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:234
+#: ../includes/definitions/albumProperties.php:237
 msgid "Display click counter for this album?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:240
+#: ../includes/definitions/albumProperties.php:243
 msgid "Display owners name with caption"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:246
+#: ../includes/definitions/albumProperties.php:249
 msgid "Display clickable image dimensions"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:252
+#: ../includes/definitions/albumProperties.php:255
 msgid "Display EXIF data?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:265
+#: ../includes/definitions/albumProperties.php:268
 msgid "Services"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:269
+#: ../includes/definitions/albumProperties.php:272
 msgid "Which photo printing services<br>do you want to let visitors use?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:281
+#: ../includes/definitions/albumProperties.php:284
 msgid "Enable Ecards ?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:294
+#: ../includes/definitions/albumProperties.php:297
 msgid "Poll Properties"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:298
+#: ../includes/definitions/albumProperties.php:301
 msgid "Who can vote?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:299
+#: ../includes/definitions/albumProperties.php:302
 msgid "This enables/disable voting and if enabled it controlles who can vote."
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:300
+#: ../includes/definitions/albumProperties.php:303
 msgid "Logged in"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:300
+#: ../includes/definitions/albumProperties.php:303
 msgid "Everybody"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:300
+#: ../includes/definitions/albumProperties.php:303
 msgid "Nobody"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:304
+#: ../includes/definitions/albumProperties.php:307
 msgid "Type of poll for this album"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:306
+#: ../includes/definitions/albumProperties.php:309
 msgid "Rank"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:306
+#: ../includes/definitions/albumProperties.php:309
 msgid "Critique"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:310
+#: ../includes/definitions/albumProperties.php:313
 msgid "Number of voting options"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:317
+#: ../includes/definitions/albumProperties.php:320
 msgid "Show results of voting to all visitors?"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:323
+#: ../includes/definitions/albumProperties.php:326
 msgid "Number of lines of results graph to display on the album page"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:330
+#: ../includes/definitions/albumProperties.php:333
 msgid "Orientation of vote choices"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:332
+#: ../includes/definitions/albumProperties.php:335
 msgid "Horizontal"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:332
+#: ../includes/definitions/albumProperties.php:335
 msgid "Vertical"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:337
+#: ../includes/definitions/albumProperties.php:340
 msgid "Vote hint"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:344
+#: ../includes/definitions/albumProperties.php:347
 msgid "Voting Options"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:348
+#: ../includes/definitions/albumProperties.php:351
 msgid "Displayed Value"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:348
+#: ../includes/definitions/albumProperties.php:351
 msgid "Points"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:358
+#: ../includes/definitions/albumProperties.php:361
 msgid "Misc"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:362
+#: ../includes/definitions/albumProperties.php:365
 msgid "Add new items at beginning of album"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:368
+#: ../includes/definitions/albumProperties.php:371
 msgid "Show <i>Return to</i> link"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:374
+#: ../includes/definitions/albumProperties.php:377
 msgid "Offer visitors ability to specify<br>preference for full-size or resized images"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:380
+#: ../includes/definitions/albumProperties.php:383
 msgid "Auto fit-to-window for<br>images without a resized copy"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:387
+#: ../includes/definitions/albumProperties.php:390
 msgid "Permissions"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:390
+#: ../includes/definitions/albumProperties.php:393
 msgid "Allow item owners to modify their images"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:396
+#: ../includes/definitions/albumProperties.php:399
 msgid "Allow item owners to delete their images"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:408
+#: ../includes/definitions/albumProperties.php:411
 msgid "Custom Fields"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:417
+#: ../includes/definitions/albumProperties.php:420
 msgid "Number of user defined custom fields"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:435
+#: ../includes/definitions/albumProperties.php:438
 msgid "Microthumbs"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:438
+#: ../includes/definitions/albumProperties.php:441
 msgid "Use microthumb photo navigation"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:440
+#: ../includes/definitions/albumProperties.php:443
 msgid "both"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:444
+#: ../includes/definitions/albumProperties.php:447
 msgid "Microthumb style"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:446
+#: ../includes/definitions/albumProperties.php:449
 msgid "Fixed"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:446
+#: ../includes/definitions/albumProperties.php:449
 msgid "Dynamic"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:450
+#: ../includes/definitions/albumProperties.php:453
 msgid "Show first & last microthumb"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:456
+#: ../includes/definitions/albumProperties.php:459
 msgid "Number of previous thumbs"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:462
+#: ../includes/definitions/albumProperties.php:465
 msgid "Number of next thumbs"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:468
+#: ../includes/definitions/albumProperties.php:471
 msgid "Position of microthumb navigation bar"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:470
+#: ../includes/definitions/albumProperties.php:473
 msgid "Top"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:471
+#: ../includes/definitions/albumProperties.php:474
 msgid "Both"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:472
+#: ../includes/definitions/albumProperties.php:475
 msgid "Bottom"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:476
+#: ../includes/definitions/albumProperties.php:479
 msgid "Height of microthumbs in navigation bar"
 msgstr ""
 
-#: ../includes/definitions/albumProperties.php:483
+#: ../includes/definitions/albumProperties.php:486
 msgid "Bonus to height of current microthumb (pixels)"
 msgstr ""
 
@@ -498,120 +498,120 @@
 msgid "Post comment"
 msgstr ""
 
-#: ../lib/content.php:288
+#: ../lib/content.php:299
 #, php-format
 msgid "1 view"
 msgid_plural "%d views"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../lib/content.php:313 ../lib/content.php:338
+#: ../lib/content.php:324 ../lib/content.php:349
 msgid "Sub-albums:"
 msgstr ""
 
-#: ../lib/content.php:421
+#: ../lib/content.php:432
 msgid "EXIF Data"
 msgstr ""
 
-#: ../lib/content.php:423
+#: ../lib/content.php:434
 msgid "Display of EXIF data enabled, but no data found."
 msgstr ""
 
-#: ../lib/content.php:579
+#: ../lib/content.php:590
 msgid "Search:"
 msgstr ""
 
-#: ../lib/content.php:619 ../lib/content.php:638
+#: ../lib/content.php:630 ../lib/content.php:649
 msgid "Not closing this window because debug mode is on"
 msgstr ""
 
-#: ../lib/content.php:666
+#: ../lib/content.php:677
 #, php-format
 msgid "Problem including file %s"
 msgstr ""
 
-#: ../lib/content.php:805
+#: ../lib/content.php:816
 msgid "Select Album"
 msgstr ""
 
-#: ../lib/content.php:811
+#: ../lib/content.php:822
 msgid "Move to top level"
 msgstr ""
 
-#: ../lib/content.php:829
+#: ../lib/content.php:840
 msgid "current location"
 msgstr ""
 
-#: ../lib/content.php:875
+#: ../lib/content.php:886
 msgid "Current location"
 msgstr ""
 
-#: ../lib/content.php:878
+#: ../lib/content.php:889
 msgid "This album itself"
 msgstr ""
 
-#: ../lib/content.php:902
+#: ../lib/content.php:913
 #, php-format
 msgid "Last comment %s."
 msgstr ""
 
-#: ../lib/content.php:925 ../lib/content.php:928
+#: ../lib/content.php:936 ../lib/content.php:939
 msgid "No Skin"
 msgstr ""
 
-#: ../lib/content.php:930
+#: ../lib/content.php:941
 msgid "The original look and feel."
 msgstr ""
 
-#: ../lib/content.php:975 ../lib/content.php:979
+#: ../lib/content.php:986 ../lib/content.php:990
 msgid "unknown"
 msgstr ""
 
-#: ../lib/content.php:983
+#: ../lib/content.php:994
 #, php-format
 msgid "Version: %s"
 msgstr ""
 
-#: ../lib/content.php:985
+#: ../lib/content.php:996
 #, php-format
 msgid "Last Update: %s"
 msgstr ""
 
-#: ../lib/content.php:1003 ../lib/content.php:1009
+#: ../lib/content.php:1014 ../lib/content.php:1020
 msgid "None"
 msgstr ""
 
-#: ../lib/content.php:1004 ../lib/content.php:1010
+#: ../lib/content.php:1015 ../lib/content.php:1021
 msgid "Dots"
 msgstr ""
 
-#: ../lib/content.php:1005 ../lib/content.php:1011
+#: ../lib/content.php:1016 ../lib/content.php:1022
 msgid "Solid"
 msgstr ""
 
-#: ../lib/content.php:1009
+#: ../lib/content.php:1020
 msgid "No frames"
 msgstr ""
 
-#: ../lib/content.php:1010
+#: ../lib/content.php:1021
 msgid "Just a simple dashed border around the thumb."
 msgstr ""
 
-#: ../lib/content.php:1011
+#: ../lib/content.php:1022
 msgid "Just a simple solid border around the thumb."
 msgstr ""
 
-#: ../lib/content.php:1033
+#: ../lib/content.php:1044
 #, php-format
 msgid "Skipping %s."
 msgstr ""
 
-#: ../lib/content.php:1039
+#: ../lib/content.php:1050
 #, php-format
 msgid "Can't open %s"
 msgstr ""
 
-#: ../lib/content.php:1114 ../lib/content.php:1134
+#: ../lib/content.php:1125 ../lib/content.php:1145
 msgid "Not valid yet"
 msgstr ""
 
@@ -706,39 +706,39 @@
 msgid "Not using IM high quality"
 msgstr ""
 
-#: ../lib/lang.php:745
+#: ../lib/lang.php:747
 msgid "Upload Date"
 msgstr ""
 
-#: ../lib/lang.php:746
+#: ../lib/lang.php:748
 msgid "Capture Date"
 msgstr ""
 
-#: ../lib/lang.php:747
+#: ../lib/lang.php:749
 msgid "Image Size"
 msgstr ""
 
-#: ../lib/lang.php:748
+#: ../lib/lang.php:750
 msgid "Additional EXIF Data"
 msgstr ""
 
-#: ../lib/lang.php:756
+#: ../lib/lang.php:758
 msgid "title"
 msgstr ""
 
-#: ../lib/lang.php:757
+#: ../lib/lang.php:759
 msgid "Title"
 msgstr ""
 
-#: ../lib/lang.php:758
+#: ../lib/lang.php:760
 msgid "Description"
 msgstr ""
 
-#: ../lib/lang.php:759
+#: ../lib/lang.php:761
 msgid "description"
 msgstr ""
 
-#: ../lib/lang.php:760
+#: ../lib/lang.php:762
 msgid "Alt Text / onMouseOver"
 msgstr ""
 
@@ -1335,22 +1335,42 @@
 msgid "OK!  Version: %s"
 msgstr ""
 
-#: ../lib/valchecks.php:68
+#: ../lib/valchecks.php:46
+msgid "The given frame is not valid."
+msgstr ""
+
+#: ../lib/valchecks.php:54
+msgid "Value was set to given default. Because the original value is not a in the allowed amount of choices."
+msgstr ""
+
+#: ../lib/valchecks.php:57
+msgid "The given value is not in the allowed amount of choices."
+msgstr ""
+
+#: ../lib/valchecks.php:88
 msgid "Value was set to given default. Because the original value is not numeric."
 msgstr ""
 
-#: ../lib/valchecks.php:70
+#: ../lib/valchecks.php:90
 msgid "The given Value is not numeric."
 msgstr ""
 
-#: ../lib/valchecks.php:76
+#: ../lib/valchecks.php:96
 msgid "Value was set to given default. Because the original value is not a valid Integer"
 msgstr ""
 
-#: ../lib/valchecks.php:78
+#: ../lib/valchecks.php:98
 msgid "The given Value not a valid Integer."
 msgstr ""
 
+#: ../lib/valchecks.php:109
+msgid "Value was set to given default. Because the original value is not a valid text"
+msgstr ""
+
+#: ../lib/valchecks.php:112
+msgid "Value was corrected, because the original value is not a valid text"
+msgstr ""
+
 #: ../lib/voting.php:215
 msgid "Vote"
 msgstr ""
diff -Naur gallery-1.5.2-pl2/po/gallery-config.pot gallery-1.5.3/po/gallery-config.pot
--- gallery-1.5.2-pl2/po/gallery-config.pot	2006-01-22 00:45:16.000000000 +0100
+++ gallery-1.5.3/po/gallery-config.pot	2006-04-05 00:32:05.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.128.2.11 2006/01/21 23:45:16 jenst Exp $
+# $Id: gallery-config.pot,v 1.134.2.3 2006/04/04 22:32:05 jenst Exp $
 #
 # @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-01-22 00:37+0100\n"
+"POT-Creation-Date: 2006-04-05 00:31+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"
@@ -3358,48 +3358,48 @@
 msgid "Cancel"
 msgstr ""
 
-#: ../setup/session_test.php:45
+#: ../setup/session_test.php:41
 msgid "Gallery Session Test"
 msgstr ""
 
-#: ../setup/session_test.php:50
+#: ../setup/session_test.php:46
 msgid "Session Test"
 msgstr ""
 
-#: ../setup/session_test.php:53
+#: ../setup/session_test.php:49
 msgid "If sessions are configured properly in your PHP installation, then you should see a session id below."
 msgstr ""
 
-#: ../setup/session_test.php:55
+#: ../setup/session_test.php:51
 msgid "The &quot;page views&quot; number should increase every time you reload the page."
 msgstr ""
 
-#: ../setup/session_test.php:57
+#: ../setup/session_test.php:53
 #, php-format
 msgid "Clicking %s should reset the page view number back to 1."
 msgstr ""
 
-#: ../setup/session_test.php:59
+#: ../setup/session_test.php:55
 msgid "If this <b>does not</b> work, then you most likely have a configuration issue with your PHP installation."
 msgstr ""
 
-#: ../setup/session_test.php:60
+#: ../setup/session_test.php:56
 msgid "Gallery will not work properly until PHP's session management is configured properly."
 msgstr ""
 
-#: ../setup/session_test.php:68
+#: ../setup/session_test.php:64
 msgid "Your session id is"
 msgstr ""
 
-#: ../setup/session_test.php:72
+#: ../setup/session_test.php:68
 msgid "Page views in this session"
 msgstr ""
 
-#: ../setup/session_test.php:76
+#: ../setup/session_test.php:72
 msgid "Server IP address"
 msgstr ""
 
-#: ../setup/session_test.php:86
+#: ../setup/session_test.php:82
 msgid "Start over"
 msgstr ""
 
diff -Naur gallery-1.5.2-pl2/po/gallery-core.pot gallery-1.5.3/po/gallery-core.pot
--- gallery-1.5.2-pl2/po/gallery-core.pot	2006-01-22 00:45:17.000000000 +0100
+++ gallery-1.5.3/po/gallery-core.pot	2006-04-05 00:32:05.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.128.2.11 2006/01/21 23:45:17 jenst Exp $
+# $Id: gallery-core.pot,v 1.134.2.3 2006/04/04 22:32:05 jenst Exp $
 #
 # @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-01-22 00:37+0100\n"
+"POT-Creation-Date: 2006-04-05 00:31+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"
@@ -45,7 +45,7 @@
 #: ../move_photo.php:32 ../multi_create_user.php:34 ../photo_owner.php:34
 #: ../poll_properties.php:34 ../poll_results.php:37 ../rearrange.php:28
 #: ../rename_album.php:31 ../reset_votes.php:37 ../resize_photo.php:34
-#: ../rotate_photo.php:31 ../save_photos.php:38 ../upgrade_album.php:57
+#: ../rotate_photo.php:33 ../save_photos.php:38 ../upgrade_album.php:57
 #: ../user_preferences.php:31 ../watermark_album.php:43
 msgid "You are not allowed to perform this action!"
 msgstr ""
@@ -72,9 +72,9 @@
 msgstr ""
 
 #: ../add_comment.php:98 ../copy_photo.php:214 ../delete_album.php:72
-#: ../delete_photo.php:145 ../delete_user.php:85 ../download.php:74
-#: ../ecard_form.php:263 ../edit_caption.php:184 ../edit_field.php:67
-#: ../edit_watermark.php:130 ../includes/add_photos/add_form.inc:90
+#: ../delete_photo.php:145 ../delete_user.php:85 ../download.php:84
+#: ../ecard_form.php:263 ../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
 #: ../new_password.php:138 ../register.php:142 ../rename_album.php:131
@@ -103,7 +103,7 @@
 msgid "URL"
 msgstr ""
 
-#: ../add_photos.php:79 ../layout/watermarkform.inc:135
+#: ../add_photos.php:79 ../layout/watermarkform.inc:141
 msgid "Other"
 msgstr ""
 
@@ -219,8 +219,8 @@
 msgstr ""
 
 #: ../administer_startpage.php:99 ../administer_startpage.php:109
-#: ../download.php:81 ../help/imagemap.php:88 ../user_preferences.php:145
-#: ../view_photo_properties.php:137
+#: ../download.php:91 ../edit_field.php:66 ../help/imagemap.php:88
+#: ../user_preferences.php:145 ../view_photo_properties.php:137
 msgid "Close Window"
 msgstr ""
 
@@ -281,8 +281,8 @@
 msgid "Apply permissions to all sub-albums"
 msgstr ""
 
-#: ../album_permissions.php:159 ../edit_caption.php:183 ../edit_field.php:57
-#: ../edit_field.php:66 ../edit_watermark.php:128 ../modify_user.php:163
+#: ../album_permissions.php:159 ../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
 #: ../watermark_album.php:148
 msgid "Save"
@@ -294,241 +294,241 @@
 msgid "Done"
 msgstr ""
 
-#: ../albums.php:111 ../view_album.php:130
+#: ../albums.php:110 ../view_album.php:130
 #, php-format
 msgid "%s RSS"
 msgstr ""
 
-#: ../albums.php:146
+#: ../albums.php:148
 #, php-format
 msgid "1 album"
 msgid_plural "%d albums"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:146
+#: ../albums.php:148
 msgid "no albums"
 msgstr ""
 
-#: ../albums.php:148
+#: ../albums.php:150
 #, php-format
 msgid "1 top-level album"
 msgid_plural "%d top-level albums"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:148
+#: ../albums.php:150
 msgid "No top-level albums"
 msgstr ""
 
-#: ../albums.php:151
+#: ../albums.php:153
 #, php-format
 msgid "%d total"
 msgstr ""
 
-#: ../albums.php:152 ../view_album.php:212
+#: ../albums.php:154 ../view_album.php:215
 #, php-format
 msgid "1 image"
 msgid_plural "%d images"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:152 ../view_album.php:212
+#: ../albums.php:154 ../view_album.php:215
 msgid "no images"
 msgstr ""
 
-#: ../albums.php:153 ../view_album.php:213
+#: ../albums.php:155 ../view_album.php:216
 #, php-format
 msgid "1 page"
 msgid_plural "%d pages"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:153
+#: ../albums.php:155
 msgid "no pages"
 msgstr ""
 
-#: ../albums.php:156
+#: ../albums.php:158
 #, php-format
 msgid "%s (%s), %s on %s"
 msgstr ""
 
-#: ../albums.php:159
+#: ../albums.php:161
 #, php-format
 msgid "%s (%s), %s"
 msgstr ""
 
-#: ../albums.php:161
+#: ../albums.php:163
 #, php-format
 msgid "%s, %s on %s"
 msgstr ""
 
-#: ../albums.php:163
+#: ../albums.php:165
 #, php-format
 msgid "%s, %s"
 msgstr ""
 
-#: ../albums.php:178
+#: ../albums.php:180
 #, php-format
 msgid "Welcome, %s"
 msgstr ""
 
-#: ../albums.php:182 ../view_album.php:402
+#: ../albums.php:184 ../view_album.php:405
 msgid "slideshow"
 msgstr ""
 
-#: ../albums.php:187
+#: ../albums.php:189
 msgid "new album"
 msgstr ""
 
-#: ../albums.php:194
+#: ../albums.php:196
 msgid "Administer startpage"
 msgstr ""
 
-#: ../albums.php:198
+#: ../albums.php:200
 msgid "admin page"
 msgstr ""
 
-#: ../albums.php:203
+#: ../albums.php:205
 msgid "documentation"
 msgstr ""
 
-#: ../albums.php:209
+#: ../albums.php:211
 msgid "preferences"
 msgstr ""
 
-#: ../albums.php:214 ../imagemap.php:139 ../view_album.php:420
+#: ../albums.php:216 ../imagemap.php:139 ../view_album.php:423
 #: ../view_photo.php:519
 msgid "logout"
 msgstr ""
 
-#: ../albums.php:219 ../imagemap.php:144 ../view_album.php:425
+#: ../albums.php:221 ../imagemap.php:144 ../view_album.php:428
 #: ../view_photo.php:524
 msgid "login"
 msgstr ""
 
-#: ../albums.php:223
+#: ../albums.php:225
 msgid "register"
 msgstr ""
 
-#: ../albums.php:249
+#: ../albums.php:251
 msgid "Attention Gallery Administrator!"
 msgstr ""
 
-#: ../albums.php:252
+#: ../albums.php:254
 #, php-format
 msgid "%s has detected the following %d invalid album(s) in your albums directory<br>(%s):"
 msgstr ""
 
-#: ../albums.php:258
+#: ../albums.php:260
 msgid "Please move it/them out of the albums directory."
 msgstr ""
 
-#: ../albums.php:262
+#: ../albums.php:264
 #, php-format
 msgid "%s has detected that %d of your albums are out of date."
 msgstr ""
 
-#: ../albums.php:266
+#: ../albums.php:268
 #, php-format
 msgid "Please %s."
 msgstr ""
 
-#: ../albums.php:266
+#: ../albums.php:268
 msgid "upgrade those albums"
 msgstr ""
 
-#: ../albums.php:273
+#: ../albums.php:275
 msgid "Attention!"
 msgstr ""
 
-#: ../albums.php:275
+#: ../albums.php:277
 #, php-format
 msgid "The album or photo that you were attempting to view either does not exist, or requires user privileges that you do not possess. %s"
 msgstr ""
 
-#: ../albums.php:275
+#: ../albums.php:277
 #, php-format
 msgid "%s and try again."
 msgstr ""
 
-#: ../albums.php:276
+#: ../albums.php:278
 msgid "Log in"
 msgstr ""
 
-#: ../albums.php:290
+#: ../albums.php:292
 #, php-format
 msgid "The requested album with index %s is not valid"
 msgstr ""
 
-#: ../albums.php:331 ../view_album.php:676
+#: ../albums.php:333 ../view_album.php:679
 msgid "Highlight for Album:"
 msgstr ""
 
-#: ../albums.php:351 ../view_album.php:782
+#: ../albums.php:353 ../view_album.php:785
 msgid "Download entire album as archive"
 msgstr ""
 
-#: ../albums.php:386
+#: ../albums.php:388
 #, php-format
 msgid "Owner: %s"
 msgstr ""
 
-#: ../albums.php:394
+#: ../albums.php:396
 msgid "url:"
 msgstr ""
 
-#: ../albums.php:405
+#: ../albums.php:407
 msgid "Hey!"
 msgstr ""
 
-#: ../albums.php:406
+#: ../albums.php:408
 #, php-format
 msgid "%s so that the URL is not so generic!"
 msgstr ""
 
-#: ../albums.php:407
+#: ../albums.php:409
 msgid "Rename this album"
 msgstr ""
 
-#: ../albums.php:422
+#: ../albums.php:424
 #, php-format
 msgid "Created on %s, last changed on %s."
 msgstr ""
 
-#: ../albums.php:425
+#: ../albums.php:427
 #, php-format
 msgid "Last changed on %s."
 msgstr ""
 
-#: ../albums.php:434
+#: ../albums.php:436
 #, php-format
 msgid "This album contains 1 item."
 msgid_plural "This album contains %d items."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:443
+#: ../albums.php:445
 #, php-format
 msgid "This album has been viewed %s since %s."
 msgstr ""
 
-#: ../albums.php:444 ../view_album.php:817
+#: ../albums.php:446 ../view_album.php:820
 #, php-format
 msgid "1 time"
 msgid_plural "%d times"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../albums.php:444
+#: ../albums.php:446
 msgid "0 times"
 msgstr ""
 
-#: ../albums.php:450
+#: ../albums.php:452
 msgid "reset counter"
 msgstr ""
 
-#: ../albums.php:495 ../view_album.php:916
+#: ../albums.php:497 ../view_album.php:919
 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:770
+#: ../layout/commentboxtop.inc:45 ../view_album.php:773
 msgid "hidden"
 msgstr ""
 
@@ -946,7 +946,7 @@
 
 #: ../copy_photo.php:218 ../delete_photo.php:150 ../edit_thumb.php:131
 #: ../move_album.php:140 ../move_photo.php:358 ../resize_photo.php:147
-#: ../rotate_photo.php:95 ../view_photo_properties.php:130
+#: ../rotate_photo.php:130 ../view_photo_properties.php:130
 msgid "no album / index specified"
 msgstr ""
 
@@ -1008,8 +1008,8 @@
 
 #: ../delete_album.php:71 ../delete_photo.php:144 ../delete_user.php:80
 #: ../js/multifile.js.php:106 ../layout/commentbox.inc:15
-#: ../lib/albumItem.php:254 ../lib/albumItem.php:255 ../lib/albumItem.php:261
-#: ../lib/albumItem.php:262 ../manage_users.php:98
+#: ../lib/albumItem.php:251 ../lib/albumItem.php:252 ../lib/albumItem.php:258
+#: ../lib/albumItem.php:259 ../manage_users.php:98
 #: ../tools/despam-comments.php:206 ../tools/despam-comments.php:345
 msgid "Delete"
 msgstr ""
@@ -1105,62 +1105,66 @@
 msgid "Rebuilding 1 thumbnail..."
 msgstr ""
 
-#: ../download.php:44 ../download.php:48
+#: ../download.php:40
+msgid "Zipdownload would work, but is disabled when debugging."
+msgstr ""
+
+#: ../download.php:54 ../download.php:58
 msgid "Download album as archive"
 msgstr ""
 
-#: ../download.php:59
+#: ../download.php:69
 #, php-format
 msgid "This album contains just one item in total."
 msgid_plural "This album contains %d items in total."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../download.php:60
+#: ../download.php:70
 #, php-format
 msgid "One subalbum"
 msgid_plural "%d subalbums"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../download.php:60
+#: ../download.php:70
 msgid "No subalbums"
 msgstr ""
 
-#: ../download.php:61
+#: ../download.php:71
 #, php-format
 msgid "one photo/movie"
 msgid_plural "%d photos/movies"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../download.php:61
+#: ../download.php:71
 msgid "no photo/movie"
 msgstr ""
 
-#: ../download.php:63
+#: ../download.php:73
 #, php-format
 msgid "%s and %s."
 msgstr ""
 
-#: ../download.php:66
+#: ../download.php:76
 #, php-format
 msgid "Approximitaly size of zipfile: %s"
 msgstr ""
 
-#: ../download.php:70
+#: ../download.php:80
 msgid "Full Version"
 msgstr ""
 
-#: ../download.php:71
+#: ../download.php:81
 msgid "Resized Version"
 msgstr ""
 
-#: ../download.php:73
+#: ../download.php:83
 msgid "Download"
 msgstr ""
 
-#: ../download.php:79
+#: ../download.php:89
 msgid "This album album is not empty, but contains no photo or movie! Download would'nt make sense."
 msgstr ""
 
@@ -1255,7 +1259,7 @@
 msgid "Your Message:"
 msgstr ""
 
-#: ../ecard_form.php:260 ../edit_watermark.php:129 ../watermark_album.php:151
+#: ../ecard_form.php:260 ../edit_watermark.php:120 ../watermark_album.php:151
 msgid "Preview"
 msgstr ""
 
@@ -1328,7 +1332,7 @@
 msgstr ""
 
 #: ../edit_appearance.php:301 ../extra_fields.php:174
-#: ../poll_properties.php:142 ../rotate_photo.php:87
+#: ../poll_properties.php:142 ../rotate_photo.php:124
 msgid "Close"
 msgstr ""
 
@@ -1376,12 +1380,12 @@
 msgid "Seconds"
 msgstr ""
 
-#: ../edit_field.php:49 ../edit_field.php:53
+#: ../edit_field.php:46 ../edit_field.php:51
 #, php-format
 msgid "Edit %s"
 msgstr ""
 
-#: ../edit_field.php:56
+#: ../edit_field.php:54
 #, php-format
 msgid "Edit the %s and click %s when you're done"
 msgstr ""
@@ -1406,11 +1410,11 @@
 msgid "Please select an alignment."
 msgstr ""
 
-#: ../edit_watermark.php:93 ../edit_watermark.php:97
+#: ../edit_watermark.php:89
 msgid "Edit Watermark"
 msgstr ""
 
-#: ../edit_watermark.php:116
+#: ../edit_watermark.php:107
 msgid "Your image is a gif. Watermarking on animated gifs is currently not supported and will 'deface & unanimate' your picture."
 msgstr ""
 
@@ -1812,7 +1816,7 @@
 msgid "Supported file types: %s"
 msgstr ""
 
-#: ../includes/add_photos/add_form.inc:38 ../view_album.php:562
+#: ../includes/add_photos/add_form.inc:38 ../view_album.php:565
 msgid " or "
 msgstr ""
 
@@ -2327,7 +2331,7 @@
 msgid "properties"
 msgstr ""
 
-#: ../layout/adminAlbumCommands.inc:35 ../view_album.php:412
+#: ../layout/adminAlbumCommands.inc:35 ../view_album.php:415
 msgid "view&nbsp;comments"
 msgstr ""
 
@@ -2344,11 +2348,11 @@
 msgid "From: %s"
 msgstr ""
 
-#: ../layout/commentboxbottom.inc:11 ../stats.php:969
+#: ../layout/commentboxbottom.inc:12 ../stats.php:969
 msgid "add comment"
 msgstr ""
 
-#: ../layout/commentboxbottom.inc:14
+#: ../layout/commentboxbottom.inc:16
 msgid "Delete marked comments"
 msgstr ""
 
@@ -2360,11 +2364,11 @@
 msgid "Album contains no comments"
 msgstr ""
 
-#: ../layout/commentdraw.inc:23 ../lib/albumItem.php:327
+#: ../layout/commentdraw.inc:23 ../lib/albumItem.php:324
 msgid "From:"
 msgstr ""
 
-#: ../layout/commentdraw.inc:48 ../lib/albumItem.php:301
+#: ../layout/commentdraw.inc:48 ../lib/albumItem.php:298
 msgid "delete comment"
 msgstr ""
 
@@ -2410,93 +2414,93 @@
 msgid "%d of %d"
 msgstr ""
 
-#: ../layout/watermarkform.inc:84
+#: ../layout/watermarkform.inc:90
 msgid "Watermark:"
 msgstr ""
 
-#: ../layout/watermarkform.inc:88
+#: ../layout/watermarkform.inc:94
 msgid "* No Watermark *"
 msgstr ""
 
-#: ../layout/watermarkform.inc:94
+#: ../layout/watermarkform.inc:100
 #, php-format
 msgid "No files matching %s found in %s"
 msgstr ""
 
-#: ../layout/watermarkform.inc:100
+#: ../layout/watermarkform.inc:106
 #, php-format
 msgid "Could not open directory %s"
 msgstr ""
 
-#: ../layout/watermarkform.inc:105
+#: ../layout/watermarkform.inc:111
 msgid "Alignment:"
 msgstr ""
 
-#: ../layout/watermarkform.inc:110
+#: ../layout/watermarkform.inc:116
 msgid "Upper&nbsp;Left"
 msgstr ""
 
-#: ../layout/watermarkform.inc:112
+#: ../layout/watermarkform.inc:118
 msgid "Top"
 msgstr ""
 
-#: ../layout/watermarkform.inc:114
+#: ../layout/watermarkform.inc:120
 msgid "Upper&nbsp;Right"
 msgstr ""
 
-#: ../layout/watermarkform.inc:118
+#: ../layout/watermarkform.inc:124
 msgid "Left"
 msgstr ""
 
-#: ../layout/watermarkform.inc:120
+#: ../layout/watermarkform.inc:126
 msgid "Center"
 msgstr ""
 
-#: ../layout/watermarkform.inc:122
+#: ../layout/watermarkform.inc:128
 msgid "Right"
 msgstr ""
 
-#: ../layout/watermarkform.inc:126
+#: ../layout/watermarkform.inc:132
 msgid "Lower&nbsp;Left"
 msgstr ""
 
-#: ../layout/watermarkform.inc:128
+#: ../layout/watermarkform.inc:134
 msgid "Bottom"
 msgstr ""
 
-#: ../layout/watermarkform.inc:130
+#: ../layout/watermarkform.inc:136
 msgid "Lower&nbsp;Right"
 msgstr ""
 
-#: ../layout/watermarkform.inc:144
+#: ../layout/watermarkform.inc:150
 msgid "Preview Size"
 msgstr ""
 
-#: ../layout/watermarkform.inc:147
+#: ../layout/watermarkform.inc:153
 msgid "Resized"
 msgstr ""
 
-#: ../layout/watermarkform.inc:150
+#: ../layout/watermarkform.inc:156
 msgid "Full"
 msgstr ""
 
-#: ../layout/watermarkform.inc:162
+#: ../layout/watermarkform.inc:168
 msgid "Watermark subalbums"
 msgstr ""
 
-#: ../layout/watermarkform.inc:164
+#: ../layout/watermarkform.inc:170
 msgid "Apply watermark to"
 msgstr ""
 
-#: ../layout/watermarkform.inc:165
+#: ../layout/watermarkform.inc:171
 msgid "All photos"
 msgstr ""
 
-#: ../layout/watermarkform.inc:166
+#: ../layout/watermarkform.inc:172
 msgid "Only sized photos"
 msgstr ""
 
-#: ../layout/watermarkform.inc:167
+#: ../layout/watermarkform.inc:173
 msgid "Only full photos"
 msgstr ""
 
@@ -2529,70 +2533,70 @@
 msgid "ImageMap"
 msgstr ""
 
-#: ../lib/albumItem.php:142 ../lib/albumItem.php:143
+#: ../lib/albumItem.php:140 ../lib/albumItem.php:141
+msgid "Move"
+msgstr ""
+
+#: ../lib/albumItem.php:148 ../lib/albumItem.php:149
 msgid "Edit Title"
 msgstr ""
 
-#: ../lib/albumItem.php:147 ../lib/albumItem.php:148
+#: ../lib/albumItem.php:153 ../lib/albumItem.php:154
 msgid "Edit Description"
 msgstr ""
 
-#: ../lib/albumItem.php:153 ../lib/albumItem.php:154 ../rename_album.php:39
+#: ../lib/albumItem.php:159 ../lib/albumItem.php:160 ../rename_album.php:39
 #: ../rename_album.php:43
 msgid "Rename Album"
 msgstr ""
 
-#: ../lib/albumItem.php:159 ../lib/albumItem.php:160
+#: ../lib/albumItem.php:165 ../lib/albumItem.php:166
 msgid "Reset Counter"
 msgstr ""
 
-#: ../lib/albumItem.php:171 ../lib/albumItem.php:172 ../view_album.php:313
+#: ../lib/albumItem.php:177 ../lib/albumItem.php:178 ../view_album.php:316
 msgid "Permissions"
 msgstr ""
 
-#: ../lib/albumItem.php:179 ../lib/albumItem.php:180
+#: ../lib/albumItem.php:185 ../lib/albumItem.php:186
 #: ../watermark_album.php:114 ../watermark_album.php:118
 msgid "Watermark Album"
 msgstr ""
 
-#: ../lib/albumItem.php:186 ../lib/albumItem.php:187
+#: ../lib/albumItem.php:192 ../lib/albumItem.php:193
 msgid "View Comments"
 msgstr ""
 
-#: ../lib/albumItem.php:196 ../lib/albumItem.php:213 ../lib/albumItem.php:214
-msgid "Move"
-msgstr ""
-
-#: ../lib/albumItem.php:197
-msgid "Reorder"
+#: ../lib/albumItem.php:200 ../lib/albumItem.php:201
+msgid "Copy"
 msgstr ""
 
-#: ../lib/albumItem.php:204 ../lib/albumItem.php:205
-msgid "Set as highlight"
+#: ../lib/albumItem.php:208 ../lib/albumItem.php:209
+msgid "Show"
 msgstr ""
 
-#: ../lib/albumItem.php:220 ../lib/albumItem.php:221
-msgid "Copy"
+#: ../lib/albumItem.php:214 ../lib/albumItem.php:215
+msgid "Hide"
 msgstr ""
 
-#: ../lib/albumItem.php:226 ../lib/albumItem.php:227 ../photo_owner.php:78
-#: ../photo_owner.php:82
-msgid "Change Owner"
+#: ../lib/albumItem.php:223 ../lib/albumItem.php:224
+msgid "Reorder"
 msgstr ""
 
-#: ../lib/albumItem.php:236 ../lib/albumItem.php:237
-msgid "Show"
+#: ../lib/albumItem.php:231 ../lib/albumItem.php:232
+msgid "Set as highlight"
 msgstr ""
 
-#: ../lib/albumItem.php:242 ../lib/albumItem.php:243
-msgid "Hide"
+#: ../lib/albumItem.php:240 ../lib/albumItem.php:241 ../photo_owner.php:78
+#: ../photo_owner.php:82
+msgid "Change Owner"
 msgstr ""
 
-#: ../lib/albumItem.php:274 ../lib/albumItem.php:275
+#: ../lib/albumItem.php:271 ../lib/albumItem.php:272
 msgid "Photo properties"
 msgstr ""
 
-#: ../lib/albumItem.php:287 ../lib/albumItem.php:288
+#: ../lib/albumItem.php:284 ../lib/albumItem.php:285
 #, php-format
 msgid "%s actions"
 msgstr ""
@@ -3014,11 +3018,11 @@
 msgid "Orientation of vote choices"
 msgstr ""
 
-#: ../poll_properties.php:108 ../rotate_photo.php:82
+#: ../poll_properties.php:108 ../rotate_photo.php:96
 msgid "Horizontal"
 msgstr ""
 
-#: ../poll_properties.php:108 ../rotate_photo.php:85
+#: ../poll_properties.php:108 ../rotate_photo.php:102
 msgid "Vertical"
 msgstr ""
 
@@ -3051,7 +3055,7 @@
 msgid "Results Breakdown"
 msgstr ""
 
-#: ../poll_results.php:148 ../view_album.php:501 ../view_album.php:786
+#: ../poll_results.php:148 ../view_album.php:504 ../view_album.php:789
 #, php-format
 msgid "Album: %s"
 msgstr ""
@@ -3428,39 +3432,43 @@
 msgid "Change Size"
 msgstr ""
 
-#: ../rotate_photo.php:40 ../rotate_photo.php:46
+#: ../rotate_photo.php:42 ../rotate_photo.php:49
 msgid "Rotate/Flip Photo"
 msgstr ""
 
-#: ../rotate_photo.php:51
+#: ../rotate_photo.php:54
 msgid "Rotating/Flipping photo."
 msgstr ""
 
-#: ../rotate_photo.php:53 ../watermark_album.php:65
+#: ../rotate_photo.php:56 ../watermark_album.php:65
 msgid "(this may take a while)"
 msgstr ""
 
-#: ../rotate_photo.php:62
+#: ../rotate_photo.php:65
 msgid "Manipulate again?"
 msgstr ""
 
-#: ../rotate_photo.php:64
+#: ../rotate_photo.php:67
 msgid "How do you want to manipulate this photo?"
 msgstr ""
 
-#: ../rotate_photo.php:70
-msgid "Rotate"
+#: ../rotate_photo.php:77
+msgid "Clockwise 90&deg;"
+msgstr ""
+
+#: ../rotate_photo.php:83
+msgid "180&deg;"
 msgstr ""
 
-#: ../rotate_photo.php:73
-msgid "Counter-Clockwise"
+#: ../rotate_photo.php:89
+msgid "Counter-Clockwise 90&deg;"
 msgstr ""
 
-#: ../rotate_photo.php:79
-msgid "Clockwise"
+#: ../rotate_photo.php:110
+msgid "Rotate"
 msgstr ""
 
-#: ../rotate_photo.php:80
+#: ../rotate_photo.php:114
 msgid "Flip"
 msgstr ""
 
@@ -4328,399 +4336,418 @@
 msgid "You can change your username to any combination of letters and digits."
 msgstr ""
 
-#: ../util.php:154
+#: ../util.php:156
 #, php-format
 msgid "Executing: %s"
 msgstr ""
 
-#: ../util.php:161
+#: ../util.php:163
 msgid "Results:"
 msgstr ""
 
-#: ../util.php:165
+#: ../util.php:167
 msgid "none"
 msgstr ""
 
-#: ../util.php:170
+#: ../util.php:172
 msgid "Debug messages:"
 msgstr ""
 
-#: ../util.php:181
+#: ../util.php:183
 #, php-format
 msgid "Status: %s (expected %s)"
 msgstr ""
 
-#: ../util.php:206
+#: ../util.php:208
 #, php-format
 msgid "Getting Dimension of file: %s"
 msgstr ""
 
-#: ../util.php:209
+#: ../util.php:211
 msgid "The file does not exist ?!"
 msgstr ""
 
-#: ../util.php:216
+#: ../util.php:218
 #, php-format
 msgid "Dimensions: x: %d y: %d"
 msgstr ""
 
-#: ../util.php:221
+#: ../util.php:223
 #, php-format
 msgid "PHP's %s function is unable to determine dimensions."
 msgstr ""
 
-#: ../util.php:235
+#: ../util.php:237
 msgid "You have no graphics package configured for use!"
 msgstr ""
 
-#: ../util.php:258
+#: ../util.php:260
 msgid "Unable to determine image dimensions!"
 msgstr ""
 
-#: ../util.php:432
+#: ../util.php:434
 #, php-format
 msgid "Can't write to %s."
 msgstr ""
 
-#: ../util.php:439
+#: ../util.php:441
 #, php-format
 msgid "Can't read %s."
 msgstr ""
 
-#: ../util.php:661
+#: ../util.php:663
 #, php-format
 msgid "Item Capture Date : %s"
 msgstr ""
 
-#: ../util.php:706
+#: ../util.php:708
 #, php-format
 msgid "Could not open lock file (%s) for writing!"
 msgstr ""
 
-#: ../util.php:711
+#: ../util.php:713
 #, php-format
 msgid "Could not acquire lock (%s)!"
 msgstr ""
 
-#: ../util.php:794
+#: ../util.php:796
 #, php-format
 msgid "extension of file %s is %s"
 msgstr ""
 
-#: ../util.php:903
+#: ../util.php:905
 #, php-format
 msgid "Extracting: %s with %s"
 msgstr ""
 
-#: ../util.php:921
+#: ../util.php:923
 #, php-format
 msgid "%s with extension %s is not an supported archive."
 msgstr ""
 
-#: ../util.php:935
+#: ../util.php:938
 msgid "No Support for creating Zips"
 msgstr ""
 
-#: ../util.php:938
+#: ../util.php:941
 #, php-format
 msgid "Creating Zipfile with %s"
 msgstr ""
 
-#: ../util.php:952 ../util.php:1833
+#: ../util.php:955
 #, php-format
 msgid "Your tempfolder is not writeable! Please check permissions of this dir: %s"
 msgstr ""
 
-#: ../util.php:988
+#: ../util.php:987
 #, php-format
 msgid "Processing file: %s"
 msgstr ""
 
-#: ../util.php:991
+#: ../util.php:990
 #, php-format
 msgid "Processing file '%s' as archive"
 msgstr ""
 
-#: ../util.php:994
+#: ../util.php:993
 #, php-format
 msgid "Skipping %s (%s support not enabled)"
 msgstr ""
 
-#: ../util.php:1003
+#: ../util.php:1002
 msgid "Getting archive content Filenames"
 msgstr ""
 
-#: ../util.php:1021
+#: ../util.php:1020
 msgid "No Metadata"
 msgstr ""
 
-#: ../util.php:1025
+#: ../util.php:1024
 msgid "Processing files in archive"
 msgstr ""
 
-#: ../util.php:1031
+#: ../util.php:1030
 #, php-format
 msgid "%d. %s"
 msgstr ""
 
-#: ../util.php:1034
+#: ../util.php:1033
 #, php-format
 msgid "Could not extract %s"
 msgstr ""
 
-#: ../util.php:1154
+#: ../util.php:1153
 #, php-format
 msgid "Adding %s"
 msgstr ""
 
-#: ../util.php:1174
+#: ../util.php:1173
 #, php-format
 msgid "Need help?  Look in the  %s%s FAQ%s"
 msgstr ""
 
-#: ../util.php:1179
+#: ../util.php:1178
 #, php-format
 msgid "Skipping %s (can't handle %s format)"
 msgstr ""
 
-#: ../util.php:1292
+#: ../util.php:1291
 #, php-format
 msgid "Cannot open logfile: %s"
 msgstr ""
 
-#: ../util.php:1460
+#: ../util.php:1459
 #, php-format
 msgid "Parsing for csv data in file: %s"
 msgstr ""
 
-#: ../util.php:1476
+#: ../util.php:1475
 msgid "csv result:"
 msgstr ""
 
-#: ../util.php:1645
+#: ../util.php:1649
 #, php-format
 msgid "MIMEtype of file %s is %s"
 msgstr ""
 
-#: ../util.php:1735
+#: ../util.php:1739
 #, php-format
 msgid "%s sent you an E-C@rd."
 msgstr ""
 
-#: ../view_album.php:211
+#: ../util.php:1837
+#, 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
+#, php-format
+msgid "'%s' seems not to be a valid file. Download aborted."
+msgstr ""
+
+#: ../util.php:1884
+#, php-format
+msgid "The file '%s' seems not inside Gallery tempdir %s, download aborted."
+msgstr ""
+
+#: ../util.php:1889
+msgid "We are trying to download the tempdir itself ?! Download aborted."
+msgstr ""
+
+#: ../view_album.php:214
 #, php-format
 msgid "1 sub-album"
 msgid_plural "%d sub-albums"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:211
+#: ../view_album.php:214
 msgid "No albums"
 msgstr ""
 
-#: ../view_album.php:213
+#: ../view_album.php:216
 msgid "0 pages"
 msgstr ""
 
-#: ../view_album.php:216
+#: ../view_album.php:219
 #, php-format
 msgid "%s and %s in this album on %s"
 msgstr ""
 
-#: ../view_album.php:219
+#: ../view_album.php:222
 #, php-format
 msgid "%s and %s in this album"
 msgstr ""
 
-#: ../view_album.php:222
+#: ../view_album.php:225
 #, php-format
 msgid "%s in this album on %s"
 msgstr ""
 
-#: ../view_album.php:225
+#: ../view_album.php:228
 #, php-format
 msgid "%s in this album"
 msgstr ""
 
-#: ../view_album.php:232
+#: ../view_album.php:235
 #, php-format
 msgid "%s are hidden"
 msgstr ""
 
-#: ../view_album.php:234
+#: ../view_album.php:237
 #, php-format
 msgid "%s is hidden"
 msgstr ""
 
-#: ../view_album.php:244
+#: ../view_album.php:247
 msgid "Add photos"
 msgstr ""
 
-#: ../view_album.php:250
+#: ../view_album.php:253
 msgid "Delete this album"
 msgstr ""
 
-#: ../view_album.php:255
+#: ../view_album.php:258
 msgid "Delete this (sub)album"
 msgstr ""
 
-#: ../view_album.php:264
+#: ../view_album.php:267
 msgid "Rename album"
 msgstr ""
 
-#: ../view_album.php:271
+#: ../view_album.php:274
 msgid "New nested album"
 msgstr ""
 
-#: ../view_album.php:277
+#: ../view_album.php:280
 msgid "Edit captions"
 msgstr ""
 
-#: ../view_album.php:283
+#: ../view_album.php:286
 msgid "Sort items"
 msgstr ""
 
-#: ../view_album.php:289
+#: ../view_album.php:292
 msgid "Resize all"
 msgstr ""
 
-#: ../view_album.php:295
+#: ../view_album.php:298
 msgid "Rebuild thumbs"
 msgstr ""
 
-#: ../view_album.php:301
+#: ../view_album.php:304
 msgid "Properties"
 msgstr ""
 
-#: ../view_album.php:307
+#: ../view_album.php:310
 msgid "Rearrange items"
 msgstr ""
 
-#: ../view_album.php:319
+#: ../view_album.php:322
 msgid "Poll results"
 msgstr ""
 
-#: ../view_album.php:325
+#: ../view_album.php:328
 msgid "Poll reset"
 msgstr ""
 
-#: ../view_album.php:331
+#: ../view_album.php:334
 msgid "View comments"
 msgstr ""
 
-#: ../view_album.php:337
+#: ../view_album.php:340
 msgid "Watermark album"
 msgstr ""
 
-#: ../view_album.php:395
+#: ../view_album.php:398
 msgid "Album Actions"
 msgstr ""
 
-#: ../view_album.php:485
+#: ../view_album.php:488
 msgid "You have no votes recorded for this poll."
 msgstr ""
 
-#: ../view_album.php:489
+#: ../view_album.php:492
 msgid "Your current choices are"
 msgstr ""
 
-#: ../view_album.php:526
+#: ../view_album.php:529
 msgid "See full poll results"
 msgstr ""
 
-#: ../view_album.php:560
+#: ../view_album.php:563
 msgid ", "
 msgstr ""
 
-#: ../view_album.php:566
+#: ../view_album.php:569
 #, php-format
 msgid "To vote for an image, click on %s."
 msgstr ""
 
-#: ../view_album.php:567
+#: ../view_album.php:570
 #, php-format
 msgid "You MUST click on %s for your vote to be recorded."
 msgstr ""
 
-#: ../view_album.php:568 ../view_album.php:584 ../view_album.php:922
+#: ../view_album.php:571 ../view_album.php:587 ../view_album.php:925
 msgid "Vote"
 msgstr ""
 
-#: ../view_album.php:572
+#: ../view_album.php:575
 #, php-format
 msgid "You have a total of %s and can change them if you wish."
 msgstr ""
 
-#: ../view_album.php:573
+#: ../view_album.php:576
 #, php-format
 msgid "1 vote"
 msgid_plural "%d votes"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:576
+#: ../view_album.php:579
 msgid "You can change your choices if you wish."
 msgstr ""
 
-#: ../view_album.php:727 ../view_album.php:728
+#: ../view_album.php:730 ../view_album.php:731
 #, php-format
 msgid "%dkB"
 msgstr ""
 
-#: ../view_album.php:775
+#: ../view_album.php:778
 msgid "highlight"
 msgstr ""
 
-#: ../view_album.php:790
+#: ../view_album.php:793
 msgid "No description"
 msgstr ""
 
-#: ../view_album.php:798
+#: ../view_album.php:801
 #, php-format
 msgid "Last change: %s"
 msgstr ""
 
-#: ../view_album.php:801
+#: ../view_album.php:804
 #, php-format
 msgid "Contains: %s"
 msgstr ""
 
-#: ../view_album.php:801
+#: ../view_album.php:804
 #, php-format
 msgid "1 item"
 msgid_plural "%d items"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:817
+#: ../view_album.php:820
 #, php-format
 msgid "Viewed: %s"
 msgstr ""
 
-#: ../view_album.php:842
+#: ../view_album.php:845
 #, php-format
 msgid "Viewed: 1 time."
 msgid_plural "Viewed: %d times."
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../view_album.php:900
+#: ../view_album.php:903
 msgid "Hey! Add some photos."
 msgstr ""
 
-#: ../view_album.php:902
+#: ../view_album.php:905
 msgid "This album is empty."
 msgstr ""
 
-#: ../view_album.php:947
+#: ../view_album.php:950
 msgid "Email me when one of the following actions are done to this album:"
 msgstr ""
 
-#: ../view_album.php:952
+#: ../view_album.php:955
 msgid "Comments are added"
 msgstr ""
 
-#: ../view_album.php:955
+#: ../view_album.php:958
 msgid "Other changes are made"
 msgstr ""
 
diff -Naur gallery-1.5.2-pl2/poll_properties.php gallery-1.5.3/poll_properties.php
--- gallery-1.5.2-pl2/poll_properties.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/poll_properties.php	2006-03-27 17:31:25.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.27.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: poll_properties.php,v 1.28.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/poll_results.php gallery-1.5.3/poll_results.php
--- gallery-1.5.2-pl2/poll_results.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/poll_results.php	2006-03-27 17:31:25.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.24.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: poll_results.php,v 1.25.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/progress_uploading.php gallery-1.5.3/progress_uploading.php
--- gallery-1.5.2-pl2/progress_uploading.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/progress_uploading.php	2006-03-27 17:31: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: progress_uploading.php,v 1.36.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: progress_uploading.php,v 1.37.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/publish_xp_docs.php gallery-1.5.3/publish_xp_docs.php
--- gallery-1.5.2-pl2/publish_xp_docs.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/publish_xp_docs.php	2006-03-27 17:31: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: publish_xp_docs.php,v 1.25.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: publish_xp_docs.php,v 1.26.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/publish_xp.php gallery-1.5.3/publish_xp.php
--- gallery-1.5.2-pl2/publish_xp.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/publish_xp.php	2006-03-27 17:31: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: publish_xp.php,v 1.42.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: publish_xp.php,v 1.43.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/rearrange.php gallery-1.5.3/rearrange.php
--- gallery-1.5.2-pl2/rearrange.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/rearrange.php	2006-03-27 17:31: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: rearrange.php,v 1.6.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: rearrange.php,v 1.7.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/register.php gallery-1.5.3/register.php
--- gallery-1.5.2-pl2/register.php	2006-01-18 19:06:02.000000000 +0100
+++ gallery-1.5.3/register.php	2006-03-27 17:31:25.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.34.2.2 2006/01/18 18:06:02 jenst Exp $
+ * $Id: register.php,v 1.36.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/rename_album.php gallery-1.5.3/rename_album.php
--- gallery-1.5.2-pl2/rename_album.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/rename_album.php	2006-03-27 17:31: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: rename_album.php,v 1.61.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: rename_album.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/reset_votes.php gallery-1.5.3/reset_votes.php
--- gallery-1.5.2-pl2/reset_votes.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/reset_votes.php	2006-03-27 17:31:25.000000000 +0200
@@ -1,6 +1,6 @@
 <?php
 /*
-   $Id: reset_votes.php,v 1.17.2.1 2006/01/06 06:31:30 jenst Exp $
+   $Id: reset_votes.php,v 1.18.2.1 2006/03/27 15:31:25 jenst Exp $
 
  * Gallery - a web based photo album viewer and editor
  * Copyright (C) 2000-2006 Bharat Mediratta
diff -Naur gallery-1.5.2-pl2/resize_photo.php gallery-1.5.3/resize_photo.php
--- gallery-1.5.2-pl2/resize_photo.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/resize_photo.php	2006-03-27 17:31: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: resize_photo.php,v 1.59.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: resize_photo.php,v 1.62.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/rotate_photo.php gallery-1.5.3/rotate_photo.php
--- gallery-1.5.2-pl2/rotate_photo.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/rotate_photo.php	2006-04-04 23:58:23.000000000 +0200
@@ -1,24 +1,24 @@
 <?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: rotate_photo.php,v 1.52.2.1 2006/01/06 06:31:30 jenst Exp $
- */
+* 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: rotate_photo.php,v 1.53.2.2 2006/04/04 21:58:23 jenst Exp $
+*/
 ?>
 <?php
 
@@ -27,9 +27,11 @@
 list($index, $rotate) = getRequestVar(array('index', 'rotate'));
 
 // Hack check
-if (!$gallery->user->canWriteToAlbum($gallery->album) && !($gallery->album->isItemOwner($gallery->user->getUid(), $index) && $gallery->album->getItemOwnerModify())) {
-	echo _("You are not allowed to perform this action!");
-	exit;
+if (!$gallery->user->canWriteToAlbum($gallery->album) &&
+!($gallery->album->isItemOwner($gallery->user->getUid(), $index) &&
+$gallery->album->getItemOwnerModify())) {
+    echo _("You are not allowed to perform this action!");
+    exit;
 }
 
 doctype();
@@ -42,57 +44,90 @@
   <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
   <META HTTP-EQUIV="expires" CONTENT="0"> 
 </head>
+<body dir="<?php echo $gallery->direction ?>" class="g-popup">
 <body dir="<?php echo $gallery->direction ?>" class="popupbody">
-<div class="popuphead"><?php echo _("Rotate/Flip Photo") ?></div>
+  <div class="popuphead"><?php echo _("Rotate/Flip Photo") ?></div>
 <div class="popup" align="center">
 <?php
 if ($gallery->session->albumName && isset($index)) {
-	if (isset($rotate) && !empty($rotate)) {
-		echo _("Rotating/Flipping photo.");
-		echo "\n<br>";
-		echo _("(this may take a while)");
-
-		my_flush();
-                set_time_limit($gallery->app->timeLimit);
-		$gallery->album->rotatePhoto($index, $rotate);
-		$gallery->album->save(array(i18n("Image %s rotated"),
-				       	makeAlbumURL($gallery->album->fields["name"], 
-						$gallery->album->getPhotoId($index))));
-		reload();
-		print "<p>" . _("Manipulate again?");
-	} else {
-		echo _("How do you want to manipulate this photo?");
-	} 
-?>
-<br><br>
-<?php 
-	$args = array("albumName" => $gallery->album->fields["name"], "index" => $index, 'type' => 'popup');
-	echo _("Rotate") .": [ ";
-	$args["rotate"] = "90";
+    if (isset($rotate) && !empty($rotate)) {
+        echo _("Rotating/Flipping photo.");
+        echo "\n<br>";
+        echo _("(this may take a while)");
+
+        my_flush();
+        set_time_limit($gallery->app->timeLimit);
+        $gallery->album->rotatePhoto($index, $rotate);
+        $gallery->album->save(array(i18n("Image %s rotated"),
+          makeAlbumURL($gallery->album->fields["name"],
+            $gallery->album->getPhotoId($index))));
+        reload();
+        print "<p>" . _("Manipulate again?");
+    } else {
+        echo _("How do you want to manipulate this photo?");
+    }
+
+    echo "\n<br><br>";
+
+    $args = array("albumName" => $gallery->album->fields["name"], "index" => $index, 'type' => 'popup');
+
+    $args["rotate"] = "-90";
+    $rotateElements[] = galleryLink(
+      makeGalleryUrl("rotate_photo.php", $args),
+      getIconText('imageedit/rotate-90.gif', _("Clockwise 90&deg;"))
+    );
+
+    $args["rotate"] = "180";
+    $rotateElements[] = galleryLink(
+      makeGalleryUrl("rotate_photo.php", $args),
+      getIconText('imageedit/rotate-180.gif', _("180&deg;"))
+    );
+
+    $args["rotate"] = "90";
+    $rotateElements[] = galleryLink(
+      makeGalleryUrl("rotate_photo.php", $args),
+      getIconText('imageedit/rotate-270.gif', _("Counter-Clockwise 90&deg;"))
+    );
+
+
+    $args["rotate"] = "fh";
+    $rotateElements[] = galleryLink(
+      makeGalleryUrl("rotate_photo.php", $args),
+      getIconText('imageedit/mirror.gif', _("Horizontal"))
+    );
+
+    $args["rotate"] = "fl";
+    $rotateElements[] = galleryLink(
+      makeGalleryUrl("rotate_photo.php", $args),
+      getIconText('imageedit/flip.gif', _("Vertical"))
+    );
+
+    $actionTable = new galleryTable();
+    $actionTable->setColumnCount(5);
+    $actionTable->setAttrs(array('class' => 'g-iconmenu'));
+
+    $actionTable->addElement(array(
+        'content' => "<b>". _("Rotate") ."</b>", 
+        'cellArgs' => array('colspan' => 3,'align' => 'center'))
+    );
+    $actionTable->addElement(array(
+        'content' => "<b>". _("Flip") ."</b>" ,
+        'cellArgs' => array('colspan' => 2,'align' => 'center'))
+    );
+    foreach ($rotateElements as $element) {
+        $actionTable->addElement(array('content' => $element));
+    }
+
+    echo $actionTable->render();
 ?>
-<a href="<?php echo makeGalleryUrl("rotate_photo.php", $args) ?>"><?php echo _("Counter-Clockwise") ?> 90&deg;</a>
- | 
-	<?php $args["rotate"] = "180"; ?>
-<a href="<?php echo makeGalleryUrl("rotate_photo.php", $args) ?>">180&deg;</a>
- | 
-	<?php $args["rotate"] = "-90"; ?>
-<a href="<?php echo makeGalleryUrl("rotate_photo.php", $args) ?>"><?php echo _("Clockwise") ?> 90&deg;</a>
-]<br><br><?php echo _("Flip") ?>: [ 
-	<?php $args["rotate"] = "fh"; ?>
-<a href="<?php echo makeGalleryUrl("rotate_photo.php", $args) ?>"><?php echo _("Horizontal") ?></a>
- | 
-	<?php $args["rotate"] = "fv"; ?>
-<a href="<?php echo makeGalleryUrl("rotate_photo.php", $args) ?>"><?php echo _("Vertical") ?></a>
- ]<br><br>
-<a href="javascript:void(parent.close())"><?php echo _("Close") ?></a>
 <br>
+<input type="button" onClick="javascript:void(parent.close())" value="<?php echo _("Close") ?>" class="g-button">
 
 <p>
-<?php echo $gallery->album->getThumbnailTag($index) ?>
-
-<?php
+<?php 
+    echo $gallery->album->getThumbnailTag($index);
 } else {
-	echo gallery_error(_("no album / index specified"));
+    echo gallery_error(_("no album / index specified"));
 }
 ?>
 </div>
diff -Naur gallery-1.5.2-pl2/rss.php gallery-1.5.3/rss.php
--- gallery-1.5.2-pl2/rss.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/rss.php	2006-03-27 17:31: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: rss.php,v 1.23.2.1 2006/01/06 06:31:30 jenst Exp $
+ * $Id: rss.php,v 1.24.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/save_photos.php gallery-1.5.3/save_photos.php
--- gallery-1.5.2-pl2/save_photos.php	2006-01-08 21:07:15.000000000 +0100
+++ gallery-1.5.3/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.124.2.2 2006/01/08 20:07:15 jenst Exp $
+ * $Id: save_photos.php,v 1.126.2.2 2006/04/06 11:49:10 jenst Exp $
  */
 
 /**
@@ -304,7 +304,7 @@
 
     if ($name) {
         if (!empty($usercaption) && is_array($usercaption)) {
-            $caption = strip_tags(array_shift($usercaption));
+            $caption = array_shift($usercaption);
         } else {
             $caption = '';
         }
diff -Naur gallery-1.5.2-pl2/search.php gallery-1.5.3/search.php
--- gallery-1.5.2-pl2/search.php	2006-01-06 07:31:30.000000000 +0100
+++ gallery-1.5.3/search.php	2006-03-27 17:31: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: search.php,v 1.78.2.2 2006/01/06 06:31:30 jenst Exp $
+ * $Id: search.php,v 1.80.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/session.php gallery-1.5.3/session.php
--- gallery-1.5.2-pl2/session.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/session.php	2006-03-27 17:31: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: session.php,v 1.52.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: session.php,v 1.53.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/backup_albums.php gallery-1.5.3/setup/backup_albums.php
--- gallery-1.5.2-pl2/setup/backup_albums.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/backup_albums.php	2006-03-27 17:32:10.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.24.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: backup_albums.php,v 1.25.2.1 2006/03/27 15:32:10 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/check_imagemagick.php gallery-1.5.3/setup/check_imagemagick.php
--- gallery-1.5.2-pl2/setup/check_imagemagick.php	2006-01-10 06:30:53.000000000 +0100
+++ gallery-1.5.3/setup/check_imagemagick.php	2006-03-27 17:32: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: check_imagemagick.php,v 1.31.2.2 2006/01/10 05:30:53 jenst Exp $
+ * $Id: check_imagemagick.php,v 1.33.2.1 2006/03/27 15:32:10 jenst Exp $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.2-pl2/setup/check.inc gallery-1.5.3/setup/check.inc
--- gallery-1.5.2-pl2/setup/check.inc	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/check.inc	2006-03-27 17:32: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: check.inc,v 1.50.2.2 2006/01/06 06:32:46 jenst Exp $
+ * $Id: check.inc,v 1.52.2.1 2006/03/27 15:32:10 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/setup/check_mail.php gallery-1.5.3/setup/check_mail.php
--- gallery-1.5.2-pl2/setup/check_mail.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/check_mail.php	2006-03-27 17:32: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_mail.php,v 1.16.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: check_mail.php,v 1.17.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.2-pl2/setup/check_netpbm.php gallery-1.5.3/setup/check_netpbm.php
--- gallery-1.5.2-pl2/setup/check_netpbm.php	2006-01-10 06:30:53.000000000 +0100
+++ gallery-1.5.3/setup/check_netpbm.php	2006-03-27 17:32: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_netpbm.php,v 1.38.2.2 2006/01/10 05:30:53 jenst Exp $
+ * $Id: check_netpbm.php,v 1.40.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.2-pl2/setup/check_versions.php gallery-1.5.3/setup/check_versions.php
--- gallery-1.5.2-pl2/setup/check_versions.php	2006-01-10 06:30:53.000000000 +0100
+++ gallery-1.5.3/setup/check_versions.php	2006-03-27 17:32: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.27.2.2 2006/01/10 05:30:53 jenst Exp $
+ * $Id: check_versions.php,v 1.29.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.2-pl2/setup/config_data.inc gallery-1.5.3/setup/config_data.inc
--- gallery-1.5.2-pl2/setup/config_data.inc	2006-01-10 06:41:32.000000000 +0100
+++ gallery-1.5.3/setup/config_data.inc	2006-03-27 17:32: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: config_data.inc,v 1.296.2.4 2006/01/10 05:41:32 jenst Exp $
+ * $Id: config_data.inc,v 1.301.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/confirm.inc gallery-1.5.3/setup/confirm.inc
--- gallery-1.5.2-pl2/setup/confirm.inc	2006-01-10 06:30:53.000000000 +0100
+++ gallery-1.5.3/setup/confirm.inc	2006-03-27 17:32: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: confirm.inc,v 1.108.2.3 2006/01/10 05:30:53 jenst Exp $
+ * $Id: confirm.inc,v 1.111.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 
diff -Naur gallery-1.5.2-pl2/setup/constants.inc gallery-1.5.3/setup/constants.inc
--- gallery-1.5.2-pl2/setup/constants.inc	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/constants.inc	2006-03-27 17:32: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: constants.inc,v 1.48.2.3 2006/01/06 06:32:46 jenst Exp $
+ * $Id: constants.inc,v 1.52.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/defaults.inc gallery-1.5.3/setup/defaults.inc
--- gallery-1.5.2-pl2/setup/defaults.inc	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/defaults.inc	2006-03-27 17:32: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: defaults.inc,v 1.35.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: defaults.inc,v 1.36.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <input type="hidden" name="this_page" value="defaults">
diff -Naur gallery-1.5.2-pl2/setup/diagnostics.php gallery-1.5.3/setup/diagnostics.php
--- gallery-1.5.2-pl2/setup/diagnostics.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/diagnostics.php	2006-03-27 17:32: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: diagnostics.php,v 1.26.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: diagnostics.php,v 1.27.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php 
diff -Naur gallery-1.5.2-pl2/setup/frame_test.php gallery-1.5.3/setup/frame_test.php
--- gallery-1.5.2-pl2/setup/frame_test.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/frame_test.php	2006-03-27 17:32: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: frame_test.php,v 1.8.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: frame_test.php,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/ghcc.php gallery-1.5.3/setup/ghcc.php
--- gallery-1.5.2-pl2/setup/ghcc.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/ghcc.php	2006-03-27 17:32: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: ghcc.php,v 1.10.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: ghcc.php,v 1.11.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/gpl.txt gallery-1.5.3/setup/gpl.txt
--- gallery-1.5.2-pl2/setup/gpl.txt	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/gpl.txt	2006-03-27 17:32:13.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.8.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: gpl.txt,v 1.9.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
diff -Naur gallery-1.5.2-pl2/setup/index.php gallery-1.5.3/setup/index.php
--- gallery-1.5.2-pl2/setup/index.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/index.php	2006-03-27 17:32: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: index.php,v 1.77.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: index.php,v 1.78.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/init.php gallery-1.5.3/setup/init.php
--- gallery-1.5.2-pl2/setup/init.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/init.php	2006-03-27 17:32: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: init.php,v 1.54.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: init.php,v 1.55.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/login.inc gallery-1.5.3/setup/login.inc
--- gallery-1.5.2-pl2/setup/login.inc	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/login.inc	2006-03-27 17:32: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: login.inc,v 1.19.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: login.inc,v 1.20.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/phpinfo.php gallery-1.5.3/setup/phpinfo.php
--- gallery-1.5.2-pl2/setup/phpinfo.php	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/phpinfo.php	2006-03-27 17:32: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: phpinfo.php,v 1.12.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: phpinfo.php,v 1.13.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/session_test.php gallery-1.5.3/setup/session_test.php
--- gallery-1.5.2-pl2/setup/session_test.php	2006-02-02 01:32:48.000000000 +0100
+++ gallery-1.5.3/setup/session_test.php	2006-03-27 17:32: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: session_test.php,v 1.29.2.2 2006/02/02 00:32:48 jenst Exp $
+ * $Id: session_test.php,v 1.30.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/setup/write.inc gallery-1.5.3/setup/write.inc
--- gallery-1.5.2-pl2/setup/write.inc	2006-01-06 07:32:46.000000000 +0100
+++ gallery-1.5.3/setup/write.inc	2006-03-27 17:32: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: write.inc,v 1.69.2.1 2006/01/06 06:32:46 jenst Exp $
+ * $Id: write.inc,v 1.70.2.1 2006/03/27 15:32:13 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/skins/jenskin/css/screen.css gallery-1.5.3/skins/jenskin/css/screen.css
--- gallery-1.5.2-pl2/skins/jenskin/css/screen.css	2006-01-08 21:07:18.000000000 +0100
+++ gallery-1.5.3/skins/jenskin/css/screen.css	2006-03-27 17:32:14.000000000 +0200
@@ -3,7 +3,7 @@
    album 'bgcolor', 'background', and 'textcolor' properties.
 */
 /*
-  $Id: screen.css,v 1.6.2.2 2006/01/08 20:07:18 jenst Exp $
+  $Id: screen.css,v 1.8.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
diff -Naur gallery-1.5.2-pl2/slideshow.php gallery-1.5.3/slideshow.php
--- gallery-1.5.2-pl2/slideshow.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/slideshow.php	2006-03-27 17:31: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: slideshow.php,v 1.80.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: slideshow.php,v 1.81.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/sort_album.php gallery-1.5.3/sort_album.php
--- gallery-1.5.2-pl2/sort_album.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/sort_album.php	2006-03-27 17:31: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: sort_album.php,v 1.37.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: sort_album.php,v 1.38.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/stamp_preview.php gallery-1.5.3/stamp_preview.php
--- gallery-1.5.2-pl2/stamp_preview.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/stamp_preview.php	2006-03-27 17:31:25.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: stamp_preview.php,v 1.2.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: stamp_preview.php,v 1.3.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/stats-wizard.php gallery-1.5.3/stats-wizard.php
--- gallery-1.5.2-pl2/stats-wizard.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/stats-wizard.php	2006-03-27 17:31: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: stats-wizard.php,v 1.12.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: stats-wizard.php,v 1.13.2.1 2006/03/27 15:31:25 jenst Exp $
  *
  */
 ?>
diff -Naur gallery-1.5.2-pl2/tools/build_manifest.php gallery-1.5.3/tools/build_manifest.php
--- gallery-1.5.2-pl2/tools/build_manifest.php	2006-01-06 07:32:51.000000000 +0100
+++ gallery-1.5.3/tools/build_manifest.php	2006-03-27 17:32:14.000000000 +0200
@@ -18,7 +18,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: build_manifest.php,v 1.14.2.1 2006/01/06 06:32:51 jenst Exp $
+ * $Id: build_manifest.php,v 1.15.2.1 2006/03/27 15:32:14 jenst Exp $
  */
 
 /*
diff -Naur gallery-1.5.2-pl2/tools/despam-comments.php gallery-1.5.3/tools/despam-comments.php
--- gallery-1.5.2-pl2/tools/despam-comments.php	2006-01-06 07:32:51.000000000 +0100
+++ gallery-1.5.3/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.22.2.1 2006/01/06 06:32:51 jenst Exp $
+ * $Id: despam-comments.php,v 1.23.2.1 2006/03/27 15:32:14 jenst Exp $
  *
  * 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.2-pl2/tools/find_orphans.php gallery-1.5.3/tools/find_orphans.php
--- gallery-1.5.2-pl2/tools/find_orphans.php	2006-01-06 07:32:51.000000000 +0100
+++ gallery-1.5.3/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.25.2.1 2006/01/06 06:32:51 jenst Exp $
+ * $Id: find_orphans.php,v 1.26.2.1 2006/03/27 15:32:14 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/tools/validate_albums.php gallery-1.5.3/tools/validate_albums.php
--- gallery-1.5.2-pl2/tools/validate_albums.php	2006-01-06 07:32:51.000000000 +0100
+++ gallery-1.5.3/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.5.2.1 2006/01/06 06:32:51 jenst Exp $
+ * $Id: validate_albums.php,v 1.6.2.1 2006/03/27 15:32:14 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/upgrade_album.php gallery-1.5.3/upgrade_album.php
--- gallery-1.5.2-pl2/upgrade_album.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/upgrade_album.php	2006-03-27 17:31: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: upgrade_album.php,v 1.43.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: upgrade_album.php,v 1.44.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/upgrade_users.php gallery-1.5.3/upgrade_users.php
--- gallery-1.5.2-pl2/upgrade_users.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/upgrade_users.php	2006-03-27 17:31: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: upgrade_users.php,v 1.14.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: upgrade_users.php,v 1.15.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/user_preferences.php gallery-1.5.3/user_preferences.php
--- gallery-1.5.2-pl2/user_preferences.php	2006-01-18 19:06:02.000000000 +0100
+++ gallery-1.5.3/user_preferences.php	2006-03-27 17:31: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: user_preferences.php,v 1.47.2.3 2006/01/18 18:06:02 jenst Exp $
+ * $Id: user_preferences.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/util.php gallery-1.5.3/util.php
--- gallery-1.5.2-pl2/util.php	2006-02-07 03:21:42.000000000 +0100
+++ gallery-1.5.3/util.php	2006-03-28 12:54:51.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: util.php,v 1.563.2.7 2006/02/07 02:21:42 jenst Exp $
+ * $Id: util.php,v 1.569.2.2 2006/03/28 10:54:51 jenst Exp $
  */
 
 /**
@@ -41,7 +41,10 @@
         if (!isset($_REQUEST[$str])) {
             return null;
         }
-        $ret = &$_REQUEST[$str];
+        $ret = & $_REQUEST[$str];
+        //echo "\n<br>- Checking:". htmlspecialchars($str);
+        $ret = sanitizeInput($ret);
+
         if (get_magic_quotes_gpc() && !is_array($ret)) {
             $ret = stripslashes($ret);
         }
diff -Naur gallery-1.5.2-pl2/Version.php gallery-1.5.3/Version.php
--- gallery-1.5.2-pl2/Version.php	2006-02-07 03:32:39.000000000 +0100
+++ gallery-1.5.3/Version.php	2006-04-07 00:38:01.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.1542.2.37 2006/02/07 02:32:39 ckdake Exp $
+ * $Id: Version.php,v 1.1566.2.15 2006/04/06 22:38:01 ckdake Exp $
  */
 ?>
 <?php
 
-$gallery->version = '1.5.2-pl2';
+$gallery->version = '1.5.3';
 $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/02/07 02:32:39 $', 7, -1));
+$gallery->last_change = strtotime(substr('$Date: 2006/04/06 22:38:01 $', 7, -1));
 /*
  * PostNuke version info
  */
diff -Naur gallery-1.5.2-pl2/view_album.php gallery-1.5.3/view_album.php
--- gallery-1.5.2-pl2/view_album.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/view_album.php	2006-04-06 13:21:47.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.323.2.2 2006/01/06 06:31:31 jenst Exp $
+* $Id: view_album.php,v 1.327.2.3 2006/04/06 11:21:47 jenst Exp $
 */
 ?>
 <?php
@@ -106,7 +106,7 @@
 
 $fullWidth = $navigator["fullWidth"] . $navigator["widthUnits"];
 $upArrowURL = '<img src="' . getImagePath('nav_home.gif') . '" width="13" height="11" ' .
-  'alt="' . _("navigate UP") .'" title="' . _("navigate UP") .'" border="0">';
+  'alt="' . gTranslate('core', "navigate UP") .'" title="' . gTranslate('core', "navigate UP") .'" border="0">';
 
 if ($gallery->album->fields['returnto'] != 'no') {
     foreach ($gallery->album->getParentAlbums() as $navAlbum) {
@@ -126,8 +126,11 @@
   <title><?php echo $gallery->app->galleryTitle ?> :: <?php echo $gallery->album->fields["title"] ?></title>
   <?php common_header();
   /* RSS */
-  if ($gallery->app->rssEnabled == "yes" && !$gallery->session->offline) { ?>
-  <link rel="alternate" title="<?php echo sprintf(_("%s RSS"), $gallery->app->galleryTitle . " :: " . $gallery->album->fields["title"]) ?>" href="<?php echo $gallery->app->photoAlbumURL . "/rss.php?set_albumName=" . $gallery->album->fields["name"] ?>" type="application/rss+xml">
+  if ($gallery->app->rssEnabled == "yes" && !$gallery->session->offline) {
+  	$title = sprintf(gTranslate('core', "%s RSS"), $gallery->app->galleryTitle . " :: " . $gallery->album->fields["title"]);
+	$rssHref = $gallery->app->photoAlbumURL . "/rss.php?set_albumName=" . $gallery->album->fields["name"];
+  	?>
+  <link rel="alternate" title="<?php echo $title; ?>" href="<?php echo $rssHref; ?>" type="application/rss+xml">
   <?php
   }
   /* prefetching/navigation */
@@ -208,30 +211,30 @@
 <?php }
 
 $adminText = '';
-$albums_str = gTranslate('core', "1 sub-album", "%d sub-albums", $numAlbums, _("No albums"));
-$imags_str = gTranslate('core', "1 image", "%d images", $numPhotos, _("no images"));
-$pages_str = gTranslate('core', "1 page", "%d pages", $maxPages, _("0 pages"));
+$albums_str = gTranslate('core', "1 sub-album", "%d sub-albums", $numAlbums, gTranslate('core', "No albums"));
+$imags_str = gTranslate('core', "1 image", "%d images", $numPhotos, gTranslate('core', "no images"));
+$pages_str = gTranslate('core', "1 page", "%d pages", $maxPages, gTranslate('core', "0 pages"));
 
 if ($numAlbums && $maxPages > 1) {
-    $adminText .= sprintf(_("%s and %s in this album on %s"),
+    $adminText .= sprintf(gTranslate('core', "%s and %s in this album on %s"),
     $albums_str, $imags_str, $pages_str);
 } else if ($numAlbums) {
-    $adminText .= sprintf(_("%s and %s in this album"),
+    $adminText .= sprintf(gTranslate('core', "%s and %s in this album"),
     $albums_str, $imags_str);
 } else if ($maxPages > 1) {
-    $adminText .= sprintf(_("%s in this album on %s"),
+    $adminText .= sprintf(gTranslate('core', "%s in this album on %s"),
     $imags_str, $pages_str);
 } else {
-    $adminText .= sprintf(_("%s in this album"),
+    $adminText .= sprintf(gTranslate('core', "%s in this album"),
     $imags_str);
 }
 
 if ($gallery->user->canWriteToAlbum($gallery->album) &&
 !$gallery->session->offline) {
     $hidden = $gallery->album->numHidden();
-    $verb = _("%s are hidden");
+    $verb = gTranslate('core', "%s are hidden");
     if ($hidden == 1) {
-        $verb = _("%s is hidden");
+        $verb = gTranslate('core', "%s is hidden");
     }
     if ($hidden) {
         $adminText .= "(".sprintf($verb, $hidden).")";
@@ -241,18 +244,18 @@
 /* admin items for drop-down menu */
 $adminOptions = array(
     'add_photos'	=> array(
-        'name' 	=> _("Add photos"),
+        'name' 	=> gTranslate('core', "Add photos"),
         'requirements' => array('canAddToAlbum'),
         'action' 	=> 'popup',
         'value' 	=> makeGalleryUrl('add_photos_frame.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'delete_root_album'    => array(
-        'name' => _("Delete this album"),
+        'name' => gTranslate('core', "Delete this album"),
         'requirements' => array('canDeleteAlbum', 'albumIsRoot'),
         'action' => 'popup',
         'value' => makeGalleryUrl('delete_album.php', array('type' => 'popup'))),
     'delete_sub_album'    => array(
-        'name' => _("Delete this (sub)album"),
+        'name' => gTranslate('core', "Delete this (sub)album"),
         'requirements' => array('canDeleteAlbum', '!albumIsRoot'),
         'action' => 'popup',
         'value' => makeGalleryUrl('delete_photo.php', 
@@ -261,80 +264,80 @@
 				'id' => $gallery->album->fields["name"],
 				'albumDelete' => true))),
     'rename_album'    => array(
-        'name' => _("Rename album"),
+        'name' => gTranslate('core', "Rename album"),
         'requirements' => array('isAdminOrAlbumOwner'),
         'action' => 'popup',
         'value' => makeGalleryUrl('rename_album.php', array(
             'set_albumName' => $gallery->session->albumName,
             'type' => 'popup', 'useLoad' => 1))),
     'nested_album'    => array(
-        'name' => _("New nested album"),
+        'name' => gTranslate('core', "New nested album"),
         'requirements' => array('canCreateSubAlbum', 'notOffline'),
         'action' => 'url',
         'value' => doCommand('new-album',
             array('parentName' => $gallery->session->albumName), 'view_album.php')),
     'edit_captions'   => array(
-        'name' => _("Edit captions"),
+        'name' => gTranslate('core', "Edit captions"),
         'requirements' => array('canChangeText','notOffline'),
         'action' => 'url',
         'value' => makeGalleryUrl('captionator.php',
             array('set_albumName' => $gallery->session->albumName, 'page' => $page, 'perPage' => $perPage))),
     'sort_items'      => array(
-        'name' => _("Sort items"),
+        'name' => gTranslate('core', "Sort items"),
         'requirements' => array('canWriteToAlbum', 'photosExist'),
         'action' => 'popup',
         'value' => makeGalleryUrl('sort_album.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'resize_all'      => array(
-        'name' => _("Resize all"),
+        'name' => gTranslate('core', "Resize all"),
         'requirements' => array('canWriteToAlbum', 'photosExist'),
         'action' => 'popup',
         'value' => makeGalleryUrl('resize_photo.php',
             array('set_albumName' => $gallery->session->albumName, 'index' => 'all', 'type' => 'popup'))),
     'rebuild_thumbs'  => array(
-        'name' => _("Rebuild thumbs"),
+        'name' => gTranslate('core', "Rebuild thumbs"),
         'requirements' => array('canWriteToAlbum', 'photosExist'),
         'action' => 'popup',
         'value' => doCommand('remake-thumbnail',
             array('set_albumName' => $gallery->session->albumName, 'index' => 'all', 'type' => 'popup'))),
     'properties'      => array(
-        'name' => _("Properties"),
+        'name' => gTranslate('core', "Properties"),
         'requirements' => array('canWriteToAlbum'),
         'action' => 'popup',
         'value' => makeGalleryUrl('edit_appearance.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'rearrange' => array(
-        'name' => _("Rearrange items"),
+        'name' => gTranslate('core', "Rearrange items"),
         'requirements' => array('canWriteToAlbum', 'photosExist'),
         'action' => 'popup',
         'value' => makeGalleryUrl('rearrange.php', 
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'permissions'     => array(
-        'name' => _("Permissions"),
+        'name' => gTranslate('core', "Permissions"),
         'requirements' => array('isAdminOrAlbumOwner'),
         'action' => 'popup',
         'value' => makeGalleryUrl('album_permissions.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'poll_results'    => array(
-        'name' => _("Poll results"),
+        'name' => gTranslate('core', "Poll results"),
         'requirements' => array('isAdminOrAlbumOwner'),
         'action' => 'url',
         'value' => makeGalleryUrl('poll_results.php',
             array('set_albumName' => $gallery->session->albumName,))),
     'poll_reset'      => array(
-        'name' => _("Poll reset"),
+        'name' => gTranslate('core', "Poll reset"),
         'requirements' => array('isAdminOrAlbumOwner'),
         'action' => 'popup',
         'value' => makeGalleryUrl('reset_votes.php',
             array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'))),
     'view_comments'   => array(
-        'name' => _("View comments"),
+        'name' => gTranslate('core', "View comments"),
         'requirements' => array('isAdminOrAlbumOwner', 'allowComments', 'comments_enabled', 'hasComments'),
         'action' => 'url',
         'value' => makeGalleryUrl('view_comments.php',
             array('set_albumName' => $gallery->session->albumName))),
     'watermark_album'   => array(
-        'name' => _("Watermark album"),
+        'name' => gTranslate('core', "Watermark album"),
         'requirements' => array('isAdminOrAlbumOwner','photosExist','watermarkingEnabled'),
         'action' => 'popup',
         'value' => makeGalleryUrl('watermark_album.php',
@@ -399,7 +402,7 @@
 
 if ($gallery->album->fields["slideshow_type"] != "off" &&
 ($numPhotos != 0 || ($numVisibleItems != 0 && $gallery->album->fields['slideshow_recursive'] == "yes"))) {
-    $iconText = getIconText('display.gif', _("slideshow"));
+    $iconText = getIconText('display.gif', gTranslate('core', "slideshow"));
     $iconElements[] = '<a href="'
     . makeGalleryUrl("slideshow.php",
     array("set_albumName" => $albumName)) .'">'. $iconText .'</a>';
@@ -409,7 +412,7 @@
 if ( $numVisibleItems != 0 && ($gallery->app->comments_enabled == 'yes' && $gallery->album->lastCommentDate("no") != -1) &&
 ((isset($gallery->app->comments_overview_for_all) && $gallery->app->comments_overview_for_all == "yes") ||
 $gallery->user->canViewComments($gallery->album))) {
-    $iconText = getIconText('showcomment.gif', _("view&nbsp;comments"));
+    $iconText = getIconText('showcomment.gif', gTranslate('core', "view&nbsp;comments"));
     $iconElements[] = '<a href="'.
     makeGalleryUrl("view_comments.php",
     array("set_albumName" => $gallery->session->albumName)) . '">'. $iconText .'</a>';
@@ -417,12 +420,12 @@
 
 if (!$GALLERY_EMBEDDED_INSIDE && !$gallery->session->offline) {
     if ($gallery->user->isLoggedIn()) {
-        $iconText = getIconText('exit.gif', _("logout"));
+        $iconText = getIconText('exit.gif', gTranslate('core', "logout"));
         $iconElements[] = '<a href="'.
         doCommand("logout", array(), "view_album.php",
         array("page" => $page, 'set_albumName' => $albumName)) .'">'. $iconText .'</a>';
     } else {
-        $iconText = getIconText('identity.gif', _("login"));
+        $iconText = getIconText('identity.gif', gTranslate('core', "login"));
         $iconElements[] = popup_link($iconText, "login.php", false, true, 500, 500);
     }
 }
@@ -482,11 +485,11 @@
     }
     if (sizeof($my_choices) == 0
     && $gallery->album->getVoterClass() ==  "Logged in") {
-        print _("You have no votes recorded for this poll."). '<br>';
+        print gTranslate('core', "You have no votes recorded for this poll."). '<br>';
     }
     else if (sizeof($my_choices) > 0) {
         ksort($my_choices);
-        print _("Your current choices are");
+        print gTranslate('core', "Your current choices are");
         print "<table>\n";
         $nv_pairs=$gallery->album->getVoteNVPairs();
         foreach ($my_choices as $key => $id) {
@@ -498,7 +501,7 @@
                   makeAlbumUrl($albumName). ">\n";
                 $myAlbum = new Album();
                 $myAlbum->load($albumName);
-                print sprintf(_("Album: %s"), $myAlbum->fields['title']);
+                print sprintf(gTranslate('core', "Album: %s"), $myAlbum->fields['title']);
                 print "</a></td></tr>\n";
             } else {
                 print "<td><a href=\n".
@@ -523,7 +526,7 @@
     if ($results && testRequirement('isAdminOrAlbumOwner')) {
         print "\n". '<a href="' . makeGalleryUrl("poll_results.php",
           array("set_albumName" => $gallery->session->albumName)).
-          '">' ._("See full poll results") . '</a><br>';
+          '">' .gTranslate('core', "See full poll results") . '</a><br>';
     }
     echo '</div>';
 }
@@ -557,23 +560,23 @@
          */
         $options = '';
         for ($count=0; $count < $gallery->album->getPollScale()-2 ; $count++) {
-            $options .= $nv_pairs[$count]["name"] ._(", ");
+            $options .= $nv_pairs[$count]["name"] .gTranslate('core', ", ");
         }
-        $options .= $nv_pairs[$count++]["name"] ._(" or ");
+        $options .= $nv_pairs[$count++]["name"] .gTranslate('core', " or ");
         $options .= $nv_pairs[$count]["name"];
     }
     print '<span class="attention">';
-    print sprintf(_("To vote for an image, click on %s."), $options);
-    print "  ".sprintf(_("You MUST click on %s for your vote to be recorded."),
-    "<b>"._("Vote")."</b>");
+    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(_("You have a total of %s and can change them if you wish."),
+          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 "  ". _("You can change your choices if you wish.");
+        print "  ". gTranslate('core', "You can change your choices if you wish.");
     }
     echo "</span>";
 ?>
@@ -581,7 +584,7 @@
 
 <?php if (canVote()) { ?>
 	<div align="center">
- 		<input type=submit name="Vote" value="<?php print _("Vote") ?>">
+ 		<input type=submit name="Vote" value="<?php print gTranslate('core', "Vote") ?>">
 	</div>
 <?php }
 }
@@ -673,7 +676,7 @@
             } elseif (isset($myAlbum)) {
                 // We already loaded this album - don't do it again, for performance reasons.
 
-                $gallery->html_wrap['imageTag'] = $myAlbum->getHighlightTag($scaleTo,'',_("Highlight for Album:"). " ". gallery_htmlentities(strip_tags($myAlbum->fields['title'])));
+                $gallery->html_wrap['imageTag'] = $myAlbum->getHighlightTag($scaleTo,'',gTranslate('core', "Highlight for Album:"). " ". gallery_htmlentities(strip_tags($myAlbum->fields['title'])));
                 $gallery->html_wrap['imageHref'] = makeAlbumUrl($gallery->album->getAlbumName($i));
                 $frame= $gallery->html_wrap['frame'] = $gallery->album->fields['album_frame'];
                 /*begin backwards compatibility */
@@ -767,27 +770,27 @@
             echo "\n<div align=\"center\" class=\"modcaption\">\n";
             $id = $gallery->album->getPhotoId($i);
             if ($gallery->album->isHidden($i) && !$gallery->session->offline) {
-                echo "(" . _("hidden") .")<br>";
+                echo "(" . gTranslate('core', "hidden") .")<br>";
             }
             $photo = $gallery->album->getPhoto($i);
             if ($gallery->user->canWriteToAlbum($gallery->album) &&
               $photo->isHighlight() && !$gallery->session->offline) {
-                echo "(" . _("highlight") .")<br>";
+                echo "(" . gTranslate('core', "highlight") .")<br>";
             }
             if (isset($myAlbum)) {
             	$myDescription = $myAlbum->fields['description'];
             	$buf = '';
             	$link = '';
             	if ($gallery->user->canDownloadAlbum($myAlbum) && $myAlbum->numPhotos(1)) {
-            		$iconText = getIconText('compressed.png', _("Download entire album as archive"), 'yes');
+            		$iconText = getIconText('compressed.png', gTranslate('core', "Download entire album as archive"), 'yes');
             		$link = popup_link($iconText, 'download.php?set_albumName='. $gallery->album->getAlbumName($i),false,false,500,500);
             	}
             	$buf .="<center><b>";
-            	$buf .= sprintf(_("Album: %s"),
+            	$buf .= sprintf(gTranslate('core', "Album: %s"),
             	'<a class="modcaption" href="'. makeAlbumUrl($gallery->album->getAlbumName($i)) .'">'. $myAlbum->fields['title'] .'</a>');
             	$buf .= "</b> $link</center>";
 
-            	if ($myDescription != _("No description") &&
+            	if ($myDescription != gTranslate('core', "No description") &&
             	  $myDescription != "No description" &&
             	  $myDescription != "") {
             		$buf = $buf."<br>".$myDescription."";
@@ -795,10 +798,10 @@
             	echo $buf;
 
             	echo '<div class="fineprint" style="margin-top:3px">';
-            	printf (_("Last change: %s"), $myAlbum->getLastModificationDate());
+            	printf (gTranslate('core', "Last change: %s"), $myAlbum->getLastModificationDate());
             	echo "\n<br>";
             	$visItems = array_sum($myAlbum->numVisibleItems($gallery->user));
-            	printf (_("Contains: %s"), gTranslate('core', "1 item", "%d items", $visItems)) . '. ';
+            	printf (gTranslate('core', "Contains: %s"), gTranslate('core', "1 item", "%d items", $visItems)) . '. ';
             	// If comments indication for either albums or both
             	switch ($gallery->app->comments_indication) {
             		case "albums":
@@ -814,7 +817,7 @@
 
             	if (!(strcmp($gallery->album->fields["display_clicks"] , "yes")) &&  !$gallery->session->offline && ($myAlbum->getClicks() > 0)) {
             		echo '<div class="viewcounter" style="margin-top:3px">';
-            		printf (_("Viewed: %s"), gTranslate('core', "1 time", "%d times", $myAlbum->getClicks()));
+            		printf (gTranslate('core', "Viewed: %s"), gTranslate('core', "1 time", "%d times", $myAlbum->getClicks()));
             		echo ".</div>";
             	}
             }
@@ -852,7 +855,7 @@
                 $form_pos++;
             }
 
-            $albumItemOptions = getItemActions($i, false, true);
+            $albumItemOptions = getItemActions($i, false);
             if (sizeof($albumItemOptions) > 2 || 
               (sizeof($albumItemOptions) == 2 && !isset($albumItemOptions['showExif']))) {
                 echo drawSelect2("s$i", $albumItemOptions, array(
@@ -897,9 +900,9 @@
 	<td colspan="<?php echo $rows ?>" align="center" class="headbox">
 <?php if ($gallery->user->canAddToAlbum($gallery->album) && !$gallery->session->offline) {
     $url = makeGalleryUrl('add_photos_frame.php', array('set_albumName' => $gallery->session->albumName, 'type' => 'popup'));
-    echo popup_link('['. _("Hey! Add some photos.") .']', $url, 1, true, 500, 600, 'admin');
+    echo popup_link('['. gTranslate('core', "Hey! Add some photos.") .']', $url, 1, true, 500, 600, 'admin');
 } else {
-    echo _("This album is empty.");
+    echo gTranslate('core', "This album is empty.");
 }
 ?>
 	</td>
@@ -913,13 +916,13 @@
 <?php //display legend for comments
 if ($displayCommentLegend) {  ?>
 <span class="commentIndication">*</span>
-<span class="fineprint"> <?php echo _("Comments available for this item.") ?></span>
+<span class="fineprint"> <?php echo gTranslate('core', "Comments available for this item.") ?></span>
 <br>
 <?php }
 
 if (canVote()) { ?>
 <p align="center">
-	<input type=submit name="Vote" value="<?php print _("Vote") ?>">
+	<input type=submit name="Vote" value="<?php print gTranslate('core', "Vote") ?>">
 </p>
 <?php
 }
@@ -944,15 +947,15 @@
     }
     echo makeFormIntro("view_album.php", 
         array("name" => "email_me", "style" => "margin-bottom: 0px;"));
-    echo _("Email me when one of the following actions are done to this album:")."  ";
+    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" : "" ;
     $checked_other = ($gallery->album->getEmailMe('other', $gallery->user)) ? "checked" : "";
 	?>
 	<ul>
-	<li><?php echo _("Comments are added"); ?>
+	<li><?php echo gTranslate('core', "Comments are added"); ?>
 		<input type="checkbox" name="comments" <?php echo $checked_com; ?> onclick="document.email_me.submit()">
 	</li>
-	<li><?php print _("Other changes are made") ?>
+	<li><?php print gTranslate('core', "Other changes are made") ?>
 		<input type="checkbox" name="other" <?php echo $checked_other; ?> onclick="document.email_me.submit()">
 	</li>
 	</ul>
diff -Naur gallery-1.5.2-pl2/view_comments.php gallery-1.5.3/view_comments.php
--- gallery-1.5.2-pl2/view_comments.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/view_comments.php	2006-03-27 17:31:25.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.50.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: view_comments.php,v 1.51.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/view_photo.php gallery-1.5.3/view_photo.php
--- gallery-1.5.2-pl2/view_photo.php	2006-01-18 19:06:02.000000000 +0100
+++ gallery-1.5.3/view_photo.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: view_photo.php,v 1.274.2.3 2006/01/18 18:06:02 jenst Exp $
+ * $Id: view_photo.php,v 1.277.2.4 2006/04/06 11:49:10 jenst Exp $
  */
 ?>
 <?php
@@ -166,7 +166,7 @@
 
 #-- breadcrumb text ---
 $upArrowURL = '<img src="' . getImagePath('nav_home.gif') . '" width="13" height="11" '.
-  'alt="' . _("navigate UP") .'" title="' . _("navigate UP") .'" border="0">';
+  'alt="' . gTranslate('core', "navigate UP") .'" title="' . gTranslate('core', "navigate UP") .'" border="0">';
 
 foreach ($gallery->album->getParentAlbums(true) as $navAlbum) {
     $breadcrumb["text"][] = $navAlbum['prefixText'] .': <a class="bread" href="'. $navAlbum['url'] . '">'.
@@ -190,14 +190,14 @@
 
 if (!empty($save)) {
     if ( empty($commenter_name) || empty($comment_text)) {
-        $error_text = _("Name and comment are both required to save a new comment!");
+        $error_text = gTranslate('core', "Name and comment are both required to save a new comment!");
     } elseif ($maxlength >0 && strlen($comment_text) > $maxlength) {
-        $error_text = sprintf(_("Your comment is too long, the admin set maximum length to %d chars"), $maxlength);
+        $error_text = sprintf(gTranslate('core', "Your comment is too long, the admin set maximum length to %d chars"), $maxlength);
     } elseif (isBlacklistedComment($tmp = array('commenter_name' => $commenter_name, 'comment_text' => $comment_text), false)) {
-        $error_text = _("Your Comment contains forbidden words. It will not be added.");
+        $error_text = gTranslate('core', "Your Comment contains forbidden words. It will not be added.");
     } else {
-        $comment_text = strip_tags($comment_text);
-        $commenter_name = strip_tags($commenter_name);
+        $comment_text = $comment_text;
+        $commenter_name = $commenter_name;
         $IPNumber = $_SERVER['REMOTE_ADDR'];
         $gallery->album->addComment($id, $comment_text, $IPNumber, $commenter_name);
         $gallery->album->save();
@@ -312,7 +312,7 @@
       (isset($gallery->app->use_exif) || isset($gallery->app->exiftags)) &&
       sizeof($albumItemOptions) == 2) {
         $albumName = $gallery->session->albumName;
-        $iconText = getIconText('frame_query.gif', _("photo properties"));
+        $iconText = getIconText('frame_query.gif', gTranslate('core', "photo properties"));
         $iconElements[] =  popup_link($iconText, "view_photo_properties.php?set_albumName=$albumName&index=$index", 0, false, 500, 500);
     }
 
@@ -396,9 +396,9 @@
             $options = array();
 
             if (isset($serviceGroups['Mobile Service'])) {
-                $options[] = _("Send photo to...") ;
+                $options[] = gTranslate('core', "Send photo to...") ;
             } else {
-                $options[] = _("Print photo with...");
+                $options[] = gTranslate('core', "Print photo with...");
             }
 
             $firstGroup = true;
@@ -434,7 +434,7 @@
                         continue;
                     } else {
 			enablePrintForm($name);
-                        $iconText = getIconText('', sprintf(_("process this photo with %s"), $fullName));
+                        $iconText = getIconText('', sprintf(gTranslate('core', "process this photo with %s"), $fullName));
                         $adminTextIconElemens[] = "<a class=\"admin\" href=\"#\" onClick=\"doPrintService('$name');\">$iconText</a>";
                     }
                 }
@@ -478,8 +478,8 @@
         $lparams['set_fullOnly'] = (!isset($gallery->session->fullOnly) || strcmp($gallery->session->fullOnly,"on")) ? "on" : "off";
         $link = makeAlbumURL($gallery->session->albumName, $id, $lparams);
         $adminTextIconElemens[] = _('View Images:');
-        $iconTextNormal = _("normal");
-        $iconTextFull = _("full");
+        $iconTextNormal = gTranslate('core', "normal");
+        $iconTextFull = gTranslate('core', "full");
 
         if (!isset($gallery->session->fullOnly) || strcmp($gallery->session->fullOnly,"on")) {
             $adminTextIconElemens[] = $iconTextNormal;
@@ -497,7 +497,7 @@
     */
     if(isset($gallery->album->fields["ecards"]) && $gallery->album->fields["ecards"] == 'yes' &&
       $gallery->app->emailOn == 'yes') {
-        $iconText = getIconText('ecard.gif', _("Send Photo as eCard"));
+        $iconText = getIconText('ecard.gif', gTranslate('core', "Send Photo as eCard"));
         $adminTextIconElemens[] = popup_link($iconText,
             makeGalleryUrl('ecard_form.php', array('photoIndex' => $index,'gallery_popup' => 'true' )), 1, true, 550, 600);
     }
@@ -516,12 +516,12 @@
 
 if (!$GALLERY_EMBEDDED_INSIDE && !$gallery->session->offline) {
     if ($gallery->user->isLoggedIn()) {
-        $iconText = getIconText('exit.gif', _("logout"));
+        $iconText = getIconText('exit.gif', gTranslate('core', "logout"));
         $iconElements[] = '<a href="'.
           doCommand("logout", array(), "view_album.php", array("page" => $page)) .
           '">'. $iconText .'</a>';
     } else {
-        $iconText = getIconText('identity.gif', _("login"));
+        $iconText = getIconText('identity.gif', gTranslate('core', "login"));
         $iconElements[] = popup_link($iconText, "login.php", false);
     }
 }
@@ -617,14 +617,19 @@
 }
 
 if(empty($full) && $allImageAreas = $gallery->album->getAllImageAreas($index)) {
-	echo showImageMap($index);
+    echo showImageMap($index);
     $photoTag = $gallery->album->getPhotoTag($index, $full,"id=\"galleryImage\" usemap=\"#myMap\"");
 }
 else {
     $photoTag = $gallery->album->getPhotoTag($index, $full,"id=\"galleryImage\"");
 }
 
-list($width, $height) = $photo->getDimensions($full);
+if($gallery->album->isMovie($id)) {
+    list($width, $height) = $photo->getThumbDimensions();
+}
+else {
+    list($width, $height) = $photo->getDimensions($full);
+}
 $gallery->html_wrap['borderColor'] = $gallery->album->fields["bordercolor"];
 $gallery->html_wrap['borderWidth'] = $gallery->album->fields["border"];
 $gallery->html_wrap['frame'] = $frame;
@@ -717,7 +722,7 @@
         'emailMeComments' => ($gallery->album->getEmailMe('comments', $gallery->user, $id)) ? 'false' : 'true')
         );
 
-        echo _("Email me when comments are added");
+        echo gTranslate('core', "Email me when comments are added");
 ?>
 	<input type="checkbox" name="comments" <?php echo ($gallery->album->getEmailMe('comments', $gallery->user, $id)) ? "checked" : "" ?> onclick="location.href='<?php echo $url; ?>'" >
 	</form>
diff -Naur gallery-1.5.2-pl2/view_photo_properties.php gallery-1.5.3/view_photo_properties.php
--- gallery-1.5.2-pl2/view_photo_properties.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/view_photo_properties.php	2006-03-27 17:31: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: view_photo_properties.php,v 1.49.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: view_photo_properties.php,v 1.50.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
diff -Naur gallery-1.5.2-pl2/watermark_album.php gallery-1.5.3/watermark_album.php
--- gallery-1.5.2-pl2/watermark_album.php	2006-01-06 07:31:31.000000000 +0100
+++ gallery-1.5.3/watermark_album.php	2006-03-27 17:31: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: watermark_album.php,v 1.23.2.1 2006/01/06 06:31:31 jenst Exp $
+ * $Id: watermark_album.php,v 1.24.2.1 2006/03/27 15:31:25 jenst Exp $
  */
 ?>
 <?php
