diff --git a/css/jquery.lightbox.css b/css/jquery.lightbox.css
index c248c18..2e9c18f 100644
--- a/css/jquery.lightbox.css
+++ b/css/jquery.lightbox.css
@@ -1,220 +1,220 @@
-/*
- * jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
- * Copyright (C) 2008 Benjamin Arthur Lupton
- * http://jquery.com/plugins/project/jquerylightbox_bal
- *
- * This file is part of jQuery Lightbox (balupton edition).
- *
- * jQuery Lightbox (balupton edition) is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * jQuery Lightbox (balupton edition) 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with jQuery Lightbox (balupton edition). If not, see .
- *
- * @name jquery_lightbox: jquery.lightbox.css
- * @package jQuery Lightbox Plugin (balupton edition)
- * @version 1.3.0-rc1
- * @date August 24, 2008
- * @category jQuery plugin
- * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
- * @copyright (c) 2008 Benjamin Arthur Lupton {@link http://www.balupton.com}
- * @license GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html}
- * @example Visit {@link http://jquery.com/plugins/project/jquerylightbox_bal} for more information.
- */
-
-html, body { margin: 0; padding: 0; height: 100%;}
-
-#lightbox, #lightbox-overlay {
- position: absolute;
- top: 0px;
- left: 0px;
- bottom:auto;
- right:auto;
-
- z-index:100;
- width:100%;
- height:auto;
-
- text-align:center;
- color:#333333;
-
- /* stop stupid conflicts */
- margin:0px;
- padding:0px;
- border:none;
- outline:none;
- line-height:0;
-
- /* general conflict stopper */
- text-decoration:none;
- background:none;
- word-spacing:normal;
- letter-spacing:normal;
- float:none;
- clear:none;
- display:block;
-}
-
-#lightbox a, #lightbox a:link, #lightbox a:visited, #lightbox a:hover {
- text-decoration:underline;
- color:#999999;
-}
-
-#lightbox-overlay {
- z-index: 90;
- background-color:#000000;
- height: 100%;
- position:fixed;
-}
-#lightbox-overlay-text {
- text-align: right;
- margin-right: 20px;
- margin-top: 20px;
- color: white;
- font-size: 12px;
- cursor: default;
- line-height:normal;
-}
-#lightbox-overlay-text a, #lightbox-overlay-text a:hover, #lightbox-overlay-text a:visited, #lightbox-overlay-text a:link {
- color:white;
-}
-#lightbox-overlay-text span {
- padding-left:5px;
- padding-right:5px;
-}
-
-#lightbox img, #lightbox a img, #lightbox a { border:none; outline:none; }
-
-#lightbox-imageBox {
- position:relative;
- border:1px solid black;;
- background-color:white;
- width:400px;
- height:400px;
- margin:0 auto;
-}
-
-#lightbox-imageContainer {
- padding:1px;
-}
-
-#lightbox-loading {
- position:absolute;
- top:40%;
- left:0%;
- height:25%;
- width:100%;
- text-align:center;
- line-height:0;
-}
-
-#lightbox-nav {
- position:absolute;
- top:0;
- left:0;
- height:100%;
- width:100%;
- z-index:10;
-}
-/* #lightbox-imageBox > #lightbox-nav { left: 0; }
-#lightbox-nav a { outline: none; }*/
-
-
-#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
- display:block;
- width:49%;
- height: 100%;
- background:transparent url("../images/blank.gif") no-repeat; /* Trick IE into showing hover */
- /* cursor:pointer; */
- zoom:1; /* who knows why? */
-
- padding:0px;
- margin:0px;
-}
-#lightbox-nav-btnPrev {
- left:0;
- right:auto;
- float:left;
-}
-#lightbox-nav-btnNext {
- left:auto;
- right:0;
- float:right;
-}
-/*
-.preload_largeLink, #prevLink:hover, #prevLink:visited:hover {
- background:url("../images/prev.gif") left 45% no-repeat;
-}
-.preload_nextLink, #nextLink:hover, #nextLink:visited:hover {
- background:url("../images/next.gif") right 45% no-repeat;
-}
-*/
-
-#lightbox-infoBox {
- font:10px Verdana, Helvetica, sans-serif;
- background-color:#FFFFFF;
- margin:0 auto;
- padding:0px;
-
- /* width: 100%;
- padding: 0 10px 0; */
-}
-
-#lightbox-infoContainer {
- padding-left:10px;
- padding-right:10px;
- padding-top:5px;
- padding-bottom:5px;
- color:#666;
-
- line-height:normal;
- /* height:30px; */
-}
-#lightbox-infoHeader {
- width:100%;
- text-align:center;
-}
-#lightbox-caption {
- text-align:justify;
-}
-#lightbox-caption-title {
- font-weight:bold;
-}
-#lightbox-caption-description {
- font-weight:normal;
-}
-
-#lightbox-infoFooter {
- margin-top:3px;
- color:#999999;
-}
-#lightbox-currentNumber {
- display:block;
- width:49%;
- float:left;
- text-align:left;
-}
-#lightbox-close {
- display:block;
- width:45%;
- float:right;
- text-align:right;
-}
-#lightbox-close-button{
- padding-left:30%;
-}
-#lightbox-close-button:hover {
- color:#666666;
-}
-
-#lightbox-infoContainer-clear {
- clear:both;
- visibility:hidden;
+/*
+ * jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
+ * Copyright (C) 2008 Benjamin Arthur Lupton
+ * http://jquery.com/plugins/project/jquerylightbox_bal
+ *
+ * This file is part of jQuery Lightbox (balupton edition).
+ *
+ * jQuery Lightbox (balupton edition) is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * jQuery Lightbox (balupton edition) 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with jQuery Lightbox (balupton edition). If not, see .
+ *
+ * @name jquery_lightbox: jquery.lightbox.css
+ * @package jQuery Lightbox Plugin (balupton edition)
+ * @version 1.3.0-rc1
+ * @date August 24, 2008
+ * @category jQuery plugin
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2008 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ * @license GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html}
+ * @example Visit {@link http://jquery.com/plugins/project/jquerylightbox_bal} for more information.
+ */
+
+html, body { margin: 0; padding: 0; height: 100%;}
+
+#lightbox, #lightbox-overlay {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ bottom:auto;
+ right:auto;
+
+ z-index:100;
+ width:100%;
+ height:auto;
+
+ text-align:center;
+ color:#333333;
+
+ /* stop stupid conflicts */
+ margin:0px;
+ padding:0px;
+ border:none;
+ outline:none;
+ line-height:0;
+
+ /* general conflict stopper */
+ text-decoration:none;
+ background:none;
+ word-spacing:normal;
+ letter-spacing:normal;
+ float:none;
+ clear:none;
+ display:block;
+}
+
+#lightbox a, #lightbox a:link, #lightbox a:visited, #lightbox a:hover {
+ text-decoration:underline;
+ color:#999999;
+}
+
+#lightbox-overlay {
+ z-index: 90;
+ background-color:#000000;
+ height: 100%;
+ position:fixed;
+}
+#lightbox-overlay-text {
+ text-align: right;
+ margin-right: 20px;
+ margin-top: 20px;
+ color: white;
+ font-size: 12px;
+ cursor: default;
+ line-height:normal;
+}
+#lightbox-overlay-text a, #lightbox-overlay-text a:hover, #lightbox-overlay-text a:visited, #lightbox-overlay-text a:link {
+ color:white;
+}
+#lightbox-overlay-text span {
+ padding-left:5px;
+ padding-right:5px;
+}
+
+#lightbox img, #lightbox a img, #lightbox a { border:none; outline:none; }
+
+#lightbox-imageBox {
+ position:relative;
+ border:1px solid black;
+ background-color:white;
+ width:400px;
+ height:400px;
+ margin:0 auto;
+}
+
+#lightbox-imageContainer {
+ padding:1px;
+}
+
+#lightbox-loading {
+ position:absolute;
+ top:40%;
+ left:0%;
+ height:25%;
+ width:100%;
+ text-align:center;
+ line-height:0;
+}
+
+#lightbox-nav {
+ position:absolute;
+ top:0;
+ left:0;
+ height:100%;
+ width:100%;
+ z-index:10;
+}
+/* #lightbox-imageBox > #lightbox-nav { left: 0; }
+#lightbox-nav a { outline: none; }*/
+
+
+#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
+ display:block;
+ width:49%;
+ height: 100%;
+ background:transparent url("../images/blank.gif") no-repeat; /* Trick IE into showing hover */
+ /* cursor:pointer; */
+ zoom:1; /* who knows why? */
+
+ padding:0px;
+ margin:0px;
+}
+#lightbox-nav-btnPrev {
+ left:0;
+ right:auto;
+ float:left;
+}
+#lightbox-nav-btnNext {
+ left:auto;
+ right:0;
+ float:right;
+}
+/*
+.preload_largeLink, #prevLink:hover, #prevLink:visited:hover {
+ background:url("../images/prev.gif") left 45% no-repeat;
+}
+.preload_nextLink, #nextLink:hover, #nextLink:visited:hover {
+ background:url("../images/next.gif") right 45% no-repeat;
+}
+*/
+
+#lightbox-infoBox {
+ font:10px Verdana, Helvetica, sans-serif;
+ background-color:#FFFFFF;
+ margin:0 auto;
+ padding:0px;
+
+ /* width: 100%;
+ padding: 0 10px 0; */
+}
+
+#lightbox-infoContainer {
+ padding-left:10px;
+ padding-right:10px;
+ padding-top:5px;
+ padding-bottom:5px;
+ color:#666;
+
+ line-height:normal;
+ /* height:30px; */
+}
+#lightbox-infoHeader {
+ width:100%;
+ text-align:center;
+}
+#lightbox-caption {
+ text-align:justify;
+}
+#lightbox-caption-title {
+ font-weight:bold;
+}
+#lightbox-caption-description {
+ font-weight:normal;
+}
+
+#lightbox-infoFooter {
+ margin-top:3px;
+ color:#999999;
+}
+#lightbox-currentNumber {
+ display:block;
+ width:49%;
+ float:left;
+ text-align:left;
+}
+#lightbox-close {
+ display:block;
+ width:45%;
+ float:right;
+ text-align:right;
+}
+#lightbox-close-button{
+ padding-left:30%;
+}
+#lightbox-close-button:hover {
+ color:#666666;
+}
+
+#lightbox-infoContainer-clear {
+ clear:both;
+ visibility:hidden;
}
\ No newline at end of file
diff --git a/gallery.ini b/gallery.ini
new file mode 100644
index 0000000..ada09a5
--- /dev/null
+++ b/gallery.ini
@@ -0,0 +1,3 @@
+logfile=gallery.log
+previewwidth=311
+thumbheight=67
diff --git a/includes/galleryfunctions.php b/includes/galleryfunctions.php
index 5589035..1421c84 100644
--- a/includes/galleryfunctions.php
+++ b/includes/galleryfunctions.php
@@ -34,15 +34,26 @@ define(IMAGESEC, "images");
define(GALLERYSEC, "gallery");
define(GALLERY_RE, '/^[\w\d _-]+$/');
+if (!realpath('gallery.ini')) {
+ die('gallery.ini not found in ' . getcwd());
+}
+$configuration = parse_ini_file(realpath('gallery.ini'));
+if (array_key_exists('logfile', $configuration)) {
+ error_reporting(E_ALL);
+ ini_set('display_errors', 0);
+ ini_set('log_errors', 1);
+ ini_set('error_log', $configuration['logfile']);
+}
+
/**
* Breite der Vorschaubilder.
*/
-$previewwidth = 311;
+$previewwidth = $configuration['previewwidth'];
/**
* Höhe der Thumbnailbilder.
*/
-$thumbheight = 67;
+$thumbheight = $configuration['thumbheight'];
/**
* Prüft, ob eine Galerie mit dem übergebenen Namen existiert.
@@ -169,7 +180,8 @@ function getGalleryLabel($galleryname) {
* @return Galeriename
*/
function getCurrentGallery() {
- if (galleryExists($_GET["galleryname"])) {
+ if (array_key_exists('galleryname', $_GET) &&
+ galleryExists($_GET["galleryname"])) {
return $_GET["galleryname"];
}
$filepath = realpath(GALLERYPREFIX . DIRECTORY_SEPARATOR . INFOFILE);
@@ -223,6 +235,8 @@ function getScaledImage($galleryname, $basename, $maxdim, $scaleheight=true) {
// versuchen das Thumbnail-Verzeichnis anzulegen
$mkdir = @mkdir($scaleddirpath, 0755);
if (!$mkdir) {
+ trigger_error("could not create directory $scaleddirpath.\n",
+ E_USER_WARNING);
return $galleryname . DIRECTORY_SEPARATOR . $basename;
}
}
diff --git a/index.php b/index.php
index 2757708..61cdd02 100644
--- a/index.php
+++ b/index.php
@@ -1,40 +1,38 @@
, Jeremias Arnstadt
- *
- * @version \$Id$
- *
- * Copyright (c) 2008 Jan Dittberner
- * Jan Dittberner IT-Consulting & -Solutions
- * Cottbuser Str. 1, D-01129 Dresden
- *
- * Copyright (c) 2008 Jeremias Arnstadt
- *
- * This file is part of the ScrollingJQueryGallery component of the
- * gnuviech-server.de Websitetools
- *
- * ScrollingJQueryGallery 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 3 of the License, or (at your option) any later version.
- *
- * ScrollingJQueryGallery 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 ScrollingJQueryGallery. If not, see
- * .
- */
+/**
+ * @file Startseite für ScrollingJQueryGallery. Diese Datei erledigt
+ * die Ausgabe im Browser.
+ *
+ * @author Jan Dittberner , Jeremias Arnstadt
+ * @version \$Id$
+ *
+ * Copyright (c) 2008, 2009 Jan Dittberner
+ * Jan Dittberner IT-Consulting & -Solutions
+ * Cottbuser Str. 1, D-01129 Dresden
+ *
+ * Copyright (c) 2008 Jeremias Arnstadt
+ *
+ * This file is part of the ScrollingJQueryGallery component of the
+ * gnuviech-server.de Websitetools
+ *
+ * ScrollingJQueryGallery 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 3 of
+ * the License, or (at your option) any later version.
+ *
+ * ScrollingJQueryGallery 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 ScrollingJQueryGallery. If not, see
+ * .
+ */
- /**
- * Inkludiert die Funktionsbibliothek.
- */
+/**
+ * Inkludiert die Funktionsbibliothek.
+ */
require 'includes/galleryfunctions.php';
/**
@@ -48,17 +46,18 @@ $gallery = getCurrentGallery();
$thumbinfo = getThumbNailInfo($gallery);
?>
-
+
+
-
-
-
+
+
+