From 20407702b92cb93970eaa4a71e659f383d2f92a5 Mon Sep 17 00:00:00 2001 From: jimmacfx Date: Fri, 25 Nov 2005 22:45:21 +0000 Subject: 0.11 git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@8 4fa712ea-3c06-0410-9261-c11b4c06c003 --- www/bcg.png | Bin 0 -> 87 bytes www/favicon.ico | Bin 0 -> 1150 bytes www/inc/comment.inc.php | 33 ++ www/inc/config.inc.php | 119 ++++++ www/inc/exif.inc.php | 223 ++++++++++ www/inc/footer.inc.php | 29 ++ www/inc/funkce.inc.php | 197 +++++++++ www/inc/global.js | 79 ++++ www/inc/header.inc.php | 14 + www/inc/l10nget.inc.php | 17 + www/inc/styles/classic/bcg.png | Bin 0 -> 87 bytes www/inc/styles/classic/classic.css | 338 +++++++++++++++ www/inc/styles/classic/classic.css.net | 386 +++++++++++++++++ www/inc/styles/classic/hascomments.png | Bin 0 -> 534 bytes www/inc/styles/classic/left-16.png | Bin 0 -> 298 bytes www/inc/styles/classic/left.png | Bin 0 -> 523 bytes www/inc/styles/classic/logo-mini.png | Bin 0 -> 4163 bytes www/inc/styles/classic/minus.png | Bin 0 -> 291 bytes www/inc/styles/classic/plus.png | Bin 0 -> 556 bytes www/inc/styles/classic/restricted.png | Bin 0 -> 729 bytes www/inc/styles/classic/right-16.png | Bin 0 -> 290 bytes www/inc/styles/classic/right.png | Bin 0 -> 522 bytes www/inc/styles/classic/title.png | Bin 0 -> 3434 bytes www/inc/styles/classic/zip.png | Bin 0 -> 539 bytes www/inc/styles/dark/bcg.png | Bin 0 -> 87 bytes www/inc/styles/dark/dark.css | 553 +++++++++++++++++++++++++ www/inc/styles/dark/hascomments.png | Bin 0 -> 398 bytes www/inc/styles/dark/home-inactive.png | Bin 0 -> 253 bytes www/inc/styles/dark/home.png | Bin 0 -> 231 bytes www/inc/styles/dark/left-16.png | Bin 0 -> 298 bytes www/inc/styles/dark/left-inactive.png | Bin 0 -> 289 bytes www/inc/styles/dark/left.png | Bin 0 -> 265 bytes www/inc/styles/dark/logo-mini.png | Bin 0 -> 4163 bytes www/inc/styles/dark/minus-inactive.png | Bin 0 -> 175 bytes www/inc/styles/dark/minus.png | Bin 0 -> 169 bytes www/inc/styles/dark/plus-inactive.png | Bin 0 -> 203 bytes www/inc/styles/dark/plus.png | Bin 0 -> 188 bytes www/inc/styles/dark/restricted-inactive.png | Bin 0 -> 376 bytes www/inc/styles/dark/restricted.png | Bin 0 -> 367 bytes www/inc/styles/dark/right-16.png | Bin 0 -> 290 bytes www/inc/styles/dark/right-inactive.png | Bin 0 -> 294 bytes www/inc/styles/dark/right.png | Bin 0 -> 269 bytes www/inc/styles/dark/title.png | Bin 0 -> 3342 bytes www/inc/styles/dark/zip-inactive.png | Bin 0 -> 241 bytes www/inc/styles/dark/zip.png | Bin 0 -> 231 bytes www/inc/styles/default/bcg.png | Bin 0 -> 87 bytes www/inc/styles/default/default.css | 386 +++++++++++++++++ www/inc/styles/default/home-inactive.png | Bin 0 -> 253 bytes www/inc/styles/default/home.png | Bin 0 -> 213 bytes www/inc/styles/default/left-16.png | Bin 0 -> 298 bytes www/inc/styles/default/left-inactive.png | Bin 0 -> 289 bytes www/inc/styles/default/left.png | Bin 0 -> 265 bytes www/inc/styles/default/logo-mini.png | Bin 0 -> 4163 bytes www/inc/styles/default/minus-inactive.png | Bin 0 -> 175 bytes www/inc/styles/default/minus.png | Bin 0 -> 169 bytes www/inc/styles/default/plus-inactive.png | Bin 0 -> 203 bytes www/inc/styles/default/plus.png | Bin 0 -> 188 bytes www/inc/styles/default/restricted-inactive.png | Bin 0 -> 376 bytes www/inc/styles/default/restricted.png | Bin 0 -> 367 bytes www/inc/styles/default/right-16.png | Bin 0 -> 290 bytes www/inc/styles/default/right-inactive.png | Bin 0 -> 294 bytes www/inc/styles/default/right.png | Bin 0 -> 269 bytes www/inc/styles/default/title.png | Bin 0 -> 3342 bytes www/inc/styles/default/zip-inactive.png | Bin 0 -> 241 bytes www/inc/styles/default/zip.png | Bin 0 -> 231 bytes www/inc/styles/gorilla/gorilla.css | 350 ++++++++++++++++ www/inc/styles/gorilla/left.png | Bin 0 -> 1644 bytes www/inc/styles/gorilla/minus.png | Bin 0 -> 1403 bytes www/inc/styles/gorilla/plus.png | Bin 0 -> 1436 bytes www/inc/styles/gorilla/right.png | Bin 0 -> 1661 bytes www/inc/styles/gorilla/title.png | Bin 0 -> 2506 bytes www/inc/styles/grey/grey.css | 258 ++++++++++++ www/inc/styles/grey/left.png | Bin 0 -> 1644 bytes www/inc/styles/grey/minus.png | Bin 0 -> 1403 bytes www/inc/styles/grey/plus.png | Bin 0 -> 1436 bytes www/inc/styles/grey/right.png | Bin 0 -> 1661 bytes www/inc/styles/grey/title.png | Bin 0 -> 2506 bytes www/inc/styles/ie/ie.css | 8 + www/inc/styles/ie7/README.txt | 28 ++ www/inc/styles/ie7/blank.gif | Bin 0 -> 48 bytes www/inc/styles/ie7/ie7-box-model.js | 2 + www/inc/styles/ie7/ie7-core.js | 2 + www/inc/styles/ie7/ie7-css-strict.js | 2 + www/inc/styles/ie7/ie7-css2.js | 2 + www/inc/styles/ie7/ie7-css3.js | 2 + www/inc/styles/ie7/ie7-fixed.js | 2 + www/inc/styles/ie7/ie7-html4.js | 2 + www/inc/styles/ie7/ie7-ie5.js | 2 + www/inc/styles/ie7/ie7-lite-p.js | 3 + www/inc/styles/ie7/ie7-lite.js | 2 + www/inc/styles/ie7/ie7-logo.gif | Bin 0 -> 1135 bytes www/inc/styles/ie7/ie7-png.js | 2 + www/inc/styles/ie7/ie7-server.css | 43 ++ www/inc/styles/ie7/ie7-standard-p.js | 3 + www/inc/styles/ie7/ie7-standard.js | 2 + www/inc/styles/ie7/ie7.gif | Bin 0 -> 208 bytes www/inc/styles/ie7/license | 17 + www/inc/styles/ie7/test-trans.png | Bin 0 -> 106 bytes www/inc/stylesheet.inc.css | 141 +++++++ www/inc/www.class.inc.php | 221 ++++++++++ www/index.php | 540 ++++++++++++++++++++++++ www/l10n/cs/date.lang | 79 ++++ www/l10n/cs/exif.lang | 21 + www/l10n/cs/main.lang | 111 +++++ www/l10n/fr/date.lang | 79 ++++ www/l10n/fr/main.lang | 111 +++++ www/left.png | Bin 0 -> 1644 bytes www/lib/lib.l10n.php | 58 +++ www/logo-mini.png | Bin 0 -> 4163 bytes www/logo.png | Bin 0 -> 15635 bytes www/minus.png | Bin 0 -> 1403 bytes www/plus.png | Bin 0 -> 1436 bytes www/right.png | Bin 0 -> 1661 bytes www/stock_camera-16.png | Bin 0 -> 768 bytes www/top.png | Bin 0 -> 1631 bytes www/zip.png | Bin 0 -> 1027 bytes 116 files changed, 4467 insertions(+) create mode 100644 www/bcg.png create mode 100644 www/favicon.ico create mode 100644 www/inc/comment.inc.php create mode 100644 www/inc/config.inc.php create mode 100644 www/inc/exif.inc.php create mode 100644 www/inc/footer.inc.php create mode 100644 www/inc/funkce.inc.php create mode 100644 www/inc/global.js create mode 100644 www/inc/header.inc.php create mode 100644 www/inc/l10nget.inc.php create mode 100644 www/inc/styles/classic/bcg.png create mode 100644 www/inc/styles/classic/classic.css create mode 100644 www/inc/styles/classic/classic.css.net create mode 100644 www/inc/styles/classic/hascomments.png create mode 100644 www/inc/styles/classic/left-16.png create mode 100644 www/inc/styles/classic/left.png create mode 100644 www/inc/styles/classic/logo-mini.png create mode 100644 www/inc/styles/classic/minus.png create mode 100644 www/inc/styles/classic/plus.png create mode 100644 www/inc/styles/classic/restricted.png create mode 100644 www/inc/styles/classic/right-16.png create mode 100644 www/inc/styles/classic/right.png create mode 100644 www/inc/styles/classic/title.png create mode 100644 www/inc/styles/classic/zip.png create mode 100644 www/inc/styles/dark/bcg.png create mode 100644 www/inc/styles/dark/dark.css create mode 100644 www/inc/styles/dark/hascomments.png create mode 100644 www/inc/styles/dark/home-inactive.png create mode 100644 www/inc/styles/dark/home.png create mode 100644 www/inc/styles/dark/left-16.png create mode 100644 www/inc/styles/dark/left-inactive.png create mode 100644 www/inc/styles/dark/left.png create mode 100644 www/inc/styles/dark/logo-mini.png create mode 100644 www/inc/styles/dark/minus-inactive.png create mode 100644 www/inc/styles/dark/minus.png create mode 100644 www/inc/styles/dark/plus-inactive.png create mode 100644 www/inc/styles/dark/plus.png create mode 100644 www/inc/styles/dark/restricted-inactive.png create mode 100644 www/inc/styles/dark/restricted.png create mode 100644 www/inc/styles/dark/right-16.png create mode 100644 www/inc/styles/dark/right-inactive.png create mode 100644 www/inc/styles/dark/right.png create mode 100644 www/inc/styles/dark/title.png create mode 100644 www/inc/styles/dark/zip-inactive.png create mode 100644 www/inc/styles/dark/zip.png create mode 100644 www/inc/styles/default/bcg.png create mode 100644 www/inc/styles/default/default.css create mode 100644 www/inc/styles/default/home-inactive.png create mode 100644 www/inc/styles/default/home.png create mode 100644 www/inc/styles/default/left-16.png create mode 100644 www/inc/styles/default/left-inactive.png create mode 100644 www/inc/styles/default/left.png create mode 100644 www/inc/styles/default/logo-mini.png create mode 100644 www/inc/styles/default/minus-inactive.png create mode 100644 www/inc/styles/default/minus.png create mode 100644 www/inc/styles/default/plus-inactive.png create mode 100644 www/inc/styles/default/plus.png create mode 100644 www/inc/styles/default/restricted-inactive.png create mode 100644 www/inc/styles/default/restricted.png create mode 100644 www/inc/styles/default/right-16.png create mode 100644 www/inc/styles/default/right-inactive.png create mode 100644 www/inc/styles/default/right.png create mode 100644 www/inc/styles/default/title.png create mode 100644 www/inc/styles/default/zip-inactive.png create mode 100644 www/inc/styles/default/zip.png create mode 100644 www/inc/styles/gorilla/gorilla.css create mode 100644 www/inc/styles/gorilla/left.png create mode 100644 www/inc/styles/gorilla/minus.png create mode 100644 www/inc/styles/gorilla/plus.png create mode 100644 www/inc/styles/gorilla/right.png create mode 100644 www/inc/styles/gorilla/title.png create mode 100644 www/inc/styles/grey/grey.css create mode 100644 www/inc/styles/grey/left.png create mode 100644 www/inc/styles/grey/minus.png create mode 100644 www/inc/styles/grey/plus.png create mode 100644 www/inc/styles/grey/right.png create mode 100644 www/inc/styles/grey/title.png create mode 100644 www/inc/styles/ie/ie.css create mode 100644 www/inc/styles/ie7/README.txt create mode 100644 www/inc/styles/ie7/blank.gif create mode 100644 www/inc/styles/ie7/ie7-box-model.js create mode 100644 www/inc/styles/ie7/ie7-core.js create mode 100644 www/inc/styles/ie7/ie7-css-strict.js create mode 100644 www/inc/styles/ie7/ie7-css2.js create mode 100644 www/inc/styles/ie7/ie7-css3.js create mode 100644 www/inc/styles/ie7/ie7-fixed.js create mode 100644 www/inc/styles/ie7/ie7-html4.js create mode 100644 www/inc/styles/ie7/ie7-ie5.js create mode 100644 www/inc/styles/ie7/ie7-lite-p.js create mode 100644 www/inc/styles/ie7/ie7-lite.js create mode 100644 www/inc/styles/ie7/ie7-logo.gif create mode 100644 www/inc/styles/ie7/ie7-png.js create mode 100644 www/inc/styles/ie7/ie7-server.css create mode 100644 www/inc/styles/ie7/ie7-standard-p.js create mode 100644 www/inc/styles/ie7/ie7-standard.js create mode 100644 www/inc/styles/ie7/ie7.gif create mode 100644 www/inc/styles/ie7/license create mode 100644 www/inc/styles/ie7/test-trans.png create mode 100644 www/inc/stylesheet.inc.css create mode 100644 www/inc/www.class.inc.php create mode 100644 www/index.php create mode 100644 www/l10n/cs/date.lang create mode 100644 www/l10n/cs/exif.lang create mode 100644 www/l10n/cs/main.lang create mode 100644 www/l10n/fr/date.lang create mode 100644 www/l10n/fr/main.lang create mode 100644 www/left.png create mode 100644 www/lib/lib.l10n.php create mode 100644 www/logo-mini.png create mode 100644 www/logo.png create mode 100644 www/minus.png create mode 100644 www/plus.png create mode 100644 www/right.png create mode 100644 www/stock_camera-16.png create mode 100644 www/top.png create mode 100644 www/zip.png (limited to 'www') diff --git a/www/bcg.png b/www/bcg.png new file mode 100644 index 0000000..d4f7ac8 Binary files /dev/null and b/www/bcg.png differ diff --git a/www/favicon.ico b/www/favicon.ico new file mode 100644 index 0000000..6d93ef7 Binary files /dev/null and b/www/favicon.ico differ diff --git a/www/inc/comment.inc.php b/www/inc/comment.inc.php new file mode 100644 index 0000000..627a747 --- /dev/null +++ b/www/inc/comment.inc.php @@ -0,0 +1,33 @@ +\n"; + +?> + " . __('Post a Comment') . ":"; ?> + + [  + " . __('Show Form') . "" . __('Hide Form') . ""; ?> +  ] + + + + + diff --git a/www/inc/config.inc.php b/www/inc/config.inc.php new file mode 100644 index 0000000..1f0bbd3 --- /dev/null +++ b/www/inc/config.inc.php @@ -0,0 +1,119 @@ +1 is smaller, <1 is bigger + $PNthumbScale = 1.5; +# Photos Copyright +# CHANGE THIS! I am not trying to take over the world ;) + $copy = "Copyright © 1999-2005 Jakub Steiner"; +#app info + $app["name"] = "Original"; // opensource remote image gallery, + // initialy not as lovely + $app["url"] = "http://jimmac.musichall.cz/original.php3"; + $app["version"] = "0.11"; +# =========================================================================== +# EXIF metadata app path (helper app for php3 and older php4) +# uncomment the method you want to use if you want EXIF data reported +# --------------------------------------------------------------------------- +## use internal function of PHP 4: + $exif_prog = "php4"; + $exif_show = array("DateTime"=>__("Time Taken"), + "Make"=>__("Camera Manufacturer"), + "Model"=>__("Camera Model"), + "FocalLength"=>__("Real Focal Length"), + "FocalLengthIn35mmFilm"=>__("Focal Length Relative to 35mm Film"), + "FNumber"=>__("F Stop"), + "ExposureTime"=>__("Time of Exposure"), + "ISOSpeedRatings"=>__("Film/Chip Sensitivity"), + "Flash"=>__("Flash")); +# --------------------------------------------------------------------------- +## use metacam (give absolute path to the binary on the server): +# $exif_prog = "/usr/local/bin/metacam"; +## what EXIF data to show (if unset, all will be shown) +## some example fields for metacam: +# $exif_show = array("Image Capture Date", "Make", "Model", +# "Exposure Program", "Exposure Mode", +# "Focal Length", "Exposure Time", +# "Aperture Value", "ISO Speed Rating", "White Balance", +# "Flash", "Scene Capture Type", +# "Metering Mode", "Max Aperture Value", "Shutter Speed Value" +# ); +# --------------------------------------------------------------------------- +## use jhead (give absolute path to the binary on the server): +# $exif_prog = "/usr/local/bin/jhead"; +## what EXIF data to show (if unset, all will be shown) +## some example fields for jhead: +# $exif_show = array( +# "Date/Time", +# "Camera make", +# "Camera model", +# "Focal length", +# "Exposure time", +# "Aperture Value", +# "ISO equiv.", +# "Exposure", +# ); +# =========================================================================== +## Gallery Directory +# This is a path relative to the directory where original is installed +# eg. it can be "../galleries" to use a galleries dir above the original dir. + $gallery_dir="../galleries"; + +# This controls wheather web visitors will be able to post +# comments to images +$comments = 1; + +# Access Log/Counter +# $log_access = 0; // no access logging +# $log_access = 1; // simple counter +# $log_access = 2; // detailed log FIXME: TODO (not sure about doing this, as + // it duplicates server's access log and tends to grow large +$log_access = 1; + +#css styles + $themes = array( + "dark" => "inc/styles/dark/dark.css", + "classic" => "inc/styles/classic/classic.css", + "gorilla" => "inc/styles/gorilla/gorilla.css" + ); + + + + +?> diff --git a/www/inc/exif.inc.php b/www/inc/exif.inc.php new file mode 100644 index 0000000..f78741e --- /dev/null +++ b/www/inc/exif.inc.php @@ -0,0 +1,223 @@ +=100) { + $out = eval("return ${x[0]}/${x[1]};"); + $out .= "s"; + return $out; + } else { + return "1/".(1.0/($x[0]/$x[1]))."s"; + } + break; + case "Flash"; + if ($v=="0") { + return "No Flash"; + } else { + return $v; + } + break; + case "ISOSpeedRatings": + return "ISO" . $v; + break; + case "GainControl"; + return "EV" . $v; + break; + case "FocalLengthIn35mmFilm": + return $v . "mm"; + break; + case "DateTime": + //return date("M d Y H:i:s", $v); + ereg("^([0-9]{4}):([0-9]{1,2}):([0-9]{1,2}) (.*)",$v,$x); + return $x[1] . "/" . $x[2] . "/" . $x[3] . " " . $x[4]; + break; + default: + return $v; + } +} + + +if ($exif_prog=="php4") { + // php internal handling + // $file is LQ image + $exif_array = exif_read_data("$file"); + reset($exif_array); + if ($exif_show) reset($exif_show); + + if ($exif_array["Make"]) { // only render all this + // if there is EXIF header + // fancy table look + echo "
\n"; + echo "\n"; + //co ukazat (podle exif_show) + if ($exif_show) { + while (list($kx,$x) = each($exif_show)) { + while(list($k,$v)=each($exif_array)) { + if ($kx==$k) { + echo ""; + echo ""; + echo ""; + echo "\n"; + } + } + reset($exif_array); + } + } else { + //ukaze vsechno v tabulce + while(list($k,$v)=each($exif_array)) { + echo ""; + echo ""; + echo ""; + echo "\n"; + } + } + echo "\n"; + echo ""; + echo ""; + echo "\n"; + echo "
"; + echo $x; + echo ": "; + echo formatEXIF($k,$v); + echo "
"; + echo $k; + echo ": "; + echo formatEXIF($k,$v); + echo "
" . __("Less info"); + echo "
\n"; + echo "
\n"; + + + + + + // selected EXIF header on one line + echo "
\n"; + echo "

"; + reset($exif_array); + if ($exif_show) reset($exif_show); + if ($exif_show) { + while (list($kx,$x) = each($exif_show)) { + while(list($k,$v)=each($exif_array)) { + if ($kx==$k) { + echo ""; + echo formatEXIF($k,$v); + echo " | "; + } + } + reset($exif_array); + } + } else { + /* vsechny exif headers inline */ + while(list($k,$v)=each($exif_array)) { + echo ""; + echo formatEXIF($k,$v); + echo " | "; + } + } + + echo "" . __("More info"); + echo "

\n"; + echo "
\n"; + } + + + + + + + + + +} else { + // the old code, handles e.g. metacam and jhead as EXIF extractors + // loading lq means it won't work if the convertor doesn't copy EXIF data + // (newer ImageMagick can) + // PATCHES WELCOME + exec("$exif_prog \"$gallery_dir/$galerie/lq/img-$snimek.jpg\"", $exif_data, $exif_status); + if ($exif_status!="2") { + if ($exif_style=="descriptive") { + // fancy table look + echo "\n"; + while ($x = current($exif_data)) { + eregi("^ *([^:]*): *(.*)", $x, $y); + //filter according to $exif_show array + if (!$exif_show) { //all fields shown + echo ""; + echo ""; + echo ""; + echo "\n"; + } else { + reset($exif_show); + while ($z = current($exif_show)) { + //echo ".$z. ::: .$y[1].
"; + if (trim($z) == trim($y[1])) { + echo ""; + echo ""; + echo ""; + echo "\n"; + } + next($exif_show); + } + } + next($exif_data); + } + echo "\n"; + echo ""; + # only show if EXIF header exists + if ($y[1]!="File") { // don't show when no EXIF + echo "\n"; + } + echo "\n"; + echo "
$y[1] :$y[2]
$y[1] :$y[2]
"; + echo "display in-line
\n"; + } else { + //simple plaintext look + echo "

"; + while ($x = current($exif_data)) { + eregi("^ *([^:]*): *(.*)", $x, $y); + if (!$exif_show) { //all fields shown + echo "$y[2] |"; + } else { + reset($exif_show); + while ($z = current($exif_show)) { + if (trim($z) == trim($y[1])) { + echo "$y[2] | "; + } + next($exif_show); + } + } + next($exif_data); + } + # only show if EXIF header exists + if ($y[1]!="File") { + echo ""; + echo "display table\n"; + echo "

\n"; + } + } + } +} +?> diff --git a/www/inc/footer.inc.php b/www/inc/footer.inc.php new file mode 100644 index 0000000..28b4eee --- /dev/null +++ b/www/inc/footer.inc.php @@ -0,0 +1,29 @@ +\n"; +echo ""; +echo "\"Valid"; +echo "\n"; + +echo ""; +echo "\"Valid"; +echo "\n"; +*/ + +echo "\n\n
"; +echo "$copy"; +echo "
" . __('Generated by') . "\n "; +echo ""; +echo $app["name"]; +echo ""; +echo " ver. " . $app["version"]; +echo "\n"; +echo "
\n"; +?> diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php new file mode 100644 index 0000000..be897f7 --- /dev/null +++ b/www/inc/funkce.inc.php @@ -0,0 +1,197 @@ +\n"; + echo "
\n"; + if ($snapshot > 1) { //previous + echo ""; + echo "< Previous\n"; + } + echo " "; + if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { //next + echo ""; + echo "Next >\n"; + } + echo "
\n\n"; + } elseif ($image=="prev") { //previous thumbnail + if ($snapshot > 1) { //previous + echo "
"; + echo ""; + if (file_exists("$gallery_dir/$gallery/thumbs/img-$prev.png")) { + $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.png"; + } else { + $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.jpg"; + } + $v = getimagesize("$root/$Pthumb"); + echo "\"Previous\""; + echo "
" . __('Previous'); + echo "
\n"; + } + } else { //next thumbnail + if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { + echo "
"; + echo ""; + if (file_exists("$gallery_dir/$gallery/thumbs/img-$next.png")) { + $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.png"; + } else { + $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.jpg"; + } + $v = getimagesize("$root/$Nthumb"); + echo "\"Next\""; + //echo "
Next"; + echo "
" . __('Next') ; + echo "
\n"; + } + } + +} + +function check($file) { + global $gallery_dir, $page; + +# if (eregi("[^0-9a-z\_\-\ ]",$file) || !file_exists("$gallery_dir/$file")) { +# if (eregi("CVS",$file) || !file_exists("$gallery_dir/$file")) { + if (!file_exists("$gallery_dir/$file")) { + echo "funkce.inc.php/check(): Bad input"; + $page->footer(); + exit; + } +} + +function browserCheck() { + global $HTTP_USER_AGENT; + + $HTTP_USER_AGENT=$_SERVER["HTTP_USER_AGENT"]; + if (eregi("(MSIE.[456789]).*Mac.*",$HTTP_USER_AGENT)) { + return("macie4+"); + } elseif (eregi("(MSIE.[678])",$HTTP_USER_AGENT)) { + return("ie6+"); + } elseif (eregi("(MSIE.[45])",$HTTP_USER_AGENT)) { + return("ie4+"); + } elseif (eregi("Opera",$HTTP_USER_AGENT)) { + return("opera"); + } elseif (eregi("(Mozilla.4)",$HTTP_USER_AGENT)) { + return("netscape4"); + } elseif (eregi("(Mozilla.[5-9])",$HTTP_USER_AGENT)) { + return("mozilla"); + } elseif (eregi("KMeleon",$HTTP_USER_AGENT)) { + return("mozilla"); + } else { + return("Netscape3"); + } +} + +function infoParse ($infofile) { + + $info_array = file($infofile); + foreach ($info_array as $line) { + list($key,$value) = split("\|",$line); + $result[$key]=$value; + } + return $result; +} + +function readInfo ($infofile, $file) { + global $galerieyear, $galeriemonth, $galerieday, $galeriedesc, $galerieauthor, + $galeriename, $galerielogin, $galeriepw, $gallery_dir; + + if (file_exists($infofile)) { + //read from info.txt + $info_array = infoParse($infofile); + if ($info_array["date"]) { + // try to be a little smarter about format + if (ereg("([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})", + $info_array["date"])) { + // remain compatible - DD.MM.YYYY + list($day,$month,$year) = split("\.", $info_array["date"]); + rtrim($year); + rtrim($month); + rtrim($day); + $info_array["date"] = "$year-$month-$day"; //make it US date + } + // US date format at this point + $tstamp = strtotime($info_array["date"]); + } else { + $tstamp = filemtime("$gallery_dir/$file");// Get from filesystem + } + $galerieyear["$file"] = date("Y", $tstamp); + $galeriemonth["$file"] = date("m", $tstamp); + $galerieday["$file"] = date("d", $tstamp); + + if (@$info_array["description"]) { + $galeriedesc["$file"] = rtrim($info_array["description"]); + } + + if (@$info_array["author"]) { + $galerieauthor["$file"] = rtrim($info_array["author"]); + } + + if (@$info_array["name"]) { + $galeriename["$file"] = rtrim($info_array["name"]); + } + + if (@$info_array["restricted_user"]) { + $galerielogin["$file"] = rtrim($info_array["restricted_user"]); + $galeriepw["$file"] = rtrim($info_array["restricted_password"]); + } + } else { // Get Dates from modification stamp + $mtime = filemtime("$gallery_dir/$file"); + $galerieyear["$file"] = date("Y", $mtime); + $galeriemonth["$file"] = date("m", $mtime); //F + $galerieday["$file"] = date("d", $mtime); + } +} + +function access_check($login, $password,$realm) { + if (!($_SERVER['PHP_AUTH_USER']=="$login" && $_SERVER['PHP_AUTH_PW']=="$password")) { + header("WWW-authenticate: Basic Realm=$realm"); + Header("HTTP/1.0 401 Unauthorized"); + $err = new C_www; + $err->header("Access Denied"); + echo "
\n"; + echo "

Access Denied

\n"; + echo "

Sorry, this gallery is restricted

\n"; + echo "

Return to index

\n"; + echo "
\n"; + $err->footer(); + exit; + } + +} + +function random_digits($times) { + $random=""; + for ($i=0;$i<$times;$i++) { + $random .= rand(0,9); + } + return $random; +} + +function get_photo_title($galerie, $id) { + global $gallery_dir; + if ($title = @file_get_contents("$gallery_dir/$galerie/comments/${id}.txt")) { + $title = trim(preg_replace('/[\s\n\r]+/', ' ', strip_tags($title))); + if (strlen($title) > 80) + $title = trim(substr($title, 0, 77)) . "..."; + } else + $title = "Photo ${id}"; + return $title; +} + +?> diff --git a/www/inc/global.js b/www/inc/global.js new file mode 100644 index 0000000..ff8ec21 --- /dev/null +++ b/www/inc/global.js @@ -0,0 +1,79 @@ +function setActiveStyleSheet(title) { + var i, a, main; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { + if(a.getAttribute("rel").indexOf("style") != -1 + && a.getAttribute("title")) { + a.disabled = true; + if(a.getAttribute("title") == title) a.disabled = false; + } + } + if (title!="") { + writeCookie(title); + } +} + +function getInactiveStyleSheet() { + var i, a; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { + if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && a.disabled) return a.getAttribute("title"); + } + return null; +} + +function readCookie() { + var theme = document.cookie; + var theme = unescape(theme); + + return theme; +} + +function writeCookie(theme) { + //FIXME - set expires + var original_cookie = "theme=" + escape(theme); + document.cookie = original_cookie; +} + +function checkForTheme() { + var theme = readCookie(); + //alert(theme); + if (theme=="undefined") { + var theme = "none"; + } +} + +// what a kludge. Luckily I found a clean way +function alignForGorilla() { +var image_preview = document.getElementById('preview'); +image_preview.style.marginLeft = "-" + (image_preview.width/2 + 16) + "px"; +} + +// to hide and show the comment block +// inspired by www.wikipedia.org +function toggle_comment() { + var comment_form = document.getElementById('comment_form'); + var showlink=document.getElementById('showlink'); + var hidelink=document.getElementById('hidelink'); + if(comment_form.style.display == 'none') { + comment_was = comment_form.style.display; + comment_form.style.display = ''; + hidelink.style.display=''; + showlink.style.display='none'; + } else { + comment_form.style.display = comment_was; + hidelink.style.display='none'; + showlink.style.display=''; + } +} + +function toggle_exif() { + var exif_table = document.getElementById('exif_table'); + var exif_line = document.getElementById('exif_line'); + if(exif_table.style.display == 'none') { + exif_table.style.display = 'block'; + exif_line.style.display = 'none'; + } else { + exif_table.style.display = 'none'; + exif_line.style.display = 'block'; + } +} + diff --git a/www/inc/header.inc.php b/www/inc/header.inc.php new file mode 100644 index 0000000..483b6ef --- /dev/null +++ b/www/inc/header.inc.php @@ -0,0 +1,14 @@ +
+[ style: + $url) { + echo ""; + echo "$skin \n"; +} +?> +] +
+Photo Gallery\n\n"; +?> diff --git a/www/inc/l10nget.inc.php b/www/inc/l10nget.inc.php new file mode 100644 index 0000000..f04b18c --- /dev/null +++ b/www/inc/l10nget.inc.php @@ -0,0 +1,17 @@ + diff --git a/www/inc/styles/classic/bcg.png b/www/inc/styles/classic/bcg.png new file mode 100644 index 0000000..d4f7ac8 Binary files /dev/null and b/www/inc/styles/classic/bcg.png differ diff --git a/www/inc/styles/classic/classic.css b/www/inc/styles/classic/classic.css new file mode 100644 index 0000000..da56645 --- /dev/null +++ b/www/inc/styles/classic/classic.css @@ -0,0 +1,338 @@ +/* Default stylesheet + ================== + + stylesheet & artwork + (c) 2003 Jakub 'jimmac' Steiner + +*/ + +body { + background-color: #f6f6f6; + background: url("bcg.png") top left repeat; + /* + margin: 0px 50px 0px 50px; + width: auto; + */ + margin: auto; + width: 770px; + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; +} + +img { + border: 0px; +} + +.bigthumbnails img { + width: 120px; + height: 80px; +} + +.bigthumbnails a.portrait img { + width: 52px; +} + +a:link { + color: #909090; +} + +a:visited { + color: #808080; +} + +a:hover { + color: #f0f0f0; + background-color: #707070; +} + + +h1.title { + background-color: #a7a9a6; + font-size: 16pt; + color: #808080; + width: 100%; + margin-bottom: 0px; + padding: 5px; + +} + +.title a { + display: block; + position:relative; + width:100%; + height:48px; + margin:0; padding:0; +} + +.title a:hover { + border: 0px; + background-color: #a7a9a6; +} + +.title a span { + /* this overlays text below with an image */ + display: block; + position:absolute; left:0; top:0; z-index:1; + width:338px; height:48px; + margin:0; padding:0; + background-image: url("title.png"); + background-attachment: top left; + background-repeat: no-repeat; +} + +div.thumbroll { + margin: 10px 0px 4px 0px; + min-height: 29px; +} + +p.bigthumbnails { + text-align: center; +} + +p.bigthumbnails a { + padding: 0px; + margin: 0px; + border: 0px; + +} +/* +p.bigthumbnails a:link img { + border: 1px solid white; +} + +p.bigthumbnails a:hover img { + border: 1px solid #909090; + +} +*/ + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:24px; + height:24px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus.png") top left no-repeat; +} + +a#zip { + /* display: block; */ + position: relative; + width:16px; + height:16px; + margin:0px; padding:0px; + font-size: 9px; +} + +a#zip span { + background: url("zip.png") top left no-repeat; + position:absolute; left:0; top:0; z-index:1; + width:16px; height:16px; +} + +div.navigation { + background-color: #f6f6f6; + width: 100%; + padding: 5px; + font-size: 10px; +} + +div.navigation a { + color: #a0a0a0; + font-weight: bold; +} + +div.footer { + font-size: 9px; + width: 100%; + margin-top: 40px; + padding: 5px 5px 20px 5px; + clear: both; + border-top: 1px dotted #909090; +} + +div.year { + font-size: 11pt; + float: left; + margin: 10px; +} + +div.month { + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 0px 0px 3px 0px; +} + +.author, .date, .desc { + display: block; +} + +.date { + color: gray; +} + +.date:before { + content: ">>"; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 0px 0px 0px 6px; + list-style: none; + font-size: 10px; +} + +div.month p.restricted { + background: transparent url("restricted.png") top left no-repeat; + padding: 0px 0px 3px 16px; +} + +div#image { + /* width: 800px; */ + display: block; + position: relative; + clear: both; + margin-left: auto; + margin-right: auto; + /* border: 1px solid black; */ + min-height: 480px; /* only works in gecko :/ */ +} + +img#preview { + position: relative; + float: left; + margin-right: 8px; +} + +div.comment { + margin: 2em 0px; + color: #808080; + font-size: 9px; +} + +div.comment span { + color: black; + font-weight: bold; + font-size: 10px; +} + +div.navbuttons { + position: absolute; + top: 580px; left: 50%; + margin-left: 260px; /* 260px to the right of the center of the page */ + width: 64px; height: 32px; + z-index: 1; +} + +div.navbuttonsshell { + position: relative; + width: 100%; + margin: 2px; +} + +div.navbuttonsshell a#previcon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px; padding: 0; + top: 0px; + left: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the oveflow text */ + background: url("left.png") top left no-repeat; /* have a pixmap */ +} + +div.navbuttonsshell a#nexticon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px 4px 2px auto; padding: 0; + right: 4px; top: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the overflow text */ + background: url("right.png") top left no-repeat; /* have a pixmap */ +} + + +div.prevthumb,div.nextthumb { + margin-bottom: 1em; +} + +div.nextthumb a,div.prevthumb a { + text-decoration: none; +} + +div#mqhq { + margin: 2px 2px 4px 0px; + height: 32px; +} + +div#mqhq a { + display: block; + border: 1px solid #909090; + padding: 2px; + font-size: 10px; + background-color: #f6f6f6; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; + -moz-border-radius: 2px; +} + +div#mqhq a:hover { + background-color: #909090; + border: 1px solid black; + color: white; +} + +div.stylenavbar { + position:relative; + font-size: 9px; + margin: 4px 0px; + padding-bottom: 0px; +} + +/* Formatting of the user comments */ +/* +div.commententry { + border: 1px dotted pink; +} +*/ + +#comment_block .comment_toggle { + font-size: smaller; +} + +div.commentdata { + margin-bottom: 10px; +} + +div.name { + border-bottom: 1px dotted grey; + font-size: 10pt; + margin-bottom: 2px; +} + +textarea, input { + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; + -moz-border-radius: 3px; +} diff --git a/www/inc/styles/classic/classic.css.net b/www/inc/styles/classic/classic.css.net new file mode 100644 index 0000000..c8a0f3f --- /dev/null +++ b/www/inc/styles/classic/classic.css.net @@ -0,0 +1,386 @@ +/* Default stylesheet + ================== + + stylesheet & artwork + (c) 2003 Jakub 'jimmac' Steiner + +*/ + +body { + background-color: #f6f6f6; + background: url("bcg.png") top left repeat; + /* + margin: 0px 50px 0px 50px; + width: auto; + */ + margin: auto; + width: 770px; + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; +} + +img { + border: 0px; + width: 120px; + height: 80px; +} + +img#preview { + width: inherit; + height: inherit; +} + +a.portrait img { + width: 58px; +} + +a:link { + color: #909090; +} + +a:visited { + color: #808080; +} + +a:hover { + color: #f0f0f0; + background-color: #707070; +} + +a.hascomments { + background-image: url('hascomments.png'); + background-position: bottom right; + background-repeat: no-repeat; +} + +.month p>a { + display: block; +} + +.author, .description, .date { + display: block; + padding: 2px 0px 1em 4px; +} + +.date { + color: #666; +} + +.date:before { + content: ">> "; +} + +h1.title { + background-color: #a7a9a6; + font-size: 16pt; + color: #808080; + width: 100%; + margin-bottom: 0px; + padding: 5px; + +} + +.title a { + display: block; + position:relative; + width:100%; + height:48px; + margin:0; padding:0; +} + +.title a:hover { + border: 0px; + background-color: #a7a9a6; +} + +.title a span { + /* this overlays text below with an image */ + display: block; + position:absolute; left:0; top:0; z-index:1; + width:338px; height:48px; + margin:0; padding:0; + background-image: url("title.png"); + background-position: top left; + background-repeat: no-repeat; +} + +div.thumbroll { + margin: 10px 0px 4px 0px; + min-height: 29px; +} + +p.bigthumbnails { + text-align: center; +} + +p.bigthumbnails a { + display: block; + float: left; + padding: 0px 0px 18px 0px; + margin: 4px; + border: 0px; +} + +p { + clear: both; +} +/* +p.bigthumbnails a:link img { + border: 1px solid white; +} + +p.bigthumbnails a:hover img { + border: 1px solid #909090; + +} +*/ + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:24px; + height:24px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus.png") top left no-repeat; +} + +a#zip { + /* display: block; */ + position: relative; + width:16px; + height:16px; + margin:0px; padding:0px; + font-size: 9px; +} + +a#zip span { + background: url("zip.png") top left no-repeat; + position:absolute; left:0; top:0; z-index:1; + width:16px; height:16px; +} + +div.navigation { + background-color: #f6f6f6; + width: 100%; + padding: 5px; + font-size: 10px; +} + +div.navigation a { + color: #a0a0a0; + font-weight: bold; +} + +div.footer { + font-size: 9px; + width: 100%; + margin-top: 40px; + padding: 5px 5px 20px 5px; + clear: both; + border-top: 1px dotted #909090; +} + +div.year { + font-size: 11pt; + float: left; + margin: 10px; +} + +div.month { + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 0px 0px 3px 0px; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 0px 0px 0px 6px; + list-style: none; + font-size: 10px; +} + +div.month p.restricted { + background: transparent url("restricted.png") top left no-repeat; + padding: 0px 0px 3px 16px; +} + +div#image { + /* width: 800px; */ + display: block; + position: relative; + clear: both; + margin-left: auto; + margin-right: auto; + /* border: 1px solid black; */ + min-height: 480px; /* only works in gecko :/ */ +} + +img#preview { + position: relative; + float: left; + margin-right: 8px; +} + +div.comment { + margin: 2em 0px; + color: #808080; + font-size: 10pt; +} + +div.comment span { + color: black; + font-weight: bold; +} + +div.navbuttons { + position: absolute; + top: 580px; left: 50%; + margin-left: 260px; /* 260px to the right of the center of the page */ + width: 64px; height: 32px; + z-index: 1; +} + +div.navbuttonsshell { + position: relative; + width: 100%; + margin: 2px; +} + +div.navbuttonsshell a#previcon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px; padding: 0; + top: 0px; + left: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the oveflow text */ + background: url("left.png") top left no-repeat; /* have a pixmap */ +} + +div.navbuttonsshell a#nexticon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px 4px 2px auto; padding: 0; + right: 4px; top: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the overflow text */ + background: url("right.png") top left no-repeat; /* have a pixmap */ +} + + +div.prevthumb,div.nextthumb { + margin-bottom: 1em; +} + +div.nextthumb a,div.prevthumb a { + text-decoration: none; + background-color: transparent; +} + +div.nextthumb a:hover,div.prevthumb a:hover { + color: black; +} + +div#mqhq { + margin: 2px 2px 4px 0px; + height: 32px; +} + +div#mqhq a { + display: block; + border: 1px solid #909090; + padding: 2px; + font-size: 10px; + background-color: #f6f6f6; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; +} + +div#mqhq a:hover { + background-color: #909090; + border: 1px solid black; + color: white; +} + +div.stylenavbar { + position:relative; + font-size: 9px; + margin: 4px 0px; + padding-bottom: 0px; +} + +/* Formatting of the user comments */ + +div#comment_block { + margin-bottom: 40px; +} + +div#comment_form { + margin-top: 1em; +} + +div.commentdata { + padding-left: 1em; + color: black; + margin-bottom: 2em; +} + +div.user_comment { + background-color: #f6f6f6; + padding: 4px; +} + +div.name { + color: gray; + font-size: 9pt; + margin-bottom: 2px; +} + +textarea, input { + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; +} + +input[type="text"],textarea { + width: 300px; +} + +div.row { + margin-bottom: 1em; + } + +div.label { + margin-bottom: 4px; +} + +div.label a { + text-decoration: none; + cursor: help; + color: black; + border-bottom: 1px dotted gray; +} + +div.label a:hover { + background-color: transparent; +} diff --git a/www/inc/styles/classic/hascomments.png b/www/inc/styles/classic/hascomments.png new file mode 100644 index 0000000..957a459 Binary files /dev/null and b/www/inc/styles/classic/hascomments.png differ diff --git a/www/inc/styles/classic/left-16.png b/www/inc/styles/classic/left-16.png new file mode 100644 index 0000000..625a1ab Binary files /dev/null and b/www/inc/styles/classic/left-16.png differ diff --git a/www/inc/styles/classic/left.png b/www/inc/styles/classic/left.png new file mode 100644 index 0000000..bd5607c Binary files /dev/null and b/www/inc/styles/classic/left.png differ diff --git a/www/inc/styles/classic/logo-mini.png b/www/inc/styles/classic/logo-mini.png new file mode 100644 index 0000000..8949154 Binary files /dev/null and b/www/inc/styles/classic/logo-mini.png differ diff --git a/www/inc/styles/classic/minus.png b/www/inc/styles/classic/minus.png new file mode 100644 index 0000000..19eaef3 Binary files /dev/null and b/www/inc/styles/classic/minus.png differ diff --git a/www/inc/styles/classic/plus.png b/www/inc/styles/classic/plus.png new file mode 100644 index 0000000..062d005 Binary files /dev/null and b/www/inc/styles/classic/plus.png differ diff --git a/www/inc/styles/classic/restricted.png b/www/inc/styles/classic/restricted.png new file mode 100644 index 0000000..33091eb Binary files /dev/null and b/www/inc/styles/classic/restricted.png differ diff --git a/www/inc/styles/classic/right-16.png b/www/inc/styles/classic/right-16.png new file mode 100644 index 0000000..42e783f Binary files /dev/null and b/www/inc/styles/classic/right-16.png differ diff --git a/www/inc/styles/classic/right.png b/www/inc/styles/classic/right.png new file mode 100644 index 0000000..bc5bcc5 Binary files /dev/null and b/www/inc/styles/classic/right.png differ diff --git a/www/inc/styles/classic/title.png b/www/inc/styles/classic/title.png new file mode 100644 index 0000000..8a6ad6b Binary files /dev/null and b/www/inc/styles/classic/title.png differ diff --git a/www/inc/styles/classic/zip.png b/www/inc/styles/classic/zip.png new file mode 100644 index 0000000..0bc44ab Binary files /dev/null and b/www/inc/styles/classic/zip.png differ diff --git a/www/inc/styles/dark/bcg.png b/www/inc/styles/dark/bcg.png new file mode 100644 index 0000000..d4f7ac8 Binary files /dev/null and b/www/inc/styles/dark/bcg.png differ diff --git a/www/inc/styles/dark/dark.css b/www/inc/styles/dark/dark.css new file mode 100644 index 0000000..78f82eb --- /dev/null +++ b/www/inc/styles/dark/dark.css @@ -0,0 +1,553 @@ +/* Default stylesheet + ================== + + The default stylesheet needed a remake. Photos + simply look better on dark background. The color + scheme is derived form the Novell palette. + + Should not crash Internet Explorer anymore. + + stylesheet & artwork + (c) 2004 Jakub 'jimmac' Steiner + +*/ + +body { + /* + margin: 0px 50px 0px 50px; + width: auto; + */ + margin: 20px 20px 20px 100px; + font-family: Georgia, "Bitstream Vera Sans", sans-serif; + font-size: 13pt; + color: #eeeeec; + background: #2e3436 url('title.png') top left no-repeat fixed; +} + +img { + border: 0px; +} + +a:link { + color: #ffb02f; +} + +a:visited { + color: #e88000; +} + +a:hover { + color: #ffcc7a; +} + + +h1.title { + display: none; +} + +/* mini thumbnails */ + +div.thumbroll { + margin: 10px 0px 4px 0px; + min-height: 29px; +} + +div.thumbroll img { + border: 1px solid #6b6c69; + -moz-border-radius: 3px; + Filter: Gray; /* IE only */ +} + +div.thumbroll a:hover img { + border: 1px solid #ffb02f; + Filter: none; +} + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:16px; + height:16px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus-inactive.png") top left no-repeat; +} + +a#minus:hover { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus-inactive.png") top left no-repeat; +} + +a#plus:hover { + background: url("plus.png") top left no-repeat; +} + +a#zip { + display: inline-block; + position: relative; + width:16px; + height:16px; + margin:0px; padding:0px; + font-size: 9px; + color: #2e3436; +} + +a#zip span { + background: url("zip-inactive.png") top left no-repeat; + position:absolute; left:0; top:0; z-index:1; + width:16px; height:16px; +} + +a#zip:hover span { + background: url("zip.png") top left no-repeat; +} + +.month p { + display: block; + width: 200px; +} + +p span.desc, p span.author { + font-size: 10px; + margin-left: 5px; +} + +.month p>a:after, p span.desc:after, p span.author:after { + content: ", "; +} + +p span.date { + font-size: 9px; + margin-left: 5px; + color: #777; +} + +/* in the thumbnail page */ + +div#info { + margin-left: 6px; + padding-top: 6px; + clear: both; + font-size: 11px; +} + +div#info span.key { + font-weight: bold; +} + +p { + clear: both; +} + +p.bigthumbnails { + text-align: left; +} + +p.bigthumbnails a { + display: block; + float: left; + width: 130px; + height: 80px; + text-align: center; + padding: 30px 4px; + background-color: #232729; + margin: 4px; + border: 1px solid #6b6c69; + -moz-border-radius: 3px; + /* Neat, but too slow + opacity: .5; + */ + Filter: Gray; /* IE - I wish we had that in gecko */ +} + +p.bigthumbnails a.portrait { + padding: 10px 29px; + width: 80px; + height: 120px; /* why the extra pixels? */ +} + +p.bigthumbnails img { + /* landscapes */ + display: inline; + width: 120px; + height: 80px; +} + +a.portrait img { + /* portrait */ + width: 80px; + height: 120px; +} + +p.bigthumbnails a:hover { + background-color: #2b2c29; + margin: 3px; + border: 2px solid #ffb02f; + Filter: none; /* IE */ +} + +a.hascomments { + background: #232729 url('hascomments.png') 95% 95% no-repeat; +} + +div.navigation { + margin-top: 20px; + background-color: #5b5c59; + width: 100%; + padding: 5px; + font-size: 12px; + -moz-border-radius: 3px; +} + +div.navigation a:first-child { + padding-left: 24px; + background: url('home-inactive.png') top left no-repeat; +} + +div.navigation a:first-child:hover { + background: url('home.png') top left no-repeat; +} + +div.footer { + font-size: 11px; + width: 100%; + margin-top: 20px; + padding: 5px 5px 20px 5px; + clear: both; + border-top: 1px dotted #6b6c69; + color: #6b6c69; +} + +div.year { + color: #6b6c69; + font-size: 13pt; + float: left; + margin: 10px; +} + +div.month { + color: #babdb6; + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 10px 0px 5px 0px; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 4px 4px 6px 6px; + list-style: none; + font-size: 12px; + border: 1px solid #444; + -moz-border-radius: 5px; +} + +div.month p.restricted>a { + background: transparent url("restricted-inactive.png") top left no-repeat; + padding: 0px 0px 3px 14px; +} + + +div.month p.restricted>a:hover { + background: transparent url("restricted.png") top left no-repeat; +} + +div#image { + /* width: 800px; */ + display: block; + position: relative; + clear: both; +} + +img#preview { + position: absolute; + top: 0px; + right: 0px; + bottom: 0px; + border: 10px solid #232729; + background-color: #6b6c69; + padding: 1px; + -moz-border-radius: 7px; + left: 0px; + margin-left: auto; + margin-right: auto; +} + +* html img#preview { /* should only match on IE; how pathetic */ + margin-left: -320px; + left: 50%; +} + +div.comment { + margin: 10px 0px 6px 0px; + color: #babdb6; + font-size: 11pt; + /* max-width: 50em; */ +} + +div.comment span { + color: #6b6c69; + font-weight: bold; +} + +div#log { + margin: 4px 0px 30px 0px; + font-size: 9pt; + color: #6b6c69; +} + +div.navbuttons { + display: none; +} + +div.prevthumb { + position: absolute; + margin-bottom: 1em; + font-size: 10px; + top: top; + left: 0px; + text-align: right; + padding: 4px; + /* background-color: #2e3436; */ + background-color: #232729; + -moz-border-radius: 5px; + opacity: .7; /* gecko, khtml */ + filter: alpha(opacity=70); /* IE */ +} + +div.nextthumb { + position: absolute; + margin-bottom: 1em; + font-size: 10px; + right: 0px; + top: top; + margin-left: auto; + padding: 4px; + /* background-color: #2e3436; */ + background-color: #232729; + -moz-border-radius: 5px; + opacity: .7; /* gecko, khtml */ + filter: alpha(opacity=70); /* IE */ +} + +div.nextthumb img, div.prevthumb img { + margin: 1px; + border: 1px solid #6b6c69; + -moz-border-radius: 3px; +} + +div.prevthumb a { + display: block; + text-decoration: none; + background: transparent url('left-inactive.png') bottom left no-repeat; + padding: 2px; +} + +div.nextthumb a { + display: block; + text-decoration: none; + background: transparent url('right-inactive.png') bottom right no-repeat; + padding: 2px; +} + +div.prevthumb a:hover { + background: transparent url('left.png') bottom left no-repeat; +} + +div.nextthumb a:hover { + background: transparent url('right.png') bottom right no-repeat; +} + +div.nextthumb a img,div.prevthumb a img { + Filter: Gray; /* IE - I wish we had that in gecko */ +} + +div.nextthumb a:hover img,div.prevthumb a:hover img { + border: 2px solid #ffb02f; + margin: 0px; + Filter: none; +} + +.exif { + color: #555; + margin: 20px auto 30px auto; + font-size: 8pt; + width: auto; + text-align: center; +} + +.exif tr td:first-child { + color: #babdb6; +} + +.exif td + td { + text-align: left; +} + +.exif span { + cursor: help; + border-bottom: 1px dotted #6b6c69; +} + +.exif a { + color: #9f4000; +} + +div#mqhq { + margin: 10px 2px 4px 0px; + height: 32px; +} + +div#mqhq a { + display: block; + border: 2px solid #6b6c69; + padding: 2px; + font-size: 10px; + background-color: #ffb02f; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; + -moz-border-radius: 3px; +} + +div#mqhq a:hover { + background-color: #2e3436; + border: 2px solid #ffb02f; + color: #ffb02f; +} + +div.stylenavbar { + position:absolute; + top: 0px; + right: 0px; + font-size: 9px; + padding: 4px; + opacity: 0.4; +} + +p.archives { + padding-top: 20px; + font-size: 9pt; + color: #444; +} + +p.archives a { + padding-left: 20px; + background: transparent url("zip-inactive.png") top left no-repeat; + text-decoration: none; + padding-bottom: 2px; + border-bottom: 1px dotted #df900f; + opacity: 0.5; +} + +p.archives a:hover { + background: transparent url("zip.png") top left no-repeat; + opacity: 1; +} + +.accesskey { + text-decoration: underline; +} +/* Formatting of the user comment stuff */ + +form { + padding-bottom: 40px; + clear: both; +} + +form #comment_block { + clear: both; + color: #ccc; + font-size: 10px; +} + +#comment_block #showhideform { + font-size: x-small; + margin-bottom: 10px; +} + +#comment_form { + font-size: 9pt; + padding-top: 20px; + width: 420px; + margin-bottom: 20px; + -moz-border-radius: 3px; +} + +.row { + clear: both !important; +} + +div.label { + float: left; + width: 110px; +} + +.label a { + color: white; + cursor: help; + border-bottom: 1px dotted #6b6c69; + text-decoration: none; +} + +div.control { + padding: 4px; + float: right; + width: 270px; +} + +div.user_comment { + clear: both; + margin-top: 40px; + background-color: #3a3a3a; + padding: 10px; + -moz-border-radius: 7px; +} + +div.user_comment div.commentdata { + margin: 10px; + font-size: 10pt; + margin-bottom: 20px; +} + +div.user_comment div.name { + color: #666; + font-size: 9pt; + margin-bottom: 2px; +} +div.user_comment div.name em { + font-weight: bold; +} + +textarea, input[type="text"] { + font-family: Georgia, "Bitstream Vera Sans", sans-serif; + font-size: 9pt; + color: #eeeeec; + background-color: #5b5c59; + -moz-border-radius: 3px; + border: 1px solid #888; + width: 100%; + padding: 4px; +} +input[type="submit"] { + -moz-border-radius: 3px; + border: 1px solid #888; + padding: 4px; + background-color: #5b5c59; + font-family: Georgia, "Bitstream Vera Sans", sans-serif; + font-size: 10pt; + color: #eeeeec; +} + + diff --git a/www/inc/styles/dark/hascomments.png b/www/inc/styles/dark/hascomments.png new file mode 100644 index 0000000..44729de Binary files /dev/null and b/www/inc/styles/dark/hascomments.png differ diff --git a/www/inc/styles/dark/home-inactive.png b/www/inc/styles/dark/home-inactive.png new file mode 100644 index 0000000..16718e2 Binary files /dev/null and b/www/inc/styles/dark/home-inactive.png differ diff --git a/www/inc/styles/dark/home.png b/www/inc/styles/dark/home.png new file mode 100644 index 0000000..d1f87e9 Binary files /dev/null and b/www/inc/styles/dark/home.png differ diff --git a/www/inc/styles/dark/left-16.png b/www/inc/styles/dark/left-16.png new file mode 100644 index 0000000..625a1ab Binary files /dev/null and b/www/inc/styles/dark/left-16.png differ diff --git a/www/inc/styles/dark/left-inactive.png b/www/inc/styles/dark/left-inactive.png new file mode 100644 index 0000000..38f572d Binary files /dev/null and b/www/inc/styles/dark/left-inactive.png differ diff --git a/www/inc/styles/dark/left.png b/www/inc/styles/dark/left.png new file mode 100644 index 0000000..62985d9 Binary files /dev/null and b/www/inc/styles/dark/left.png differ diff --git a/www/inc/styles/dark/logo-mini.png b/www/inc/styles/dark/logo-mini.png new file mode 100644 index 0000000..8949154 Binary files /dev/null and b/www/inc/styles/dark/logo-mini.png differ diff --git a/www/inc/styles/dark/minus-inactive.png b/www/inc/styles/dark/minus-inactive.png new file mode 100644 index 0000000..e29159f Binary files /dev/null and b/www/inc/styles/dark/minus-inactive.png differ diff --git a/www/inc/styles/dark/minus.png b/www/inc/styles/dark/minus.png new file mode 100644 index 0000000..c0f3241 Binary files /dev/null and b/www/inc/styles/dark/minus.png differ diff --git a/www/inc/styles/dark/plus-inactive.png b/www/inc/styles/dark/plus-inactive.png new file mode 100644 index 0000000..57a6186 Binary files /dev/null and b/www/inc/styles/dark/plus-inactive.png differ diff --git a/www/inc/styles/dark/plus.png b/www/inc/styles/dark/plus.png new file mode 100644 index 0000000..10332ae Binary files /dev/null and b/www/inc/styles/dark/plus.png differ diff --git a/www/inc/styles/dark/restricted-inactive.png b/www/inc/styles/dark/restricted-inactive.png new file mode 100644 index 0000000..b572e84 Binary files /dev/null and b/www/inc/styles/dark/restricted-inactive.png differ diff --git a/www/inc/styles/dark/restricted.png b/www/inc/styles/dark/restricted.png new file mode 100644 index 0000000..99bd4d5 Binary files /dev/null and b/www/inc/styles/dark/restricted.png differ diff --git a/www/inc/styles/dark/right-16.png b/www/inc/styles/dark/right-16.png new file mode 100644 index 0000000..42e783f Binary files /dev/null and b/www/inc/styles/dark/right-16.png differ diff --git a/www/inc/styles/dark/right-inactive.png b/www/inc/styles/dark/right-inactive.png new file mode 100644 index 0000000..ceb394f Binary files /dev/null and b/www/inc/styles/dark/right-inactive.png differ diff --git a/www/inc/styles/dark/right.png b/www/inc/styles/dark/right.png new file mode 100644 index 0000000..a656dc3 Binary files /dev/null and b/www/inc/styles/dark/right.png differ diff --git a/www/inc/styles/dark/title.png b/www/inc/styles/dark/title.png new file mode 100644 index 0000000..45286e0 Binary files /dev/null and b/www/inc/styles/dark/title.png differ diff --git a/www/inc/styles/dark/zip-inactive.png b/www/inc/styles/dark/zip-inactive.png new file mode 100644 index 0000000..547dceb Binary files /dev/null and b/www/inc/styles/dark/zip-inactive.png differ diff --git a/www/inc/styles/dark/zip.png b/www/inc/styles/dark/zip.png new file mode 100644 index 0000000..1c3bda1 Binary files /dev/null and b/www/inc/styles/dark/zip.png differ diff --git a/www/inc/styles/default/bcg.png b/www/inc/styles/default/bcg.png new file mode 100644 index 0000000..d4f7ac8 Binary files /dev/null and b/www/inc/styles/default/bcg.png differ diff --git a/www/inc/styles/default/default.css b/www/inc/styles/default/default.css new file mode 100644 index 0000000..4ff7fb6 --- /dev/null +++ b/www/inc/styles/default/default.css @@ -0,0 +1,386 @@ +/* Default stylesheet + ================== + + The default stylesheet needed a remake. Photos + simply look better on dark background. The color + scheme is derived form the Novell palette. + + Should not crash Internet Explorer anymore. + + stylesheet & artwork + (c) 2004 Jakub 'jimmac' Steiner + +*/ + +body { + /* + margin: 0px 50px 0px 50px; + width: auto; + */ + margin: 20px 20px 20px 100px; + font-family: Georgia, "Bitstream Vera Sans", sans-serif; + font-size: 13pt; + color: #eeeeec; + background: #2e3436 url('title.png') top left no-repeat fixed; +} + +img { + border: 0px; +} + +a:link { + color: #ffb02f; +} + +a:visited { + color: #e88000; +} + +a:hover { + color: #ffcc7a; +} + + +h1.title { + display: none; +} + +/* mini thumbnails */ + +div.thumbroll { + margin: 10px 0px 4px 0px; + min-height: 29px; +} + +div.thumbroll img { + border: 1px solid #6b6c69; + -moz-border-radius: 3px; + Filter: Gray; /* IE only */ +} + +div.thumbroll a:hover img { + border: 1px solid #ffb02f; + Filter: none; +} + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:16px; + height:16px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus-inactive.png") top left no-repeat; +} + +a#minus:hover { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus-inactive.png") top left no-repeat; +} + +a#plus:hover { + background: url("plus.png") top left no-repeat; +} + +a#zip { + display: inline-block; + position: relative; + width:16px; + height:16px; + margin:0px; padding:0px; + font-size: 9px; + color: #2e3436; +} + +a#zip span { + background: url("zip-inactive.png") top left no-repeat; + position:absolute; left:0; top:0; z-index:1; + width:16px; height:16px; +} + +a#zip:hover span { + background: url("zip.png") top left no-repeat; +} + +p span.desc, p span.author { + font-size: 10px; + margin-left: 10px; +} + +p span.date { + font-size: 9px; + margin-left: 80px; + color: #777; +} + +/* in the thumbnail page */ + +div#info { + font-size: 11px; +} + +div#info span.key { + font-weight: bold; +} + +p.bigthumbnails { + text-align: left; +} + +p.bigthumbnails img { + padding: 10px 4px; + background-color: #232729; + margin: 1px; + border: 1px solid #6b6c69; + -moz-border-radius: 3px; + /* Neat, but too slow + opacity: .5; + */ + Filter: Gray; /* IE - I wish we had that in gecko */ +} + +p.bigthumbnails a:hover img { + margin: 0px; + border: 2px solid #ffb02f; + Filter: none; /* IE */ +} + + + + +div.navigation { + margin-top: 20px; + background-color: #5b5c59; + width: 100%; + padding: 5px; + font-size: 12px; + -moz-border-radius: 3px; +} + +div.navigation a:first-child { + padding-left: 24px; + background: url('home-inactive.png') top left no-repeat; +} + +div.navigation a:first-child:hover { + background: url('home.png') top left no-repeat; +} + +div.footer { + font-size: 11px; + width: 100%; + margin-top: 20px; + padding: 5px 5px 20px 5px; + clear: both; + border-top: 1px dotted #6b6c69; + color: #6b6c69; +} + +div.year { + color: #6b6c69; + font-size: 13pt; + float: left; + margin: 10px; +} + +div.month { + color: #babdb6; + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 10px 0px 5px 0px; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 4px 4px 6px 6px; + list-style: none; + font-size: 12px; + border: 1px solid #444; + -moz-border-radius: 5px; +} + +div.month p.restricted>a { + background: transparent url("restricted-inactive.png") top left no-repeat; + padding: 0px 0px 3px 14px; +} + + +div.month p.restricted>a:hover { + background: transparent url("restricted.png") top left no-repeat; +} + +div#image { + /* width: 800px; */ + display: block; + position: relative; + clear: both; +} + +img#preview { + position: absolute; + top: 0px; + right: 0px; + bottom: 0px; + border: 10px solid #232729; + background-color: #6b6c69; + padding: 1px; + -moz-border-radius: 7px; + left: 0px; + margin-left: auto; + margin-right: auto; +} + +* html img#preview { /* should only match on IE; how pathetic */ + margin-left: -320px; + left: 50%; +} + +div.comment { + margin: 2px 0px; + color: #babdb6; + font-size: 12px; +} + +div.comment span { + color: #6b6c69; + font-weight: bold; + font-size: 12px; +} + +div.navbuttons { + display: none; +} + +div.prevthumb { + position: absolute; + margin-bottom: 1em; + font-size: 10px; + top: 40%; + left: 0px; + text-align: right; + padding: 4px; + /* background-color: #2e3436; */ + background-color: #232729; + -moz-border-radius: 5px; + border: 1px solid #6b6c69; + opacity: .7; /* gecko, khtml */ + filter: alpha(opacity=70); /* IE */ +} + +div.nextthumb { + position: absolute; + margin-bottom: 1em; + font-size: 10px; + right: 0px; + top: 40%; + margin-left: auto; + padding: 4px; + /* background-color: #2e3436; */ + background-color: #232729; + -moz-border-radius: 5px; + border: 1px solid #6b6c69; + opacity: .7; /* gecko, khtml */ + filter: alpha(opacity=70); /* IE */ +} + +div.nextthumb img, div.prevthumb img { + margin: 1px; + border: 1px solid #6b6c69; + -moz-border-radius: 3px; +} + +div.prevthumb a { + display: block; + text-decoration: none; + background: transparent url('left-inactive.png') bottom left no-repeat; + padding: 2px; +} + +div.nextthumb a { + display: block; + text-decoration: none; + background: transparent url('right-inactive.png') bottom right no-repeat; + padding: 2px; +} + +div.prevthumb a:hover { + background: transparent url('left.png') bottom left no-repeat; +} + +div.nextthumb a:hover { + background: transparent url('right.png') bottom right no-repeat; +} + +div.nextthumb a img,div.prevthumb a img { + Filter: Gray; /* IE - I wish we had that in gecko */ +} + +div.nextthumb a:hover img,div.prevthumb a:hover img { + border: 2px solid #ffb02f; + margin: 0px; + Filter: none; +} + +.exif { + margin-top: 20px; + font-size: 12px; + margin-left: auto; + margin-right: auto; + width: auto; + text-align: center; +} + +.exif tr td:first-child { + color: #babdb6; +} + +.exif td + td { + text-align: left; +} + +.exif span { + cursor: help; + border-bottom: 1px dotted #6b6c69; +} + +div#mqhq { + margin: 10px 2px 4px 0px; + height: 32px; +} + +div#mqhq a { + display: block; + border: 2px solid #6b6c69; + padding: 2px; + font-size: 10px; + background-color: #ffb02f; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; + -moz-border-radius: 3px; +} + +div#mqhq a:hover { + background-color: #2e3436; + border: 2px solid #ffb02f; + color: #ffb02f; +} + +div.stylenavbar { + position:relative; + font-size: 9px; + margin: 4px 0px; + padding-bottom: 0px; +} diff --git a/www/inc/styles/default/home-inactive.png b/www/inc/styles/default/home-inactive.png new file mode 100644 index 0000000..1d756bd Binary files /dev/null and b/www/inc/styles/default/home-inactive.png differ diff --git a/www/inc/styles/default/home.png b/www/inc/styles/default/home.png new file mode 100644 index 0000000..46fce7c Binary files /dev/null and b/www/inc/styles/default/home.png differ diff --git a/www/inc/styles/default/left-16.png b/www/inc/styles/default/left-16.png new file mode 100644 index 0000000..625a1ab Binary files /dev/null and b/www/inc/styles/default/left-16.png differ diff --git a/www/inc/styles/default/left-inactive.png b/www/inc/styles/default/left-inactive.png new file mode 100644 index 0000000..38f572d Binary files /dev/null and b/www/inc/styles/default/left-inactive.png differ diff --git a/www/inc/styles/default/left.png b/www/inc/styles/default/left.png new file mode 100644 index 0000000..62985d9 Binary files /dev/null and b/www/inc/styles/default/left.png differ diff --git a/www/inc/styles/default/logo-mini.png b/www/inc/styles/default/logo-mini.png new file mode 100644 index 0000000..8949154 Binary files /dev/null and b/www/inc/styles/default/logo-mini.png differ diff --git a/www/inc/styles/default/minus-inactive.png b/www/inc/styles/default/minus-inactive.png new file mode 100644 index 0000000..e29159f Binary files /dev/null and b/www/inc/styles/default/minus-inactive.png differ diff --git a/www/inc/styles/default/minus.png b/www/inc/styles/default/minus.png new file mode 100644 index 0000000..c0f3241 Binary files /dev/null and b/www/inc/styles/default/minus.png differ diff --git a/www/inc/styles/default/plus-inactive.png b/www/inc/styles/default/plus-inactive.png new file mode 100644 index 0000000..57a6186 Binary files /dev/null and b/www/inc/styles/default/plus-inactive.png differ diff --git a/www/inc/styles/default/plus.png b/www/inc/styles/default/plus.png new file mode 100644 index 0000000..10332ae Binary files /dev/null and b/www/inc/styles/default/plus.png differ diff --git a/www/inc/styles/default/restricted-inactive.png b/www/inc/styles/default/restricted-inactive.png new file mode 100644 index 0000000..ccd0268 Binary files /dev/null and b/www/inc/styles/default/restricted-inactive.png differ diff --git a/www/inc/styles/default/restricted.png b/www/inc/styles/default/restricted.png new file mode 100644 index 0000000..23ad5b5 Binary files /dev/null and b/www/inc/styles/default/restricted.png differ diff --git a/www/inc/styles/default/right-16.png b/www/inc/styles/default/right-16.png new file mode 100644 index 0000000..42e783f Binary files /dev/null and b/www/inc/styles/default/right-16.png differ diff --git a/www/inc/styles/default/right-inactive.png b/www/inc/styles/default/right-inactive.png new file mode 100644 index 0000000..ceb394f Binary files /dev/null and b/www/inc/styles/default/right-inactive.png differ diff --git a/www/inc/styles/default/right.png b/www/inc/styles/default/right.png new file mode 100644 index 0000000..a656dc3 Binary files /dev/null and b/www/inc/styles/default/right.png differ diff --git a/www/inc/styles/default/title.png b/www/inc/styles/default/title.png new file mode 100644 index 0000000..45286e0 Binary files /dev/null and b/www/inc/styles/default/title.png differ diff --git a/www/inc/styles/default/zip-inactive.png b/www/inc/styles/default/zip-inactive.png new file mode 100644 index 0000000..547dceb Binary files /dev/null and b/www/inc/styles/default/zip-inactive.png differ diff --git a/www/inc/styles/default/zip.png b/www/inc/styles/default/zip.png new file mode 100644 index 0000000..1c3bda1 Binary files /dev/null and b/www/inc/styles/default/zip.png differ diff --git a/www/inc/styles/gorilla/gorilla.css b/www/inc/styles/gorilla/gorilla.css new file mode 100644 index 0000000..0b8cc9b --- /dev/null +++ b/www/inc/styles/gorilla/gorilla.css @@ -0,0 +1,350 @@ +/* Gorilla stylesheet + ================== + + stylesheet & artwork + (c) 2003 Jakub 'jimmac' Steiner + + bugs/TODO: + + * navbuttons overlap minithubroll if there are many images +*/ + +body { + background-color: #dedfce; + margin: 0px 50px 0px 50px; + width: auto; + /* + margin: auto; + width: 780px; + */ + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; + color: #000000; +} + +img { + border: 0px; +} + +.bigthumbnails img { + width: inherit; + height: inherit; +} + +a { +} + +a:hover { +} + +h1.title { + background-color: black; + font-size: 16pt; + color: #808080; + width: 100%; + margin-bottom: 0px; + padding: 5px; + +} + +.title a { + display: block; + position:relative; + width:100%; + height:48px; + margin:0; padding:0; +} + +.title a span { + /* this overlays text below with an image */ + display: block; + position:absolute; left:0; top:0; z-index:1; + width:400px; height:48px; + margin:0; padding:0; + background-image: url('title.png'); + background-position: top left; + background-repeat: no-repeat; +} + +div.thumbroll { + position: relative; + margin: 10px 0px 4px 0px; + min-height: 28px; +} + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:24px; + height:24px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus.png") top left no-repeat; +} + + +.month p { + display: block; + min-width: 300px; +} + +p span.desc, p span.author { + font-size: 10px; + margin-left: 5px; +} + +.month p>a:after, p span.desc:after, p span.author:after { + content: ", "; +} + +p span.date { + font-size: 9px; + margin-left: 5px; + color: #777; +} + + +.navigation { + background-color: #505050; + width: 100%; + padding: 5px; + font-size: 10px; + clear: both; +} + +.navigation a { + color: #a0a0a0; + font-weight: bold; +} + +div.footer { + font-size: 9px; + background-color: #d9dac9; + width: 100%; + margin-top: 2em; + padding: 5px 5px 20px 5px; + clear: both; +} + +div.year { + font-size: 11pt; + float: left; + margin: 10px; +} + +div.month { + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 0px 0px 3px 0px; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 0px 0px 0px 6px; + list-style: none; + font-size: 10px; +} + +div#image { + position: relative; + display: block; + clear: both; + margin-left: auto; + margin-right: auto; + /* border: 1px solid black; */ + min-height: 480px; /* only works in gecko :/ */ + height: 500px; +} + +img#preview { + position: absolute; + top: 0px; + right: 0px; + bottom: 0px; + left: 0px; + margin-left: auto; + margin-right: auto; + /* margin-left: -320px; later fixed by javascript; what a kludge this was */ +} + +div.comment { + margin: 2em 0px; + color: #808080; + font-size: 9px; +} + +div.comment span { + color: black; + font-weight: bold; + font-size: 10px; +} + +div.prevthumb,div.nextthumb { + position: absolute; + margin-bottom: 1em; + width: 120px; + height: 140px; +} + +div.prevthub { + top: 0px; + left: 0px; + text-align: right; +} + +div.nextthumb { + margin-left: auto; + right: 0px; + top: 0px; +} + +div.nextthumb a,div.prevthumb a { + text-decoration: none; +} + +.exif { + display: block; + width: 400px; + margin: 0px auto; + padding: 4px; + background-color: #d9dac9; +} + +.exif span { + cursor: help; + border-bottom: 1px dotted gray; +} + +div#mqhq a { + display: block; + border: 2px solid black; + padding: 2px; + font-size: 10px; + font-weight: bold; + background-color: #d1940c; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; + +} + +div.navbuttons { + position: absolute; + top: 140px; left: 50%; + margin-left: -50px; + width: 64px; height: 32px; + z-index: 1; +} + +div.navbuttonsshell { + position: relative; + width: 100%; + margin: 2px; +} + +div.navbuttonsshell a#previcon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px; padding: 0; + top: 0px; + left: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the oveflow text */ + background: url("left.png") top left no-repeat; /* have a pixmap */ +} + +div.navbuttonsshell a#nexticon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px 4px 2px auto; padding: 0; + right: 4px; top: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the overflow text */ + background: url("right.png") top left no-repeat; /* have a pixmap */ +} +div#mqhq { + margin: 2px 2px 4px 0px; + height: 32px; +} + +div.stylenavbar { + position:relative; + /* + left: 0px; + right: auto; + top:auto; + bottom:0px; + */ + margin: 2px; + font-size: 9px; +} + +/* Formatting of the user comments */ + +div#comment_block { + margin-bottom: 40px; +} + +div#comment_form { + margin-top: 1em; +} + +div.commentdata { + padding-left: 1em; + color: black; + margin-bottom: 2em; +} + +div.user_comment { + background-color: #d9dac9; + padding: 4px; +} + +div.name { + color: gray; + font-size: 9pt; + margin-bottom: 2px; +} + +textarea, input { + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; +} + +input[type="text"],textarea { + width: 300px; +} + +div.row { + margin-bottom: 1em; + } + +div.label { + margin-bottom: 4px; +} + +div.label a { + text-decoration: none; + cursor: help; + color: black; + border-bottom: 1px dotted gray; +} diff --git a/www/inc/styles/gorilla/left.png b/www/inc/styles/gorilla/left.png new file mode 100644 index 0000000..63d306c Binary files /dev/null and b/www/inc/styles/gorilla/left.png differ diff --git a/www/inc/styles/gorilla/minus.png b/www/inc/styles/gorilla/minus.png new file mode 100644 index 0000000..bc7a830 Binary files /dev/null and b/www/inc/styles/gorilla/minus.png differ diff --git a/www/inc/styles/gorilla/plus.png b/www/inc/styles/gorilla/plus.png new file mode 100644 index 0000000..6b103cd Binary files /dev/null and b/www/inc/styles/gorilla/plus.png differ diff --git a/www/inc/styles/gorilla/right.png b/www/inc/styles/gorilla/right.png new file mode 100644 index 0000000..f998098 Binary files /dev/null and b/www/inc/styles/gorilla/right.png differ diff --git a/www/inc/styles/gorilla/title.png b/www/inc/styles/gorilla/title.png new file mode 100644 index 0000000..275528f Binary files /dev/null and b/www/inc/styles/gorilla/title.png differ diff --git a/www/inc/styles/grey/grey.css b/www/inc/styles/grey/grey.css new file mode 100644 index 0000000..9b23168 --- /dev/null +++ b/www/inc/styles/grey/grey.css @@ -0,0 +1,258 @@ +/* Gorilla stylesheet + ================== + + stylesheet & artwork + (c) 2003 Jakub 'jimmac' Steiner + + bugs/TODO: + + * navbuttons overlap minithubroll if there's many images +*/ + +body { + background-color: #dedfce; + margin: 0px 50px 0px 50px; + width: auto; + /* + margin: auto; + width: 780px; + */ + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 10pt; +} + +img { + border: 0px; +} + +a { +} + +a:hover { +} + +h1.title { + background-color: black; + font-size: 16pt; + color: #808080; + width: 100%; + margin-bottom: 0px; + padding: 5px; + +} + +.title a { + display: block; + position:relative; + width:100%; + height:48px; + margin:0; padding:0; +} + +.title a span { + /* this overlays text below with an image */ + display: block; + position:absolute; left:0; top:0; z-index:1; + width:400px; height:48px; + margin:0; padding:0; + background-image: url("title.png"); + background-attachment: top left; + background-repeat: no-repeat; +} + +div.thumbroll { + position: relative; + margin: 10px 0px 4px 0px; + min-height: 28px; +} + +a#minus,a#plus { + display: block; + position: relative; + float: left; + width:24px; + height:24px; + margin:0px; padding:0px; +} + +a#minus { + background: url("minus.png") top left no-repeat; +} + +a#plus { + background: url("plus.png") top left no-repeat; +} + +.navigation { + background-color: #505050; + width: 100%; + padding: 5px; + font-size: 10px; + clear: both; +} + +.navigation a { + color: #a0a0a0; + font-weight: bold; +} + +div.footer { + font-size: 9px; + background-color: #d9dac9; + width: 100%; + margin-top: 2em; + padding: 5px 5px 20px 5px; + clear: both; +} + +div.year { + font-size: 11pt; + float: left; + margin: 10px; +} + +div.month { + margin: 0px 0px 0px 2em; + padding: 2px; +} + +div.month h4 { + margin: 0px 0px 3px 0px; +} + +/* ul won't work on safari with float: left */ +div.month p { + margin: 2px; + padding: 0px 0px 0px 6px; + list-style: none; + font-size: 10px; +} + +div#image { + position: relative; + display: block; + clear: both; + margin-left: auto; + margin-right: auto; + /* border: 1px solid black; */ + min-height: 480px; /* only works in gecko :/ */ + height: 500px; +} + +img#preview { + position: absolute; + top: 0px; + right: 0px; + bottom: 0px; + left: 0px; + margin-left: auto; + margin-right: auto; + /* margin-left: -320px; later fixed by javascript; what a kludge this was */ +} + +div.comment { + margin: 2em 0px; + color: #808080; + font-size: 9px; +} + +div.comment span { + color: black; + font-weight: bold; + font-size: 10px; +} + +div.prevthumb,div.nextthumb { + position: absolute; + margin-bottom: 1em; + width: 120px; + height: 140px; +} + +div.prevthub { + top: 0px; + left: 0px; + text-align: right; +} + +div.nextthumb { + margin-left: auto; + right: 0px; + top: 0px; +} + +div.nextthumb a,div.prevthumb a { + text-decoration: none; +} + +div#mqhq a { + display: block; + border: 2px solid black; + padding: 2px; + font-size: 10px; + font-weight: bold; + background-color: #d1940c; + color: black; + float: left; + width: 48px; + text-align: center; + margin: 2px; + +} + +div.navbuttons { + position: absolute; + top: 140px; left: 50%; + margin-left: -50px; + width: 64px; height: 32px; + z-index: 1; +} + +div.navbuttonsshell { + position: relative; + width: 100%; + margin: 2px; +} + +div.navbuttonsshell a#previcon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px; padding: 0; + top: 0px; + left: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the oveflow text */ + background: url("left.png") top left no-repeat; /* have a pixmap */ +} + +div.navbuttonsshell a#nexticon { + display: block; + position: absolute; + width: 24px; height: 24px; + margin: 2px 4px 2px auto; padding: 0; + right: 4px; top: 0px; + color: #f6f6f6; + font-size: 30px; /* make unreadable */ + text-indent: 2em; /* push it off screen, since khtml doesn't do 0px fonts */ + overflow: hidden; /* hide the overflow text */ + background: url("right.png") top left no-repeat; /* have a pixmap */ +} +div#mqhq { + margin: 2px 2px 4px 0px; + height: 32px; +} + +div.stylenavbar { + position:relative; + /* + left: 0px; + right: auto; + top:auto; + bottom:0px; + */ + margin: 2px; + font-size: 9px; +} diff --git a/www/inc/styles/grey/left.png b/www/inc/styles/grey/left.png new file mode 100644 index 0000000..63d306c Binary files /dev/null and b/www/inc/styles/grey/left.png differ diff --git a/www/inc/styles/grey/minus.png b/www/inc/styles/grey/minus.png new file mode 100644 index 0000000..bc7a830 Binary files /dev/null and b/www/inc/styles/grey/minus.png differ diff --git a/www/inc/styles/grey/plus.png b/www/inc/styles/grey/plus.png new file mode 100644 index 0000000..6b103cd Binary files /dev/null and b/www/inc/styles/grey/plus.png differ diff --git a/www/inc/styles/grey/right.png b/www/inc/styles/grey/right.png new file mode 100644 index 0000000..f998098 Binary files /dev/null and b/www/inc/styles/grey/right.png differ diff --git a/www/inc/styles/grey/title.png b/www/inc/styles/grey/title.png new file mode 100644 index 0000000..275528f Binary files /dev/null and b/www/inc/styles/grey/title.png differ diff --git a/www/inc/styles/ie/ie.css b/www/inc/styles/ie/ie.css new file mode 100644 index 0000000..36cd2c4 --- /dev/null +++ b/www/inc/styles/ie/ie.css @@ -0,0 +1,8 @@ +/* IE sucks; this is the only stylesheet doesn't crash it + this is low priority for me; if you want a nice stylesheet for IE + (if such thing can be written), please send a patch to jimmac@ximian.com +*/ + +body { + font-family: Verdana, Sans-Serif; +} diff --git a/www/inc/styles/ie7/README.txt b/www/inc/styles/ie7/README.txt new file mode 100644 index 0000000..63aaa70 --- /dev/null +++ b/www/inc/styles/ie7/README.txt @@ -0,0 +1,28 @@ +Installation +------------ + +Follow these simple instructions to get IE7 working immediately on your server: + + * download the latest IE7 ZIP file (https://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707) + + * extract the contents to a directory on your server (keep the folder names used in the ZIP) + + * you will now have an IE7 directory on your server + + * include the IE7 JavaScript library in the page you wish to test + + + + + * make sure this also points to the same directory + + * open the page in your web browser + + * the page should now be IE7 enabled. + +You may extract the contents of the ZIP file to your hard disk if you do not have access to a web server. + + +Enjoy ;-) + +Dean Edwards, 17th August 2004 diff --git a/www/inc/styles/ie7/blank.gif b/www/inc/styles/ie7/blank.gif new file mode 100644 index 0000000..a4fe2e6 Binary files /dev/null and b/www/inc/styles/ie7/blank.gif differ diff --git a/www/inc/styles/ie7/ie7-box-model.js b/www/inc/styles/ie7/ie7-box-model.js new file mode 100644 index 0000000..0ae71bb --- /dev/null +++ b/www/inc/styles/ie7/ie7-box-model.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(window.IE7)IE7.addModule("ie7-box-model",function(){var NUMERIC="\x5cs*:\x5cs*\x5cd[\x5cw%]*",UNIT=/^\d\w*$/,PERCENT=/^\d+%$/,PIXEL=/^\d+(px)?$/;var MATCH=(appVersion<6)?/\b(min|max)-(width|height)\s*:\s*\d/gi:/\b(min|max)-width\s*:\s*\d/gi;var AUTO=(appVersion<5.5)?/^auto|0cm$/:/^auto$/;var ie7_tmp=tmpElement();push(IE7.recalcs,function removeTempElement(){if(ie7_tmp.parentElement)ie7_tmp.parentElement.removeChild(ie7_tmp)});CSSFixes.addFix(MATCH,function(match){return match.slice(0,3)+match.charAt(4).toUpperCase()+match.slice(5)});var viewport=(quirksMode)?document.body:documentElement;function isFixed(element){return element.style.position=="fixed"||element.currentStyle.position=="fixed"};function layoutParent(element){var layoutParent=element.offsetParent;while(layoutParent&&!hasLayout(layoutParent))layoutParent=layoutParent.offsetParent;if(!layoutParent||isFixed(element))layoutParent=viewport;return layoutParent};function fixWidth(HEIGHT){fixWidth=function(element,value){if(!element.runtimeStyle.fixedWidth&&(!isHTML||element.tagName!="HR")){if(!value)value=element.currentStyle.width;element.runtimeStyle.fixedWidth=(UNIT.test(value))?Math.max(0,getFixedWidth(element,value)):value;element.runtimeStyle.width=element.runtimeStyle.fixedWidth;boxSizing(element)}};if(quirksMode)CSSFixes.addRecalc("width\x5cs*:\x5cs*\x5cd\x5cw*[^%]",fixWidth);var getFixedWidth=(quirksMode)?function(element,value){return getPixelWidth(element,value)+getBorderWidth(element)+getPaddingWidth(element)}:function(element,value){return getPixelWidth(element,value)};function getBorderWidth(element){return element.offsetWidth-element.clientWidth};function getPaddingWidth(element){return getPixelWidth(element,element.currentStyle.paddingLeft)+getPixelWidth(element,element.currentStyle.paddingRight)};function getMarginWidth(element){return((element.currentStyle.marginLeft=="auto")?0:getPixelLeft(element,element.currentStyle.marginLeft))+((element.currentStyle.marginRight=="auto")?0:getPixelLeft(element,element.currentStyle.marginRight))};function minWidth(element){minWidth[minWidth.count++]=element;if(element.currentStyle.minHeight=="auto")element.runtimeStyle.minHeight=0;fixWidth(element);boxSizing(element);resizeWidth(element)};minWidth.count=0;CSSFixes.addRecalc("min-width"+NUMERIC,minWidth);eval(String(minWidth).replace(/min/g,"max"));maxWidth.count=0;CSSFixes.addRecalc("max-width"+NUMERIC,maxWidth);function resizeWidth(element){var rect=element.getBoundingClientRect();var width=rect.right-rect.left;if(element.currentStyle.maxWidth&&width>=getFixedWidth(element,element.currentStyle.maxWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.maxWidth);else if(element.currentStyle.minWidth&&width<=getFixedWidth(element,element.currentStyle.minWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.minWidth);else element.runtimeStyle.width=element.runtimeStyle.fixedWidth};function fixRight(element){if((element.currentStyle.position=="absolute"||element.currentStyle.position=="fixed")&&element.currentStyle.left!="auto"&&element.currentStyle.right!="auto"&&AUTO.test(element.currentStyle.width)){fixRight[fixRight.count++]=element;boxSizing(element);resizeRight(element)}};fixRight.count=0;CSSFixes.addRecalc("right"+NUMERIC,fixRight);function resizeRight(element){element.runtimeStyle.width="";var parentElement=layoutParent(element);var left=(element.runtimeStyle.screenLeft)?element.getBoundingClientRect().left-2:getPixelLeft(element,element.currentStyle.left);var width=parentElement.clientWidth-getPixelLeft(element,element.currentStyle.right)-left-getMarginWidth(element);if(!quirksMode)width-=getBorderWidth(element)+getPaddingWidth(element);if(width<0)width=0;if(isFixed(element)||HEIGHT||element.offsetWidth0)return getPixelWidth(element,value);if(PIXEL.test(value))return parseInt(value);element.parentElement.appendChild(ie7_tmp);ie7_tmp.style.left=value;return ie7_tmp.offsetLeft}};eval(String(fixWidth).replace(/Width/g,"Height").replace(/width/g,"height").replace(/Left/g,"Top").replace(/left/g,"top").replace(/Right/g,"Bottom").replace(/right/g,"bottom"));fixWidth();fixHeight(true)}); diff --git a/www/inc/styles/ie7/ie7-core.js b/www/inc/styles/ie7/ie7-core.js new file mode 100644 index 0000000..91cf79a --- /dev/null +++ b/www/inc/styles/ie7/ie7-core.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(!window.IE7)new function(){try{window.IE7=this;var DUMMY=this.addModule=new Function;function unHide(){if(document.body)document.body.style.visibility="visible"};this.toString=function(){return "IE7 version 0.7.3 (alpha)"};var alert=(/ie7_debug/.test(location.search))?function(message){window.alert(IE7+"\n\n"+message)}:DUMMY;var appVersion=navigator.appVersion.match(/MSIE (\d\.\d)/)[1];if(/ie7_off/.test(location.search)||appVersion<5||!/^ms_/.test(document.documentElement.uniqueID))return unHide();var quirksMode=Boolean(document.compatMode!="CSS1Compat");var isHTML=(typeof document.mimeType=="unknown")?!/\.xml$/i.test(location.pathname):Boolean(document.mimeType!="XML Document");var LINKS=":link{ie7-link:link}:visited{ie7-link:visited}";var HEADER=LINKS;if(!isHTML)HEADER+="*{margin:0}";var HTMLFixes;var documentElement=document.documentElement;var modules={};this.addModule=function(name,script,autoload){if(!modules)return;if(loaded)eval("script="+String(script));if(autoload){script();script=DUMMY}modules[name]=script};var RELATIVE=/^[\w\.]+[^:]*$/;function makePath(href,path){if(RELATIVE.test(href))href=(path||"")+href;return href};function getPath(href,path){href=makePath(href,path);return href.slice(0,href.lastIndexOf("/")+1)};var path=getPath(document.scripts[document.scripts.length-1].src);var httpRequest=new ActiveXObject("Microsoft.XMLHTTP");function load(href,path){try{href=makePath(href,path);httpRequest.open("GET",href,false);httpRequest.send();return httpRequest.responseText}catch(ignore){alert("Error [1]: could not load file "+href);return ""}};var push=function(array,item){return array.push(item)};var pop=function(array){return array.pop()};if(appVersion<5.5)eval(load("ie7-ie5.js",path));if(document.readyState=="complete"||!isHTML)document.createStyleSheet();else document.write("");this.styleSheet=document.styleSheets[document.styleSheets.length-1];this.styleSheet.cssText=LINKS;this.styleSheet.ie7=true;var cssText={};function loadStyleSheet(styleSheet,path){var url=makePath(styleSheet.href,path);if(cssText[url])return "";cssText[url]=(styleSheet.disabled)?"":fixUrls(getCSSText(styleSheet,path),getPath(styleSheet.href,path));return cssText[url]};var getCSSText=function(styleSheet){return styleSheet.cssText};var URL=/(url\(['"]?)([\w\.]+[^:\)]*['"]?\))/gi;function fixUrls(cssText,pathname){return cssText.replace(URL,"$1"+pathname.slice(0,pathname.lastIndexOf("/")+1)+"$2")};this.recalcs=[];this.parse=DUMMY;var complete=false;function _load(){try{complete=true;var MEDIA=/\bscreen\b|\ball\b|^$/i;var styleSheets=document.styleSheets;var inlineStyles=[];var styles=document.getElementsByTagName("style");for(var i=styles.length-1;i>=0;i--){push(inlineStyles,/ie7-link/.test(styles[i].innerHTML)?"":styles[i].innerHTML)}function getCSSText(styleSheet,path){var cssText="";if(MEDIA.test(styleSheet.media)){for(var i=0;i\+~\s]/;var STREAM=/[\s>\+~:@#\.\(\)]|[^\s>\+~:@#\.\(\)]+/g;var NAMESPACE=/\|/;var IMPLIED_SELECTOR=/([\s>~\,]|[^(]\+|^)([\.:#@])/g;var ASTERISK="$1*$2";var cssCache={};function cssQuery(selector,from){var useCache=!from;var base=(from)?(from.constructor==Array)?from:[from]:[document];var selectors=selector.replace(IMPLIED_SELECTOR,ASTERISK).split(",");var match=[];for(var i=0;i1)pseudoClass+="\x5c([^)]*\x5c)";push(toString,pseudoClass)}}return toString.join("|")},"link":function(element){return Boolean(element.currentStyle["ie7-link"]=="link")},"visited":function(element){return Boolean(element.currentStyle["ie7-link"]=="visited")}};var dynamicPseudoClasses={toString:pseudoClasses.toString};function compareTagName(element,tagName,scopeName){if(scopeName&&element.scopeName!=scopeName)return false;return(tagName=="*")?isElement(element):(isHTML)?(element.tagName==tagName.toUpperCase()):(element.tagName==tagName)};var strings=[];function getString(string){return QUOTED.test(string)?strings[string.slice(1,-1)]:string};var encode=function(cssText){return cssText.replace(/(\x2f\*[^\*]*\*+([^\x2f][^\*]*\*+)*\x2f)|('[^']*')|("[^"]*")/g,function(match){return(match.charAt(0)=="/")?"":"'"+(push(strings,match.slice(1,-1))-1)+"'"}).replace(/@(namespace|import)[^;\n]+[;\n]|/g,"").replace(/\x5c:/g,"|").replace(/^\s+|\s*([\{\}\+\,>~\s;])\s*|\s+$/g,"$1")};function decode(cssText){return cssText.replace(/\|/g,"\x5c:").replace(/'(\d+)'/g,function(match,key){return strings[key]})};var handlers=[];function addEventHandler(element,type,handler){element.attachEvent(type,handler);push(handlers,arguments)};function removeEventHandler(element,type,handler){try{element.detachEvent(type,handler)}catch(ignore){}};window.attachEvent("onbeforeunload",function(){while(handlers.length){var handler=pop(handlers);removeEventHandler(handler[0],handler[1],handler[2])}});var hasLayout=(appVersion<6)?function(element){return element.clientWidth}:function(element){return element.currentStyle.hasLayout};function boxSizing(element){if(!hasLayout(element)){element.contentEditable=false;fixMargins(firstChildElement(element))}};function fixMargins(element){while(element){element.runtimeStyle.marginTop=element.currentStyle.marginTop;element=nextElement(element)}};var QUOTED=/('[^']*')|("[^"]*")/;function quote(value){return(QUOTED.test(value))?value:"'"+value+"'"};function unquote(value){return(QUOTED.test(value))?value.slice(1,-1):value};function tmpElement(tagName){var element=document.createElement(tagName||"object");element.style.cssText="position:absolute;padding:0;display:block;border:none;clip:rect(0 0 0 0);left:-9999";return element};function isElement(node){return Boolean(node&&node.nodeType==1&&node.tagName!="!"&&!node.ie7_anon)};function previousElement(element){while(element&&(element=element.previousSibling)&&!isElement(element))continue;return element};function nextElement(element){while(element&&(element=element.nextSibling)&&!isElement(element))continue;return element};function firstChildElement(element){element=element.firstChild;return(isElement(element))?element:nextElement(element)};var loaded=true;if(document.readyState=="complete")_load();else addEventHandler(document,"onreadystatechange",function(){if(!complete&&document.readyState=="complete")setTimeout(_load,0)})}catch(error){unHide();alert("Error [0]: "+error.description)}finally{}}(); diff --git a/www/inc/styles/ie7/ie7-css-strict.js b/www/inc/styles/ie7/ie7-css-strict.js new file mode 100644 index 0000000..7ed03d2 --- /dev/null +++ b/www/inc/styles/ie7/ie7-css-strict.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(window.IE7)IE7.addModule("ie7-strict",function(){if(!modules["ie7-css2"])return;var NONE=[],ID=/#/g,CLASS=/[:@\.]/g,TAG=/^\w|[\s>+~]\w/g;IE7.parser.parse=function(cssText){var DYNAMIC=new RegExp("(.*):("+dynamicPseudoClasses+")(.*)");function addRule(selector,cssText){var match=selector.match(DYNAMIC);if(match)new DynamicRule(selector,match[1],match[2],match[3],cssText);else new Rule(selector,cssText)};cssText=cssText.replace(IE7.PseudoElement.ALL,IE7.PseudoElement.ID);var RULE=/([^\{]+)\{(\d+)\}/g,match;while(match=RULE.exec(cssText)){addRule(match[1],match[2]);if(appVersion<5.5)cssText=cssText.slice(match.lastIndex)}IE7.classes.sort(Rule.compare);return IE7.classes.join("\n")};function Rule(selector,cssText){this.cssText=cssText;this.specificity=Rule.score(selector);this.inherit=IE7.Class;this.inherit(selector)};Rule.prototype=new IE7.Class.ancestor;Rule.prototype.toString=function(){return "."+this.name+"{"+this.cssText+"}"};Rule.score=function(selector){return(selector.match(ID)||NONE).length*10000+(selector.match(CLASS)||NONE).length*100+(selector.match(TAG)||NONE).length};Rule.compare=function(rule1,rule2){return rule1.specificity-rule2.specificity};function DynamicRule(selector,attach,dynamicPseudoClass,target,cssText){this.cssText=cssText;this.specificity=Rule.score(selector);this.inherit=IE7.DynamicStyle;this.inherit(selector,attach,dynamicPseudoClass,target)};DynamicRule.prototype=new IE7.DynamicStyle.ancestor;DynamicRule.prototype.toString=Rule.prototype.toString}); diff --git a/www/inc/styles/ie7/ie7-css2.js b/www/inc/styles/ie7/ie7-css2.js new file mode 100644 index 0000000..a9a03b7 --- /dev/null +++ b/www/inc/styles/ie7/ie7-css2.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(window.IE7)IE7.addModule("ie7-css2",function(){var CHILD=/>/g,ANCHOR=/(\ba(\.[\w-]+)?)$/i;IE7.classes=[];IE7.parser=new Parser;IE7.Class=Class;IE7.DynamicStyle=DynamicStyle;IE7.PseudoElement=PseudoElement;IE7.parse=function(){with(this.parser)this.cssText=decode(parse(encode(this.cssText)));for(var i=0;i+~][^:@,\x5cs{]+|:("+pseudoClasses+")|\x5c.[\x5cw-]+\x5c.[\x5cw-.]+|@[@\x5cd]+)","g");Class.COMPLEX=new RegExp("[^\x5cs(]+[+~]|@\x5cd+|:(link|visited|"+pseudoClasses+"|"+dynamicPseudoClasses+")|\x5c.[\x5cw-.]+","g");DynamicStyle.ALL=new RegExp("([^}]*):("+dynamicPseudoClasses+")([^{]*)","g");return cssText.replace(PseudoElement.ALL,PseudoElement.ID).replace(DynamicStyle.ALL,DynamicStyle.ID).replace(Class.ALL,Class.ID)};this.encode=function(cssText){AttributeSelector.ALL=new RegExp("\x5c[([^"+attributeTests+"=\x5c]]+)(["+attributeTests+"]?=?)([^\x5c]]+)?\x5c]","g");return cssText.replace(AttributeSelector.ALL,AttributeSelector.ID).replace(/\{[^\}]*\}/g,function($){return "{"+(push(encoded,$)-1)+"}"}).replace(/::/g,":").replace(/([^\}\s]*\,[^\{]*)(\{\d+\})/g,function(match,left,right){return left.split(",").join(right)+right})};this.decode=function(cssText){return cssText.replace(/\{(\d+)\}/g,function($,$1){return encoded[$1]})}};function _Class(){this.toString=function(){return "."+this.name};this.add=function(element){element.className+=" "+this.name};this.remove=function(element){element.className=element.className.replace(this.MATCH,"")};this.exec=function(){var match=cssQuery(this.selector);for(var i=0;i~]/.test(target))return match;return simpleSelector(match)+new DynamicStyle(match,attach,dynamicPseudoClass,target)};HEADER+=".ie7_anon{vertical-align:top;display:inline}";var HEX=/\x5c([a-fA-F\d]+)/g;function unicode(match,code){return eval("'\x5cu"+"0000".slice(code.length)+code+"'")};var pseudoElements=[];function _PseudoElement(){this.content=null;this.toString=function(){return ""};this.specificity=0;function addTimer(object,content,cssText){var timer=setInterval(function(){try{if(!object.load)return;object.load(object,content,cssText);clearInterval(timer)}catch(ignore){clearInterval(timer)}},10)};this.create=function(){if(this.content==null)return;for(var i=0;i";selectors[">"]=function(filtered,from,filter,scopeName){for(var i=0;i"){var endTag="",nextSibling;while((nextSibling=element.nextSibling)&&nextSibling.outerHTML!=endTag){element.parentNode.removeChild(nextSibling);fixedElement.appendChild(nextSibling)}if(nextSibling)element.parentNode.removeChild(nextSibling)}element.parentNode.replaceChild(fixedElement,element);return fixedElement};this.add=function(){push(fixes,arguments)};this.apply=function(){try{if(appVersion>5)document.namespaces.add("HTML","http://www.w3.org/1999/xhtml")}catch(ignore){}finally{for(var i=0;i=0)A=A.replace(new RegExp(s(r),'g'),l[r]);return A}('if(!.) (){{.=; =.= ; (){if(.)...=};.=(){ }; =(.(.))?(){.(++)}:; =..()[1];if(.(.)||<5||!.(..)) (); =(.!=); =( .==)?!i.(.):(.!=); =; =;if(!)+=; ; =.; ={};.=(,,){if(!);if()(+());if(){();=}[]=}; =; (,){if(.())=(||)+; }; (,){=(,); .(0,.()+1)}; =(.[..-1].); = (); (,){{=(,);.(,,);.(); .}(){(+); }}; =(,){ .()}; =(){ .()};if(<5.5)((,));if(.==||!).(); .();.=.[..-1];..=;..=; ={}; (,){ =(.,);if([]) ;[]=(.)?:((,),(.,)); []}; =(){ .}; =gi; (,){ .(,+.(0,.()+1)+)};.=[];.=; =; _(){{=; =i; =.; =[]; =.();( i=.-1;i>=0;i--){(,.([i].)?:[i].)} (,){ =;if(.(.)){( i=0;i<..;i++){+=.(.[i],(.,))}+=((.)?(,):())} };.=;(i=0;i<.;i++).+=([i],);.=(.);(i in )[i](); ;if().();.();.();..=+(.);(i=0;i<.;i++){if(![i].&&![i].)[i].=}.();()}(){(+.)}{()}};.=(){.();( i=0;i<..;i++).[i]()}; = (){ =[];.=(){(,)}; =[];.=(,){ = (+,); =.;=[];(=.()){(,[1]);if(<5.5)=.(.)}if(.){=.();(,)}};.=(){( i=0;i<.;i++){.=..([i][0],[i][1])}.(,);.(,(){if(...==)(.)})};.=(){( i=0;i<.;i++){ =([i][0]);( j=0;j<.;j++)[i][1]([j])}};.(gi,);if(<6).(gi,);if(){ =.();( i=0;i<.;i++)[[i]]=[i-1]||; ($,$1,$2,$3){ $1+[$3]};.( (+.()+,),)}}; =; =g; =; =g; =; ={}; (,){ =!; =()?(.==)?:[]:[]; =.(,).(); =[];( i=0;i<.;i++){=([i]);if(.(0,3).()==){=.(2);=(,[1])} =; j=0,,,,=;(j<.){=[j++];=[j++];+=+;=;if([j]==){([j++]!=)+=[j];=.(0,-1);+=++}=(&&[])?[]:(,,,);if()[]=}=.()} }; (){if(.())=+; .()}; (,,,){ =;if(.()){=.();=[0];=[1]} =[];if([])[](,,,||); }; (,id){ =[],i,j;(i=0;i<.;i++){ =[i]..(id);if(){if(.==)(,); (j=0;j<.;j++)(,[j])}} }; ={:(,,,){( i=0;i<.;i++){ =(==&&[i].)?[i].:[i].();( j=0;j<.;j++){if(([j])&&(!||[j].==))(,[j])}}},:(,,){( i=0;i<.;i++)if([i].id==)(,[i])},:(,,){= (++);( i=0;i<.;i++)if(.([i].))(,[i])},:(,,,){=[];if()( i=0;i<.;i++)if(([i],))(,[i])}}; =; ={:(){ =[];( in ){if(!=&&!=){if([].>1)+=;(,)}} .()},:(){ (.[]==)},:(){ (.[]==)}}; ={:.}; (,,){if(&&.!=) ;(==)?():()?(.==.()):(.==)}; =[]; (){ .()?[.(1,-1)]:}; =(){ .(g,(){(.(0)==)?:+((,.(1,-1))-1)+}).(g,).(g,).(g,)}; (){ .(g,).(g,(,){ []})}; =[]; (,,){.(,);(,)}; (,,){{.(,)}(){}};.(,(){(.){ =();([0],[1],[2])}}); =(<6)?(){ .}:(){ ..}; (){if(!()){.=;(())}}; (){(){..=..;=()}}; =; (){(.())?:++}; (){(.())?.(1,-1):}; (){ =.(||);..=; }; (){ (&&.==1&&.!=&&!.)}; (){(&&(=.)&&!()); }; (){(&&(=.)&&!()); }; (){=.;(())?:()}; =;.(,(){if()= (){ =[]; (){ =.(+..(1));if(..(-2)!=){ =+.+,;((=.)&&.!=){..();.()}if()..()}..(,); };.=(){(,)};.=(){{if(>5)..(,)}(){}{( i=0;i<.;i++){ =([i][0]);( j=0;j<.;j++)[i][1]([j])}}};.(,(){if(!.){ =(,)[0];if(){if(!.id).id=.;.=.id}}});.(,(){(); []});.(,(){if(.==){ =..(i);..=()?[1]:}if(.==){(,,(){..=;(+.+,1)})}});.(,(){ =;(,,(){( i=0;i<.;i++){if(.([i].)&&![i].&&![i]..){[i].=;(+[i].+,1)} if([i].==&&[i].==){(+[i].++[i].+,1);[i].=[i]..}}})})}},);.(,(){ =,=,=,=; =(<6)?gi:gi; =(<5.5)?:; =();(., (){if(.)..()});.(,(){ .(0,3)+.(4).()+.(5)}); =()?.:; (){ ..==||..==}; (){ =.;(&&!())=.;if(!||())=; }; (){=(,){if(!..&&(!||.!=)){if(!)=..;..=(.())?.(0,(,)):;..=..;()}};if().(,); =()?(,){ (,)+()+()}:(,){ (,)}; (){ .-.}; (){ (,..)+(,..)}; (){((..==)?0:(,..))+((..==)?0:(,..))}; (){[.++]=;if(..==)..=0;();();()};.=0;.(+,);(().(g,));.=0;.(+,); (){ =.(); =.-.;if(..&&>=(,..))..=(,..); if(..&&<=(,..))..=(,..); ..=..}; (){if((..==||..==)&&..!=&&..!=&&.(..)){[.++]=;();()}};.=0;.(+,); (){..=; =(); =(..)?.().-2:(,..); =.-(,..)--();if(!)-=()+();if(<0)=0;if(()||||.<){..=;..=}}; =.;(,,(){ i,=(<.);=.;(i=0;i<.;i++){ =[i]; =(..==..);if(&&)..=;if(==)()}(i=0;i<.;i++){ =[i]; =(..==..);if(!&&)..=;if(!=)()}(i=0;i<.;i++)([i]);()}); (,){if(.()) ();if(.()) (()/100*().); =(.)?:.;.();..=; .}; (,){if(()>0) (,);if(.()) ();..();..=; .}};(().(g,).(g,).(g,).(g,).(g,).(g,));();()});=;if(.==)_(); (,,(){if(!&&.==)(_,0)})}(){();(+.)}{}}();',340,0,/./,String,95,'element`var`function`return`value`from`cssText`width`currentStyle`this`document`match`length`filter`for`runtimeStyle`test`href`replace`IE7`selector`styleSheet`push`filtered`path`tagName`slice`minWidth`x5cs`layoutParent`fixedWidth`scopeName`filterArgs`left`ie7_tmp`clientWidth`appVersion`ie7`fixes`link`styleSheets`while`recalcs`nextSibling`style`parentElement`count`maxWidth`CSSFixes`input`new`handler`toString`else`true`fixRight`documentElement`addRecalc`auto`position`type`false`token`SIZES`pattern`alert`load`complete`fixWidth`right`getPixelWidth`quirksMode`boxSizing`getFixedWidth`isHTML`all`add`elements`isElement`pseudoClass`selectors`cacheSelector`modules`script`catch`addEventHandler`getPixelLeft`wider`window`max`addFix`uniqueID`disabled`cssCache`try`arguments`node`Boolean`x5c`visited`subset`url`error`unHide`setTimeout`loaded`eval`parseInt`resizeWidth`NUMERIC`rect`min`offsetParent`hasLayout`addModule`outerHTML`cssQuery`apply`fixedElement`HTMLFixes`display`QUOTED`handlers`pop`strings`string`item`small`recalc`getCSSText`getPath`styles`DUMMY`pathname`makePath`array`httpRequest`finally`Error`readyState`String`appendChild`PIXEL`offsetWidth`resizeRight`isFixed`getPaddingWidth`getBorderWidth`fixed`absolute`x5cw`body`removeChild`box`submit`clicked`fix`select`ignore`parentNode`nextElement`x2f`pseudoClasses`join`RegExp`split`useCache`base`large`HEADER`inlineStyles`LINKS`location`description`height`PERCENT`removeTempElement`HEIGHT`getMarginWidth`getBoundingClientRect`AUTO`minHeight`marginRight`marginLeft`x5cd`UNIT`viewport`toUpperCase`charAt`MATCH`tmpElement`BUTTON`UNSUCCESSFUL`button`abbr`delete`htmlFor`HTML`endTag`createElement`firstChildElement`continue`block`marginTop`fixMargins`removeEventHandler`attachEvent`key`decode`encode`getElementsByTagName`selectById`NAMESPACE`STREAM`STANDARD_SELECT`toStream`ASTERISK`IMPLIED_SELECTOR`reg`parse`loadStyleSheet`imports`MEDIA`innerHTML`lastIndexOf`URL`fixUrls`scripts`RELATIVE`name`autoload`mimeType`search`message`onreadystatechange`fixHeight`bottom`Bottom`Right`top`Top`Left`Height`Width`offsetLeft`canHaveChildren`parseFloat`onresize`screenLeft`paddingRight`paddingLeft`Math`model`onsubmit`reset`form`onclick`textarea`label`xhtml`org`www`http`namespaces`replaceChild`html4`firstChild`previousSibling`previousElement`ie7_anon`nodeType`clip`none`border`padding`object`unquote`quote`contentEditable`onbeforeunload`detachEvent`import`namespace`getString`compareTagName`dynamicPseudoClasses`attributeTests`className`null`concat`Array`constructor`size`font`medium`list`inline`float`relative`content`sizing`lastIndex`exec`successfully`callee`media`ball`bscreen`write`createStyleSheet`ie5`file`not`could`responseText`send`GET`open`XMLHTTP`Microsoft`ActiveXObject`src`margin`Document`XML`xml`unknown`typeof`CSS1Compat`compatMode`ms_`ie7_off`MSIE`navigator`ie7_debug`alpha`version`visible`visibility`Function`fromCharCode`` (\\d\\.\\d)``^`\\.$`^[\\w\\.]+[^:]*$`(\\([\x27"]?)([\\w\\.]+[^:\\)]*[\x27"]?\\))`\\\\b|\\\\b|^$`-`(\\s*:\\s*(|))`\\s*:\\s*-`^[^>\\+~\\s]`[\\s>\\+~:@#\\.\\(\\)]|[^\\s>\\+~:@#\\.\\(\\)]+`\\|`([\\s>~\\,]|[^(]\\+|^)([\\.:#@])`(\\\\*[^\\*]*\\*+([^\\][^\\*]*\\*+)*\\)|(\x27[^\x27]*\x27)|("[^"]*")`@(|)[^;\\n]+[;\\n]|`\\:`^\\s+|\\s*([\\{\\}\\+\\,>~\\s;])\\s*|\\s+$`\x27(\\d+)\x27`(\x27[^\x27]*\x27)|("[^"]*")` ="([^"]*)"`^(||)$`^\\d\\w*$`^\\d+%$`^\\d+(px)?$`\\b(|)-(|)\\s*:\\s*\\d`\\b(|)-\\s*:\\s*\\d`^|0cm$`^$````````` 0.7.3 ()`\\n\\n``` `:{-:}:{-:}`*{:0}`=``/`.`` [1]: `-.js``<>`$1`$2`` ` [2]: `([^{}]*)\\{([^}]*[^\\-])?`gi`-\\*:\\*-`\\*:\\*``:;$1`:`xx-,x-,,,,x-,xx-`,`xx-`((-)?\\*:\\*)(`|`)`$1*$2` *#`(` `*`#`.`(^|\\)`(\\|$)`:```\\([^)]*\\)`-`\x27`\\:```:;:0;:;:;:(0 0 0 0);:-9999`!`-`<:`/>```://.w3./1999/``,,`` `,````..`..=```.=`.=\x27`--`\\*:\\*\\[\\%]*``HR`\\*:\\*\\\\*[^%]``-``-``````````` [0]: '.split('\x60'))); +/* packed with http://dean.edwards.name/packer/ */ diff --git a/www/inc/styles/ie7/ie7-lite.js b/www/inc/styles/ie7/ie7-lite.js new file mode 100644 index 0000000..493d8f1 --- /dev/null +++ b/www/inc/styles/ie7/ie7-lite.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(!window.IE7)new function(){try{window.IE7=this;var DUMMY=this.addModule=new Function;function unHide(){if(document.body)document.body.style.visibility="visible"};this.toString=function(){return "IE7 version 0.7.3 (alpha)"};var alert=(/ie7_debug/.test(location.search))?function(message){window.alert(IE7+"\n\n"+message)}:DUMMY;var appVersion=navigator.appVersion.match(/MSIE (\d\.\d)/)[1];if(/ie7_off/.test(location.search)||appVersion<5||!/^ms_/.test(document.documentElement.uniqueID))return unHide();var quirksMode=Boolean(document.compatMode!="CSS1Compat");var isHTML=(typeof document.mimeType=="unknown")?!/\.xml$/i.test(location.pathname):Boolean(document.mimeType!="XML Document");var LINKS=":link{ie7-link:link}:visited{ie7-link:visited}";var HEADER=LINKS;if(!isHTML)HEADER+="*{margin:0}";var HTMLFixes;var documentElement=document.documentElement;var modules={};this.addModule=function(name,script,autoload){if(!modules)return;if(loaded)eval("script="+String(script));if(autoload){script();script=DUMMY}modules[name]=script};var RELATIVE=/^[\w\.]+[^:]*$/;function makePath(href,path){if(RELATIVE.test(href))href=(path||"")+href;return href};function getPath(href,path){href=makePath(href,path);return href.slice(0,href.lastIndexOf("/")+1)};var path=getPath(document.scripts[document.scripts.length-1].src);var httpRequest=new ActiveXObject("Microsoft.XMLHTTP");function load(href,path){try{href=makePath(href,path);httpRequest.open("GET",href,false);httpRequest.send();return httpRequest.responseText}catch(ignore){alert("Error [1]: could not load file "+href);return ""}};var push=function(array,item){return array.push(item)};var pop=function(array){return array.pop()};if(appVersion<5.5)eval(load("ie7-ie5.js",path));if(document.readyState=="complete"||!isHTML)document.createStyleSheet();else document.write("");this.styleSheet=document.styleSheets[document.styleSheets.length-1];this.styleSheet.cssText=LINKS;this.styleSheet.ie7=true;var cssText={};function loadStyleSheet(styleSheet,path){var url=makePath(styleSheet.href,path);if(cssText[url])return "";cssText[url]=(styleSheet.disabled)?"":fixUrls(getCSSText(styleSheet,path),getPath(styleSheet.href,path));return cssText[url]};var getCSSText=function(styleSheet){return styleSheet.cssText};var URL=/(url\(['"]?)([\w\.]+[^:\)]*['"]?\))/gi;function fixUrls(cssText,pathname){return cssText.replace(URL,"$1"+pathname.slice(0,pathname.lastIndexOf("/")+1)+"$2")};this.recalcs=[];this.parse=DUMMY;var complete=false;function _load(){try{complete=true;var MEDIA=/\bscreen\b|\ball\b|^$/i;var styleSheets=document.styleSheets;var inlineStyles=[];var styles=document.getElementsByTagName("style");for(var i=styles.length-1;i>=0;i--){push(inlineStyles,/ie7-link/.test(styles[i].innerHTML)?"":styles[i].innerHTML)}function getCSSText(styleSheet,path){var cssText="";if(MEDIA.test(styleSheet.media)){for(var i=0;i\+~\s]/;var STREAM=/[\s>\+~:@#\.\(\)]|[^\s>\+~:@#\.\(\)]+/g;var NAMESPACE=/\|/;var IMPLIED_SELECTOR=/([\s>~\,]|[^(]\+|^)([\.:#@])/g;var ASTERISK="$1*$2";var cssCache={};function cssQuery(selector,from){var useCache=!from;var base=(from)?(from.constructor==Array)?from:[from]:[document];var selectors=selector.replace(IMPLIED_SELECTOR,ASTERISK).split(",");var match=[];for(var i=0;i1)pseudoClass+="\x5c([^)]*\x5c)";push(toString,pseudoClass)}}return toString.join("|")},"link":function(element){return Boolean(element.currentStyle["ie7-link"]=="link")},"visited":function(element){return Boolean(element.currentStyle["ie7-link"]=="visited")}};var dynamicPseudoClasses={toString:pseudoClasses.toString};function compareTagName(element,tagName,scopeName){if(scopeName&&element.scopeName!=scopeName)return false;return(tagName=="*")?isElement(element):(isHTML)?(element.tagName==tagName.toUpperCase()):(element.tagName==tagName)};var strings=[];function getString(string){return QUOTED.test(string)?strings[string.slice(1,-1)]:string};var encode=function(cssText){return cssText.replace(/(\x2f\*[^\*]*\*+([^\x2f][^\*]*\*+)*\x2f)|('[^']*')|("[^"]*")/g,function(match){return(match.charAt(0)=="/")?"":"'"+(push(strings,match.slice(1,-1))-1)+"'"}).replace(/@(namespace|import)[^;\n]+[;\n]|/g,"").replace(/\x5c:/g,"|").replace(/^\s+|\s*([\{\}\+\,>~\s;])\s*|\s+$/g,"$1")};function decode(cssText){return cssText.replace(/\|/g,"\x5c:").replace(/'(\d+)'/g,function(match,key){return strings[key]})};var handlers=[];function addEventHandler(element,type,handler){element.attachEvent(type,handler);push(handlers,arguments)};function removeEventHandler(element,type,handler){try{element.detachEvent(type,handler)}catch(ignore){}};window.attachEvent("onbeforeunload",function(){while(handlers.length){var handler=pop(handlers);removeEventHandler(handler[0],handler[1],handler[2])}});var hasLayout=(appVersion<6)?function(element){return element.clientWidth}:function(element){return element.currentStyle.hasLayout};function boxSizing(element){if(!hasLayout(element)){element.contentEditable=false;fixMargins(firstChildElement(element))}};function fixMargins(element){while(element){element.runtimeStyle.marginTop=element.currentStyle.marginTop;element=nextElement(element)}};var QUOTED=/('[^']*')|("[^"]*")/;function quote(value){return(QUOTED.test(value))?value:"'"+value+"'"};function unquote(value){return(QUOTED.test(value))?value.slice(1,-1):value};function tmpElement(tagName){var element=document.createElement(tagName||"object");element.style.cssText="position:absolute;padding:0;display:block;border:none;clip:rect(0 0 0 0);left:-9999";return element};function isElement(node){return Boolean(node&&node.nodeType==1&&node.tagName!="!"&&!node.ie7_anon)};function previousElement(element){while(element&&(element=element.previousSibling)&&!isElement(element))continue;return element};function nextElement(element){while(element&&(element=element.nextSibling)&&!isElement(element))continue;return element};function firstChildElement(element){element=element.firstChild;return(isElement(element))?element:nextElement(element)};var loaded=false;IE7.addModule("ie7-html4",function(){if(isHTML)HTMLFixes=new function(){var fixes=[];function fix(element){var fixedElement=document.createElement(""){var endTag="",nextSibling;while((nextSibling=element.nextSibling)&&nextSibling.outerHTML!=endTag){element.parentNode.removeChild(nextSibling);fixedElement.appendChild(nextSibling)}if(nextSibling)element.parentNode.removeChild(nextSibling)}element.parentNode.replaceChild(fixedElement,element);return fixedElement};this.add=function(){push(fixes,arguments)};this.apply=function(){try{if(appVersion>5)document.namespaces.add("HTML","http://www.w3.org/1999/xhtml")}catch(ignore){}finally{for(var i=0;i=getFixedWidth(element,element.currentStyle.maxWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.maxWidth);else if(element.currentStyle.minWidth&&width<=getFixedWidth(element,element.currentStyle.minWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.minWidth);else element.runtimeStyle.width=element.runtimeStyle.fixedWidth};function fixRight(element){if((element.currentStyle.position=="absolute"||element.currentStyle.position=="fixed")&&element.currentStyle.left!="auto"&&element.currentStyle.right!="auto"&&AUTO.test(element.currentStyle.width)){fixRight[fixRight.count++]=element;boxSizing(element);resizeRight(element)}};fixRight.count=0;CSSFixes.addRecalc("right"+NUMERIC,fixRight);function resizeRight(element){element.runtimeStyle.width="";var parentElement=layoutParent(element);var left=(element.runtimeStyle.screenLeft)?element.getBoundingClientRect().left-2:getPixelLeft(element,element.currentStyle.left);var width=parentElement.clientWidth-getPixelLeft(element,element.currentStyle.right)-left-getMarginWidth(element);if(!quirksMode)width-=getBorderWidth(element)+getPaddingWidth(element);if(width<0)width=0;if(isFixed(element)||HEIGHT||element.offsetWidth0)return getPixelWidth(element,value);if(PIXEL.test(value))return parseInt(value);element.parentElement.appendChild(ie7_tmp);ie7_tmp.style.left=value;return ie7_tmp.offsetLeft}};eval(String(fixWidth).replace(/Width/g,"Height").replace(/width/g,"height").replace(/Left/g,"Top").replace(/left/g,"top").replace(/Right/g,"Bottom").replace(/right/g,"bottom"));fixWidth();fixHeight(true)});loaded=true;if(document.readyState=="complete")_load();else addEventHandler(document,"onreadystatechange",function(){if(!complete&&document.readyState=="complete")setTimeout(_load,0)})}catch(error){unHide();alert("Error [0]: "+error.description)}finally{}}(); diff --git a/www/inc/styles/ie7/ie7-logo.gif b/www/inc/styles/ie7/ie7-logo.gif new file mode 100644 index 0000000..fe4a7bc Binary files /dev/null and b/www/inc/styles/ie7/ie7-logo.gif differ diff --git a/www/inc/styles/ie7/ie7-png.js b/www/inc/styles/ie7/ie7-png.js new file mode 100644 index 0000000..f9c7e80 --- /dev/null +++ b/www/inc/styles/ie7/ie7-png.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(window.IE7)IE7.addModule("ie7-png",function(){if(appVersion<5.5)return;var FILTER="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=%1,sizingMethod='scale')";var NULL=(/\bSV1\b/.test(navigator.userAgent))?makePath("blank.gif",path):"javascript:'#define x_width 1\x5cn#define x_height 1\x5cnstatic char x_bits[]={0x00}'";var pngTest=new RegExp((window.IE7_PNG_SUFFIX||"-trans.png")+"$","i");function addFilter(element,src){element.runtimeStyle.filter=FILTER.replace(/%1/,src)};var MATCH=/background(-image)?\s*:([^(};]*)url\(([^\)]+)\)([^;}]*)/gi;CSSFixes.addFix(MATCH,function replace(match,image,prefix,url,suffix){url=getString(url);return pngTest.test(url)?"filter:"+FILTER.replace(/scale/,"crop").replace(/%1/,url)+";zoom:1;background"+(image||"")+":"+(prefix||"")+"none"+(suffix||""):match});if(HTMLFixes){function fixImg(element){if(pngTest.test(element.src)){var width=element.width,height=element.height;addFilter(element,element.src);element.src=NULL;element.width=width;element.height=height}else element.runtimeStyle.filter=""};HTMLFixes.add("img,input",function(element){if(element.tagName=="INPUT"&&element.type!="image")return;fixImg(element);addEventHandler(element,"onpropertychange",function(){if(event.propertyName=="src")fixImg(element)})})}}); diff --git a/www/inc/styles/ie7/ie7-server.css b/www/inc/styles/ie7/ie7-server.css new file mode 100644 index 0000000..47c7edd --- /dev/null +++ b/www/inc/styles/ie7/ie7-server.css @@ -0,0 +1,43 @@ +body, td, dd {font: 10pt Verdana, Arial, Helvetica, sans-serif; color: black;} +body {margin: 8px; background: #333;} +h1 {margin: 0;} +h1 a:hover {background-color: transparent;} +h2 {font-size: 1.75em;} +h3 {font-size: 1.1em;} +a:active {color: #ff0000;} +a:link {color: #0a6cce;} +a:visited {color: #0a6cce;} +code, *.code {font-family: monospace; font-size: 100%; font-style: normal; white-space: nowrap; + padding: 0 1px; background: #f2f3f8; border: #d6d9e9 1px solid;} +code.box {display: block; padding: 10px; margin: 0.5em 0;} +ul {list-style-type: square;} +dd {margin: .2em 0 .5em 1em;} +dl.library dt {display: list-item; margin-left: 3em; list-style-type: square;} +dl.library dd {font-style: italic; margin-left: 3em;} +dt {font-weight: bold;} +dt.pack {color: brown;} +a img {border-style: none;} +hr {height: 1px; color: #000; border-style: solid;} +hr.short {height: 2px; width: 100px;} +div.document {background: #eef; padding: 20px 20px 5px 20px; width: 600px; border: 1px solid black;} +hr {border-bottom-width: 0px;} +div.header hr {color: #0a6cce; background-color: #0a6cce;} +div.content {min-height: 100px;} +div.footer hr {color: #898e79; background-color: #898e79; } +div.header, div.header a:link, div.header a:visited, h3 a:link, h3 a:visited {text-decoration: none;} +a:hover {color: #fff; background-color: #0a6cce; text-decoration: none;} +div.footer a:hover {background-color: transparent; text-decoration: none;} +div.header .menu {text-align: right;} +div.footer {font-size: x-small; margin-top: 8px;} +div.footnote {font-family: "times new roman", times; font-style: italic; margin-top: 10px;} +#license {margin-top: 5px; font-size: xx-small;} +table {border-top: 1px solid #000; border-left: 1px solid #000;} +th {background-color: #fff; text-align: left;} +th, td {border-right: 1px solid #000; border-bottom: 1px solid #000;} +th.small {width: 100px;} +th.medium {width: 200px;} +th.large {width: 270px;} +th.x-large {width: 408px;} +table.fixed {table-layout: fixed;} +span.comment {color: #666;} + diff --git a/www/inc/styles/ie7/ie7-standard-p.js b/www/inc/styles/ie7/ie7-standard-p.js new file mode 100644 index 0000000..8dfb5e0 --- /dev/null +++ b/www/inc/styles/ie7/ie7-standard-p.js @@ -0,0 +1,3 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +eval(function(A,r,s,e,n,a,l){s=function(e){return((e=0)A=A.replace(new RegExp(s(r),'g'),l[r]);return A}('if(!.) (){{.=; =.= ; (){if(.)...=};.=(){ }; =(.(.))?(){.(++)}:; =..()[1];if(.(.)||<5||!.(..)) (); =(.!=); =( .==)?!i.(.):(.!=); =; =;if(!)+=; ; =.; ={};.=(,,){if(!);if()(+());if(){();=}[]=}; =; (,){if(.())=(||)+; }; (,){=(,); .(0,.()+1)}; =(.[..-1].); = (); (,){{=(,);.(,,);.(); .}(){(+); }}; =(,){ .()}; =(){ .()};if(<5.5)((,));if(.==||!).(); .();.=.[..-1];..=;..=; ={}; (,){ =(.,);if([]) ;[]=(.)?:((,),(.,)); []}; =(){ .}; =gi; (,){ .(,+.(0,.()+1)+)};.=[];.=; =; _(){{=; =i; =.; =[]; =.();( i=.-1;i>=0;i--){(,.([i].)?:[i].)} (,){ =;if(.(.)){( i=0;i<..;i++){+=.(.[i],(.,))}+=((.)?(,):())} };.=;(i=0;i<.;i++).+=([i],);.=(.);(i in )[i](); ;if().();.();.();..=+(.);(i=0;i<.;i++){if(![i].&&![i].)[i].=}.();()}(){(+.)}{()}};.=(){.();( i=0;i<..;i++).[i]()}; = (){ =[];.=(){(,)}; =[];.=(,){ = (+,); =.;=[];(=.()){(,[1]);if(<5.5)=.(.)}if(.){=.();(,)}};.=(){( i=0;i<.;i++){.=..([i][0],[i][1])}.(,);.(,(){if(...==)(.)})};.=(){( i=0;i<.;i++){ =([i][0]);( j=0;j<.;j++)[i][1]([j])}};.(gi,);if(<6).(gi,);if(){ =.();( i=0;i<.;i++)[[i]]=[i-1]||; ($,$1,$2,$3){ $1+[$3]};.( (+.()+,),)}}; =; =g; =; =g; =; ={}; (,){ =!; =()?(.==)?:[]:[]; =.(,).(); =[];( i=0;i<.;i++){=([i]);if(.(0,3).()==){=.(2);=(,[1])} =; j=0,,,,=;(j<.){=[j++];=[j++];+=+;=;if([j]==){([j++]!=)+=[j];=.(0,-1);+=++}=(&&[])?[]:(,,,);if()[]=}=.()} }; (){if(.())=+; .()}; (,,,){ =;if(.()){=.();=[0];=[1]} =[];if([])[](,,,||); }; (,id){ =[],i,j;(i=0;i<.;i++){ =[i]..(id);if(){if(.==)(,); (j=0;j<.;j++)(,[j])}} }; ={:(,,,){( i=0;i<.;i++){ =(==&&[i].)?[i].:[i].();( j=0;j<.;j++){if(([j])&&(!||[j].==))(,[j])}}},:(,,){( i=0;i<.;i++)if([i].id==)(,[i])},:(,,){= (++);( i=0;i<.;i++)if(.([i].))(,[i])},:(,,,){=[];if()( i=0;i<.;i++)if(([i],))(,[i])}}; =; ={:(){ =[];( in ){if(!=&&!=){if([].>1)+=;(,)}} .()},:(){ (.[]==)},:(){ (.[]==)}}; ={:.}; (,,){if(&&.!=) ;(==)?():()?(.==.()):(.==)}; =[]; (){ .()?[.(1,-1)]:}; =(){ .(g,(){(.(0)==)?:+((,.(1,-1))-1)+}).(g,).(g,).(g,)}; (){ .(g,).(g,(,){ []})}; =[]; (,,){.(,);(,)}; (,,){{.(,)}(){}};.(,(){(.){ =();([0],[1],[2])}}); =(<6)?(){ .}:(){ ..}; (){if(!()){.=;(())}}; (){(){..=..;=()}}; =; (){(.())?:++}; (){(.())?.(1,-1):}; (){ =.(||);..=; }; (){ (&&.==1&&.!=&&!.)}; (){(&&(=.)&&!()); }; (){(&&(=.)&&!()); }; (){=.;(())?:()}; =;.(,(){if()= (){ =[]; (){ =.(+..(1));if(..(-2)!=){ =+.+,;((=.)&&.!=){..();.()}if()..()}..(,); };.=(){(,)};.=(){{if(>5)..(,)}(){}{( i=0;i<.;i++){ =([i][0]);( j=0;j<.;j++)[i][1]([j])}}};.(,(){if(!.){ =(,)[0];if(){if(!.id).id=.;.=.id}}});.(,(){(); []});.(,(){if(.==){ =..(i);..=()?[1]:}if(.==){(,,(){..=;(+.+,1)})}});.(,(){ =;(,,(){( i=0;i<.;i++){if(.([i].)&&![i].&&![i]..){[i].=;(+[i].+,1)} if([i].==&&[i].==){(+[i].++[i].+,1);[i].=[i]..}}})})}},);.(,(){ =,=,=,=; =(<6)?gi:gi; =(<5.5)?:; =();(., (){if(.)..()});.(,(){ .(0,3)+.(4).()+.(5)}); =()?.:; (){ ..==||..==}; (){ =.;(&&!())=.;if(!||())=; }; (){=(,){if(!..&&(!||.!=)){if(!)=..;..=(.())?.(0,(,)):;..=..;()}};if().(,); =()?(,){ (,)+()+()}:(,){ (,)}; (){ .-.}; (){ (,..)+(,..)}; (){((..==)?0:(,..))+((..==)?0:(,..))}; (){[.++]=;if(..==)..=0;();();()};.=0;.(+,);(().(g,));.=0;.(+,); (){ =.(); =.-.;if(..&&>=(,..))..=(,..); if(..&&<=(,..))..=(,..); ..=..}; (){if((..==||..==)&&..!=&&..!=&&.(..)){[.++]=;();()}};.=0;.(+,); (){..=; =(); =(..)?.().-2:(,..); =.-(,..)--();if(!)-=()+();if(<0)=0;if(()||||.<){..=;..=}}; =.;(,,(){ i,=(<.);=.;(i=0;i<.;i++){ =[i]; =(..==..);if(&&)..=;if(==)()}(i=0;i<.;i++){ =[i]; =(..==..);if(!&&)..=;if(!=)()}(i=0;i<.;i++)([i]);()}); (,){if(.()) ();if(.()) (()/100*().); =(.)?:.;.();..=; .}; (,){if(()>0) (,);if(.()) ();..();..=; .}};(().(g,).(g,).(g,).(g,).(g,).(g,));();()});.(,(){ =g,=i;.=[];.= ;.=;.=;.=;.=(){(.).=(((.)));( i=0;i<..;i++).[i].();(i=0;i<.;i++)[i].()};=(,){ (.,)}; =[]; (){.=(){.= (++,);.= (++++,);.= (++,); .(.,.ID).(.,.ID).(.,.ID)};.=(){.= (++++,); .(.,.ID).(g,($){ +((,$)-1)+}).(g,).(g,(,,){ .().()+})};.=(){ .(g,($,$1){ [$1]})}}; _(){.=(){ +.};.=(){.+=+.};.=(){.=..(.,)};.=(){ =(.);( i=0;i<.;i++).([i])}}; (,){.id=..;.=.+.id;.=;.= (+.+,);(.,)};.=_;.= _;.=;.ID=(){ ()+ ()}; _(){.=(){ =(.);( i=0;i<.;i++){ =(.)?(.,[i]):[[i]];if().([i],,)}}};_.= _; (,,,){.=;.=[];.=;.=;.()};.=_;.= _;.ID=(,,,){if(&&!=&&.()&&!.()) ; ()+ (,,,)};+=; =g; (,){ (+.(.)++)}; =[]; _(){.=;.=(){ };.=0; (,,){ =((){{if(!.);.(,,);()}(){()}},10)};.=(){if(.==);( i=0;i<..;i++){ =.[i]; =.[.];if(){ =.?:.; =.(.); =.(?.:);.=;..=.;if(!).=.;if(.==){.(,.)}{.()}if()(,.,.);.[.]=}}};.=(){.=(.);( i=0;i<..;i++){ =.[i].;if(![.])[.]={:};[.].+=+.;if(.!=)[.].=.}}};_.= _; (,,){.=;.=[].(1,-1); =..(.);if().=([1]).(,);.=;.();(,)};.=_;.= _;.ID=(,,,){ (,,)};.=g;.=;.=+(,)+;[]=(,,,){( i=0;i<.;i++){ =[i].;( j=0;j<.;j++)if(([j],,))(,[j])}};[]=(,,,){( i=0;i<.;i++){ =([i]);if(&&(,,))(,)}};[]=(,,){=[];( i=0;i<.;i++)if(([i]))(,[i])};[]=(){!()};[]=(,){= (+,);(&&!.())=.; &&.(.())};.=(){ =;(,,(){...()});(,,(){...()})};.=(){ =;(,,(){...()})};.=(){ =;(,,(){...()});(,,(){...()});if(==.){...()}};(,,(){ =..; =.,i;(i in ).([i]);=..;=.;(i in )if(![i][0].(.)).([i])}); =[]; =g; (,,){=();.id=.;(.()){ :=;; :=;;:=++}=[];(, (,+(,)))};.ID=(,,,){ (,,)};..=(){ .+.id};={:(){ =[];( i in )if(i&&i!=)(,i); .().(g,)},:(){ .(,)},:(){ },:(,){ ++()},:(,){ +.()+++},:(,){ +.()+++}};.=; _(){.=(){ =[0]; =[1]; =[2];( i=0;i<.;i++).([i]);.[.id+.]=};.=(){ =[0]; =[1]; =[2];( i=0;i<.;i++).([i]); .[.id+.]}};.=(){.=;.={};.[]=};..= _; .(); .(); .(); (){ .(.,).(,)}},);.(,(){if(<5.5); =; =(.(.))?(,):; = ((.||)+,); (,){..=.(,)}; =gi;.(, (,,,,){=(); .()?+.(,).(,)++(||)++(||)++(||):});if(){ (){if(.(.)){ =.,=.;(,.);.=;.=;.=} ..=};.(,(){if(.==&&.!=);();(,,(){if(.==)()})})}});.(,(){ =;.(,);.(,); =.; $=()?:; =($); (){if(..!=){if(..==){..=+.+}..=}=}; =(); (){ ().(g,).(g,).(g,).(g,)}; (){if(..!=);if(!.()){();[.++]=;();();()}};.=0; (){.=...(5,-2); =(.)?:.;.();();();.()}; (){..=..;if(!()){ =+$+;..(,)}};(()); (){ =()?:;.[]=(,..)-.().-.};(()); (){if(!) ;if(..==||..==) ; .(.)}; (,){(){ : : 0; : : .-.; :(.-.)/2;:if(.()){ ((.-.)*()/100)}..=; .}};(()); (){if(..!=);();[.++]=;..=;..=;()};.=0; (,){(,);(,);if(!||..){if((..)==0)..++}}; (,){if(!&&.(..))..=..;if(..)..=((..)/100*.);if(){if(!..)}{..=..!=&&..==}..=;..=();if(..!=){..();..=..;..-=.;..()}if((.))..=..; if(!)..(,+$+)};(().(g,).(g,)); (){ =.,=; =(.)&&..;(=.){if(!&&..!=)=;+=.*(?-1:1)} };(()); (){( i=0;i<.;i++)([i]);(i=0;i<.;i++)([i],);=0}; ;(,,(){if(!)=(,10)})});=;if(.==)_(); (,,(){if(!&&.==)(_,0)})}(){();(+.)}{}}();',493,0,/./,String,95,'element`function`var`this`return`runtimeStyle`match`cssText`value`IE7`currentStyle`replace`from`for`length`width`filter`document`position`selector`test`new`Class`push`ie7_tmp`target`x5cs`filtered`parentElement`href`styleSheet`left`path`instance`PseudoElement`attribute`content`slice`fixed`toString`filterArgs`scopeName`count`style`clientWidth`ie7`tagName`Event`x5c`DynamicStyle`addEventHandler`url`type`true`right`recalc`instances`minWidth`else`eval`while`viewport`body`CSSFixes`appVersion`link`layoutParent`fixedWidth`auto`add`RegExp`fixes`styleSheets`load`false`fixWidth`arguments`src`addRecalc`input`AttributeSelector`selectors`subset`recalcs`nextSibling`isFixed`height`parseInt`documentElement`ie7Event`ALL`cssQuery`maxWidth`handler`timer`window`positionFixed`backgroundFixed`offsetLeft`offsetParent`case`quirksMode`x5cw`addModule`prototype`uniqueID`attributeTests`dynamicPseudoClasses`pseudoClasses`dynamicPseudoClass`attach`isHTML`fixRight`token`SIZES`pattern`alert`catch`complete`getScreenLeft`topFunction`appendChild`offsetWidth`HTMLFixes`MATCH`addFix`makePath`focus`compare`x5cd`object`pseudoElement`try`name`visited`getPixelWidth`boxSizing`getFixedWidth`all`elements`isElement`pseudoClass`cacheSelector`modules`script`setTimeout`screenLeft`removeChild`PERCENT`backgroundPositionX`DUMMY`hover`unregister`register`join`className`null`exec`display`classes`parse`getCSSText`getPixelLeft`wider`max`disabled`cssCache`node`Boolean`error`unHide`loaded`bottom`marginLeft`absolute`fixBackground`top`String`location`image`getString`active`PREFIX`escape`attributeSelectors`x2f`parentNode`adjacent`nextElement`ie7_anon`pseudoElements`inherit`encoded`isURL`ignore`HEADER`decode`split`encode`resizeWidth`NUMERIC`rect`min`hasLayout`outerHTML`apply`fixedElement`QUOTED`handlers`pop`strings`string`item`small`getPath`styles`pathname`array`httpRequest`finally`Error`readyState`foregroundPosition`backgroundPosition`nested`autoLeft`positionLeft`parseFloat`getOffsetLeft`setOffsetLeft`getBoundingClientRect`propertyName`backgroundLeft`canHaveChildren`backgroundImage`backgroundAttachment`tmpElement`none`background`fixImg`pngTest`FILTER`simpleSelector`delete`getAttribute`lang`compareTagName`ancestor`createElement`code`PIXEL`resizeRight`getPaddingWidth`getBorderWidth`box`submit`clicked`fix`select`useCache`base`large`inlineStyles`LINKS`description`resize`onresize`scrollLeft`pixelLeft`setExpression`default`switch`callee`expression`contains`Height`Width`Top`Left`leftFunction`img`event`NULL`addFilter`suffix`prefix`scale`png`define`navigator`Microsoft`CHILD`COMPLEX`remove`quote`ESCAPE`Function`break`ie7_`x5cb`class`ms_`previousElement`OBJECT`CONTENT`before`unicode`HEX`addTimer`firstChild`create`clearInterval`inline`ANCHOR`Parser`parser`removeTempElement`HEIGHT`getMarginWidth`AUTO`minHeight`marginRight`UNIT`toUpperCase`charAt`BUTTON`UNSUCCESSFUL`button`abbr`htmlFor`HTML`endTag`firstChildElement`continue`block`marginTop`fixMargins`removeEventHandler`attachEvent`key`getElementsByTagName`selectById`NAMESPACE`STREAM`STANDARD_SELECT`toStream`ASTERISK`IMPLIED_SELECTOR`reg`loadStyleSheet`imports`MEDIA`innerHTML`lastIndexOf`URL`fixUrls`scripts`RELATIVE`autoload`mimeType`search`message`onreadystatechange`static`screenTop`autoTop`positionTop`center`clientLeft`setOffsetTop`backgroundTop`protocol`onpropertychange`INPUT`zoom`crop`trans`IE7_PNG_SUFFIX`x00`x_bits`char`x5cnstatic`x_height`x5cn`x_width`javascript`gif`blank`userAgent`bSV1`sizingMethod`AlphaImageLoader`DXImageTransform`progid`toLowerCase`srcElement`onmouseup`activeElement`onblur`onfocus`onmousedown`onmouseout`onmouseover`child`first`children`scriptlet`text`htm`data`after`insertBefore`innerText`setInterval`specificity`x5cu`align`vertical`with`css2`fixHeight`Bottom`Right`paddingRight`paddingLeft`Math`model`onsubmit`reset`form`onclick`textarea`label`xhtml`org`www`http`namespaces`replaceChild`html4`previousSibling`nodeType`clip`border`padding`unquote`contentEditable`onbeforeunload`detachEvent`import`namespace`concat`Array`constructor`size`font`medium`list`float`relative`sizing`lastIndex`successfully`media`ball`bscreen`write`createStyleSheet`ie5`file`not`could`responseText`send`GET`open`XMLHTTP`ActiveXObject`margin`Document`XML`xml`unknown`typeof`CSS1Compat`compatMode`ie7_off`MSIE`ie7_debug`alpha`version`visible`visibility`fromCharCode`` (\\d\\.\\d)``^`\\.$`^[\\w\\.]+[^:]*$`(\\([\x27"]?)([\\w\\.]+[^:\\)]*[\x27"]?\\))`\\\\b|\\\\b|^$`-`(\\s*:\\s*(|))`\\s*:\\s*-`^[^>\\+~\\s]`[\\s>\\+~:@#\\.\\(\\)]|[^\\s>\\+~:@#\\.\\(\\)]+`\\|`([\\s>~\\,]|[^(]\\+|^)([\\.:#@])`(\\\\*[^\\*]*\\*+([^\\][^\\*]*\\*+)*\\)|(\x27[^\x27]*\x27)|("[^"]*")`@(|)[^;\\n]+[;\\n]|`\\:`^\\s+|\\s*([\\{\\}\\+\\,>~\\s;])\\s*|\\s+$`\x27(\\d+)\x27`(\x27[^\x27]*\x27)|("[^"]*")` ="([^"]*)"`^(||)$`^\\d\\w*$`^\\d+%$`^\\d+(px)?$`\\b(|)-(|)\\s*:\\s*\\d`\\b(|)-\\s*:\\s*\\d`^|0cm$`^$````````>`(\\ba(\\.[\\w-]+)?)$`\\{[^\\}]*\\}`::`([^\\}\\s]*\\,[^\\{]*)(\\{\\d+\\})`\\{(\\d+)\\}`[+>~]`\\([a-fA-F\\d]+)`^\\(.*\\)$`([^}]*):(|)[^{]*\\{([^}]*)\\}`\\s*:\\s*([^;]*)(;|$)`([\\()[\\]?{}|*+])`=`\\\\b`%1`(-)?\\s*:([^(};]*)\\(([^\\)]+)\\)([^;}]*)``X`` 0.7.3 ()`\\n\\n``` `:{-:}:{-:}`*{:0}`=``/`.`` [1]: `-.js``<>`$1`$2`` ` [2]: `([^{}]*)\\{([^}]*[^\\-])?`gi`-\\*:\\*-`\\*:\\*``:;$1`:`xx-,x-,,,,x-,xx-`,`xx-`((-)?\\*:\\*)(`|`)`$1*$2` *#`(` `*`#`.`(^|\\)`(\\|$)`:```\\([^)]*\\)`-`\x27`\\:```:;:0;:;:;:(0 0 0 0);:-9999`!`-`<:`/>```://.w3./1999/``,,`` `,````..`..=```.=`.=\x27`--`\\*:\\*\\[\\%]*``HR`\\*:\\*\\\\*[^%]``-``-``````````-`[^},\\]*([>+~][^:@,\\{]+|:(`)|\\.[\\-]+\\.[\\-.]+|@[@\\]+)`g`[^\\(]+[+~]|@\\+|:(||`)|\\.[\\-.]+`([^}]*):(`)([^{]*)`\\[([^`=\\]]+)([`]?=?)([^\\]]+)?\\]`{`}`\\`\\```.{-:;:}`\x27\\`0000``;`< = =\x27`-.`\x27 =100% =0 =/x->`+`@`-``^`i```````id`.id.(/\\+/g,\x27\x27)``..(/\\\\*\\+/g,\x27\x27)`.(\x27`\x27)`` ``\\$1`=`==`~=`/(^|\\)`(\\|$)/.(`|=`/^`(-|$)/.(```-`:..(=%1,=\x27\x27)`.`:\x27# 1\\# 1\\ []={0}\x27`-.`$`:``;:1;``,`````-`\\*:\\*`[\\\\-]*:[^};]*```(``Y`((.)+.`.)||0``````.+.`.``` [0]: '.split('\x60'))); +/* packed with http://dean.edwards.name/packer/ */ diff --git a/www/inc/styles/ie7/ie7-standard.js b/www/inc/styles/ie7/ie7-standard.js new file mode 100644 index 0000000..85608fb --- /dev/null +++ b/www/inc/styles/ie7/ie7-standard.js @@ -0,0 +1,2 @@ +/* IE7 version 0.7.3 (alpha) 2004/09/18 */ +if(!window.IE7)new function(){try{window.IE7=this;var DUMMY=this.addModule=new Function;function unHide(){if(document.body)document.body.style.visibility="visible"};this.toString=function(){return "IE7 version 0.7.3 (alpha)"};var alert=(/ie7_debug/.test(location.search))?function(message){window.alert(IE7+"\n\n"+message)}:DUMMY;var appVersion=navigator.appVersion.match(/MSIE (\d\.\d)/)[1];if(/ie7_off/.test(location.search)||appVersion<5||!/^ms_/.test(document.documentElement.uniqueID))return unHide();var quirksMode=Boolean(document.compatMode!="CSS1Compat");var isHTML=(typeof document.mimeType=="unknown")?!/\.xml$/i.test(location.pathname):Boolean(document.mimeType!="XML Document");var LINKS=":link{ie7-link:link}:visited{ie7-link:visited}";var HEADER=LINKS;if(!isHTML)HEADER+="*{margin:0}";var HTMLFixes;var documentElement=document.documentElement;var modules={};this.addModule=function(name,script,autoload){if(!modules)return;if(loaded)eval("script="+String(script));if(autoload){script();script=DUMMY}modules[name]=script};var RELATIVE=/^[\w\.]+[^:]*$/;function makePath(href,path){if(RELATIVE.test(href))href=(path||"")+href;return href};function getPath(href,path){href=makePath(href,path);return href.slice(0,href.lastIndexOf("/")+1)};var path=getPath(document.scripts[document.scripts.length-1].src);var httpRequest=new ActiveXObject("Microsoft.XMLHTTP");function load(href,path){try{href=makePath(href,path);httpRequest.open("GET",href,false);httpRequest.send();return httpRequest.responseText}catch(ignore){alert("Error [1]: could not load file "+href);return ""}};var push=function(array,item){return array.push(item)};var pop=function(array){return array.pop()};if(appVersion<5.5)eval(load("ie7-ie5.js",path));if(document.readyState=="complete"||!isHTML)document.createStyleSheet();else document.write("");this.styleSheet=document.styleSheets[document.styleSheets.length-1];this.styleSheet.cssText=LINKS;this.styleSheet.ie7=true;var cssText={};function loadStyleSheet(styleSheet,path){var url=makePath(styleSheet.href,path);if(cssText[url])return "";cssText[url]=(styleSheet.disabled)?"":fixUrls(getCSSText(styleSheet,path),getPath(styleSheet.href,path));return cssText[url]};var getCSSText=function(styleSheet){return styleSheet.cssText};var URL=/(url\(['"]?)([\w\.]+[^:\)]*['"]?\))/gi;function fixUrls(cssText,pathname){return cssText.replace(URL,"$1"+pathname.slice(0,pathname.lastIndexOf("/")+1)+"$2")};this.recalcs=[];this.parse=DUMMY;var complete=false;function _load(){try{complete=true;var MEDIA=/\bscreen\b|\ball\b|^$/i;var styleSheets=document.styleSheets;var inlineStyles=[];var styles=document.getElementsByTagName("style");for(var i=styles.length-1;i>=0;i--){push(inlineStyles,/ie7-link/.test(styles[i].innerHTML)?"":styles[i].innerHTML)}function getCSSText(styleSheet,path){var cssText="";if(MEDIA.test(styleSheet.media)){for(var i=0;i\+~\s]/;var STREAM=/[\s>\+~:@#\.\(\)]|[^\s>\+~:@#\.\(\)]+/g;var NAMESPACE=/\|/;var IMPLIED_SELECTOR=/([\s>~\,]|[^(]\+|^)([\.:#@])/g;var ASTERISK="$1*$2";var cssCache={};function cssQuery(selector,from){var useCache=!from;var base=(from)?(from.constructor==Array)?from:[from]:[document];var selectors=selector.replace(IMPLIED_SELECTOR,ASTERISK).split(",");var match=[];for(var i=0;i1)pseudoClass+="\x5c([^)]*\x5c)";push(toString,pseudoClass)}}return toString.join("|")},"link":function(element){return Boolean(element.currentStyle["ie7-link"]=="link")},"visited":function(element){return Boolean(element.currentStyle["ie7-link"]=="visited")}};var dynamicPseudoClasses={toString:pseudoClasses.toString};function compareTagName(element,tagName,scopeName){if(scopeName&&element.scopeName!=scopeName)return false;return(tagName=="*")?isElement(element):(isHTML)?(element.tagName==tagName.toUpperCase()):(element.tagName==tagName)};var strings=[];function getString(string){return QUOTED.test(string)?strings[string.slice(1,-1)]:string};var encode=function(cssText){return cssText.replace(/(\x2f\*[^\*]*\*+([^\x2f][^\*]*\*+)*\x2f)|('[^']*')|("[^"]*")/g,function(match){return(match.charAt(0)=="/")?"":"'"+(push(strings,match.slice(1,-1))-1)+"'"}).replace(/@(namespace|import)[^;\n]+[;\n]|/g,"").replace(/\x5c:/g,"|").replace(/^\s+|\s*([\{\}\+\,>~\s;])\s*|\s+$/g,"$1")};function decode(cssText){return cssText.replace(/\|/g,"\x5c:").replace(/'(\d+)'/g,function(match,key){return strings[key]})};var handlers=[];function addEventHandler(element,type,handler){element.attachEvent(type,handler);push(handlers,arguments)};function removeEventHandler(element,type,handler){try{element.detachEvent(type,handler)}catch(ignore){}};window.attachEvent("onbeforeunload",function(){while(handlers.length){var handler=pop(handlers);removeEventHandler(handler[0],handler[1],handler[2])}});var hasLayout=(appVersion<6)?function(element){return element.clientWidth}:function(element){return element.currentStyle.hasLayout};function boxSizing(element){if(!hasLayout(element)){element.contentEditable=false;fixMargins(firstChildElement(element))}};function fixMargins(element){while(element){element.runtimeStyle.marginTop=element.currentStyle.marginTop;element=nextElement(element)}};var QUOTED=/('[^']*')|("[^"]*")/;function quote(value){return(QUOTED.test(value))?value:"'"+value+"'"};function unquote(value){return(QUOTED.test(value))?value.slice(1,-1):value};function tmpElement(tagName){var element=document.createElement(tagName||"object");element.style.cssText="position:absolute;padding:0;display:block;border:none;clip:rect(0 0 0 0);left:-9999";return element};function isElement(node){return Boolean(node&&node.nodeType==1&&node.tagName!="!"&&!node.ie7_anon)};function previousElement(element){while(element&&(element=element.previousSibling)&&!isElement(element))continue;return element};function nextElement(element){while(element&&(element=element.nextSibling)&&!isElement(element))continue;return element};function firstChildElement(element){element=element.firstChild;return(isElement(element))?element:nextElement(element)};var loaded=false;IE7.addModule("ie7-html4",function(){if(isHTML)HTMLFixes=new function(){var fixes=[];function fix(element){var fixedElement=document.createElement(""){var endTag="",nextSibling;while((nextSibling=element.nextSibling)&&nextSibling.outerHTML!=endTag){element.parentNode.removeChild(nextSibling);fixedElement.appendChild(nextSibling)}if(nextSibling)element.parentNode.removeChild(nextSibling)}element.parentNode.replaceChild(fixedElement,element);return fixedElement};this.add=function(){push(fixes,arguments)};this.apply=function(){try{if(appVersion>5)document.namespaces.add("HTML","http://www.w3.org/1999/xhtml")}catch(ignore){}finally{for(var i=0;i=getFixedWidth(element,element.currentStyle.maxWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.maxWidth);else if(element.currentStyle.minWidth&&width<=getFixedWidth(element,element.currentStyle.minWidth))element.runtimeStyle.width=getFixedWidth(element,element.currentStyle.minWidth);else element.runtimeStyle.width=element.runtimeStyle.fixedWidth};function fixRight(element){if((element.currentStyle.position=="absolute"||element.currentStyle.position=="fixed")&&element.currentStyle.left!="auto"&&element.currentStyle.right!="auto"&&AUTO.test(element.currentStyle.width)){fixRight[fixRight.count++]=element;boxSizing(element);resizeRight(element)}};fixRight.count=0;CSSFixes.addRecalc("right"+NUMERIC,fixRight);function resizeRight(element){element.runtimeStyle.width="";var parentElement=layoutParent(element);var left=(element.runtimeStyle.screenLeft)?element.getBoundingClientRect().left-2:getPixelLeft(element,element.currentStyle.left);var width=parentElement.clientWidth-getPixelLeft(element,element.currentStyle.right)-left-getMarginWidth(element);if(!quirksMode)width-=getBorderWidth(element)+getPaddingWidth(element);if(width<0)width=0;if(isFixed(element)||HEIGHT||element.offsetWidth0)return getPixelWidth(element,value);if(PIXEL.test(value))return parseInt(value);element.parentElement.appendChild(ie7_tmp);ie7_tmp.style.left=value;return ie7_tmp.offsetLeft}};eval(String(fixWidth).replace(/Width/g,"Height").replace(/width/g,"height").replace(/Left/g,"Top").replace(/left/g,"top").replace(/Right/g,"Bottom").replace(/right/g,"bottom"));fixWidth();fixHeight(true)});IE7.addModule("ie7-css2",function(){var CHILD=/>/g,ANCHOR=/(\ba(\.[\w-]+)?)$/i;IE7.classes=[];IE7.parser=new Parser;IE7.Class=Class;IE7.DynamicStyle=DynamicStyle;IE7.PseudoElement=PseudoElement;IE7.parse=function(){with(this.parser)this.cssText=decode(parse(encode(this.cssText)));for(var i=0;i+~][^:@,\x5cs{]+|:("+pseudoClasses+")|\x5c.[\x5cw-]+\x5c.[\x5cw-.]+|@[@\x5cd]+)","g");Class.COMPLEX=new RegExp("[^\x5cs(]+[+~]|@\x5cd+|:(link|visited|"+pseudoClasses+"|"+dynamicPseudoClasses+")|\x5c.[\x5cw-.]+","g");DynamicStyle.ALL=new RegExp("([^}]*):("+dynamicPseudoClasses+")([^{]*)","g");return cssText.replace(PseudoElement.ALL,PseudoElement.ID).replace(DynamicStyle.ALL,DynamicStyle.ID).replace(Class.ALL,Class.ID)};this.encode=function(cssText){AttributeSelector.ALL=new RegExp("\x5c[([^"+attributeTests+"=\x5c]]+)(["+attributeTests+"]?=?)([^\x5c]]+)?\x5c]","g");return cssText.replace(AttributeSelector.ALL,AttributeSelector.ID).replace(/\{[^\}]*\}/g,function($){return "{"+(push(encoded,$)-1)+"}"}).replace(/::/g,":").replace(/([^\}\s]*\,[^\{]*)(\{\d+\})/g,function(match,left,right){return left.split(",").join(right)+right})};this.decode=function(cssText){return cssText.replace(/\{(\d+)\}/g,function($,$1){return encoded[$1]})}};function _Class(){this.toString=function(){return "."+this.name};this.add=function(element){element.className+=" "+this.name};this.remove=function(element){element.className=element.className.replace(this.MATCH,"")};this.exec=function(){var match=cssQuery(this.selector);for(var i=0;i~]/.test(target))return match;return simpleSelector(match)+new DynamicStyle(match,attach,dynamicPseudoClass,target)};HEADER+=".ie7_anon{vertical-align:top;display:inline}";var HEX=/\x5c([a-fA-F\d]+)/g;function unicode(match,code){return eval("'\x5cu"+"0000".slice(code.length)+code+"'")};var pseudoElements=[];function _PseudoElement(){this.content=null;this.toString=function(){return ""};this.specificity=0;function addTimer(object,content,cssText){var timer=setInterval(function(){try{if(!object.load)return;object.load(object,content,cssText);clearInterval(timer)}catch(ignore){clearInterval(timer)}},10)};this.create=function(){if(this.content==null)return;for(var i=0;i";selectors[">"]=function(filtered,from,filter,scopeName){for(var i=0;ibackground) echo "background-image: url('" . $this->background . "');\n";?> + background-color: bgcolor?>; + font-family: font?>; + font-size: fontsize?>; + color: textcol?>; + } + + a:link { + color: link?>; + } + + a:visited { + color: vlink?>; + } + + a:active { + color: alink?>; + } + + a:hover { + color: hover?>; + } + + td { + font-family: font?>; + font-size: fontsize?>; + } + + input { + font-family: font?>; + font-size: fontsize?>; + } + .navigation { + color: white; + background-color: #808080; + padding-top: 2px; + padding-bottom: 3px; + padding-left: 4px; + padding-right: 4px; + } + + p.exif { + font-size: 9px; + } + + p.navigation a { + color: #f0f0f0; + font-weight: bold; + padding-top: 2px; + padding-bottom: 2px; + border: 0px; + text-align: left; + } + + p.copyright { + clear: both; + padding-top: 4ex; + font-size: 9px; + text-align: left; + text-decoration: none; + } + + h1 { + letter-spacing: .5em; + } + + img { + /* makes really interesting stuff on nn4 ;) + display: inline; */ + margin: 2px; + border-top: solid black 1px; + border-bottom: solid black 1px; + border-left: dotted #808080 1px; + border-right: dotted #808080 1px; + } + + .navigation img, div.title img { + border: 0px; + margin: 0px; + text-align: left; + } + + div.title { + font-size: 16pt; + font-weight: bold; + letter-spacing: .5em; + } + + div.title a { + text-decoration: none; + } + + p.image img { + /* margin-left: 10px; */ + border: 0px; + margin: 0px; + text-align: center; + /* + border-bottom: 0px; + margin-bottom: 0px; + */ + } + + p.comment { + font-size: 10px; + text-align: justify; + color: #606060; + width: 640px; + /* margin-left: 130px; */ + } + + span { + color: black; + font-weight: bold; + } + + img.thumb { + border: 1px black solid; + margin-top: 2px; + margin-bottom: 2px; + } + + a:hover img.thumb { + border: 1px white solid; + } + + div.year { + float: left; + margin: 2px 1em; + } + + div.year p { + margin: 2px 2em; + } + + div.year h4 { + margin: 1em 1em 2px 1em; + } +--> diff --git a/www/inc/www.class.inc.php b/www/inc/www.class.inc.php new file mode 100644 index 0000000..2206382 --- /dev/null +++ b/www/inc/www.class.inc.php @@ -0,0 +1,221 @@ +\n"; + /* + echo "\n"; + */ + echo "\n"; + echo "\n"; + echo "\n"; + + #IE hacks + echo "\n"; + echo "\n"; + + echo " $title\n"; + echo "\n"; + echo "\n"; + # mozilla style links + if ($snimek && $galerie) { + #Top + echo " \n"; + #First + #Prev + $predchozi = $snimek - 1; + $dalsi = $snimek + 1; + if ($snimek > 1) { + echo " \n"; + echo " \n"; + } + #Next + if (is_file("$gallery_dir/$galerie/lq/img-$dalsi.jpg")) { + echo " \n"; + } + #Last + $adr = opendir("$gallery_dir/$galerie/thumbs/"); + $i = -2; + while ($file = readdir($adr)) { + $i++; + } + if ($i!=$snimek) { + echo " \n"; + } + } + + /* check the theme in a cookie */ + $theme = @$_COOKIE["theme"]; + if (!$theme) { //we didn't set the cookie yet + // select first key of the themes array in config.inc.php as default + $theme_keys = array_keys($themes); + $theme = $theme_keys[0]; + } + foreach ($themes as $skin => $url) { + echo "\n"; + } + + //require("javascript.inc.php"); + echo "\n"; + echo "\n\n"; + echo "\n"; + } + + //// + // !zavre html stranku + function footer() { + echo "\n"; + echo "\n"; + } + + //// + // !vypise chybovou hlasku + // $title - nadpis a title HTML stranky + // $message - vlastni chybova hlaska + function error($title, $message) { + $this->header($title); + echo "

$title

\n"; + echo $message; + $this->footer(); + exit; //vysere se na vsechno + } + + + + //// + // !zacatek fomrulare + function form_start($action, $method, $upload) { + echo "
\n"; + } + + //// + // !konec formulare + function form_end() { + echo "
\n"; + } + + //// + // !vykresli polozku formulare + // umi text, password, submit, file, hidden, textarea, select + // u textarea je default pocet radku... + function input($type, $name, $value, $popis, $default, $title) { + echo "
\n"; + if (!$title) { + echo "
$popis
\n"; + } else { + echo " \n"; + } + echo "
"; + switch ($type) { + case "checkbox": + echo ""; + break; + case "password": + case "text": + echo ""; + break; + case "file": + echo ""; + break; + case "hidden": + echo ""; + break; + case "textarea": + echo ""; + break; + case "select": + echo ""; + break; + case "submit": + echo ""; + break; + } + echo "
\n"; + echo "
\n"; + } + + +} + +# return dirs sorted +class SortDir { + var $items; + + function SortDir($directory) { + $handle=@opendir($directory); + if (!$handle) return; + while ($file = readdir($handle)) { + if ($file != "." && $file != "..") { + $this->items[]=$file; + } + } + closedir($handle); + if ($this->items) { + natsort($this->items); + } + } + + function Read() { + if ($this->items) { + $getback= (pos($this->items)); + next($this->items); + return $getback; + } + } +} + +?> diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..011a614 --- /dev/null +++ b/www/index.php @@ -0,0 +1,540 @@ +

  • '; + $comment_data = stripslashes(strip_tags($comment_data,$allowedTags)); + // thanks google: + // http://www.google.com/googleblog/2005/01/preventing-comment-spam.html + $comment_data = eregi_replace("error( __('No comment spam'), __('Your comment includes blacklisted word') . __('No comment spam') ); + $page->footer(); + exit; //stop everything + } + } + + if ($comment_kolacek!=md5($comment_spamcheck)) { + $page->error( __('No comment spam'), __('You ve written the check number wrong' ) ); + $page->footer(); + exit; //stop everything + } + + if (!$comment_name) { + $comment_name = $_COOKIE["username"]; + } + + // ok so we got a comment + if ($comment_name && $save_comment_name) { + // save out name in a cookie + if (!setcookie("username","$comment_name", + mktime(0, 0, 0, 12, 30, 2030))) { + print __('Could not set name cookie!'); + exit; + } + } + + // create a user_comment file if not existant or append to it + if (is_writable("$root/$gallery_dir/$galerie/comments")) { // needs perms + $comment = "$root/$gallery_dir/$galerie/comments/user_$snimek.txt"; + $fh = fopen("$comment", "a"); + + if (!$comment_name) { + $comment_name = __('Anonymous'); + } + if (!fwrite($fh, "
    \n")) { + $page->error( __('Could not write to') . $comment . "!" ); + $page->footer(); + exit; //stop everything + } + fwrite($fh, "
    " . __('Comment from') . "$comment_name
    \n",90); + fwrite($fh, "
    $comment_data
    \n",280); + fwrite($fh, "
    \n"); + + fclose($fh); + } +} + + +//START RENDERING + + +$page->header("Photos"); +require("inc/header.inc.php"); + +// folder > tree +//echo "
    " . $scnamegallery . ""; +echo "
    " . $scnamegallery . ""; + +############################# +# Overall Gallery Index # +############################# +if (!$galerie) { + # finish off navigation bar + echo "
    \n\n\n\n"; + # I've nuked date.txt to replace it with a more generic info.txt + # It optionally supplies i18n name, camera model, author and date + # TODO: imgconv script support + while ($file = $adr->Read()) { + // checking for inc is only really needed when gallery_dir == $root + // hopefully not many galleries will be named inc ;) + if (is_dir("$gallery_dir/$file") && !ereg("\.", $file) && $file!="inc") { + // Use date file for gallery date if avaliable + // info.txt format described in README + readInfo("$root/$gallery_dir/$file/info.txt", $file); + + } + } + + if (!isset($galeriemonth)) $galeriemonth = array(); + if (!isset($galerieday)) $galerieday = array(); + //sort within month depending on $sortinmonth + if ($sortinmonth) { + //alphabetically + ksort($galeriemonth); + reset($galeriemonth); + } else {//by date + arsort($galerieday); + reset($galerieday); + } + + + $thisyear = 0; + for ($i = $yearto; $i >= $yearsince; $i--) { + for ($thismonth=12; $thismonth>0; $thismonth--) { // go year by year, month by month + // down + foreach ($galerieday as $foldername => $day) { //using $galerieday (for when sorted) + if ($galeriemonth["$foldername"] == $thismonth && + $galerieyear["$foldername"] == $i) { //such Y/M exists + + $galerieyearordered["$foldername"]=$galerieyear["$foldername"]; + $galeriemonthordered["$foldername"]=$galeriemonth["$foldername"]; + } + } + } + } + + + $months = array(__('January'), __('February'), __('March'), __('April'), __('May'), __('June'), __('July'), __('August'), + __('September'), __('October'), __('November'), __('December')); + $one_out = false; + foreach ($galerieyearordered as $foldername => $year) { + $one_out = true; + if (@$thisyear!=$year) { #if the year is not equal to the current year + #This is the first year + if (@$thisyear) { echo "
    \n\n";}// end last year if this is + // not the first one + #This is a new year + unset($thismonth); + echo "

    $year

    \n"; + echo ""; + } + $month=$galeriemonth["$foldername"]; + # now months + if (@$thismonth!=$month) { + #first one + if (@$thismonth) { echo "
    \n"; } // end of last month if + // this is not the first one + #new month + $monthindex = $month - 1; + $monthname = $months[$monthindex]; + echo "

    $monthname

    \n"; + } + #galleries within month + if ($galerielogin[$foldername]) { + echo "

    "; + echo $galeriename[$foldername]; + echo ""; + } else { + echo " href=\"$ThisScript?galerie=$foldername\">$foldername"; + } + if (@$galeriedesc[$foldername]) { + echo "" . $galeriedesc[$foldername]; + echo "\n"; + } + if (@$galerieauthor[$foldername]) { + echo "by " . $galerieauthor[$foldername]; + echo "\n"; + } + if (@$galerieday[$foldername]) { + echo ""; + echo "$monthname " . $galerieday[$foldername]; + echo "\n"; + } + echo "

    \n"; + $thisyear=$year; + $thismonth=$month; + } + if ($one_out) echo ("
    \n\n\n"); + +############################## +# Individual Gallery Index # +############################## +} elseif (!$snimek) { + + # finish off navigation header + + echo "\n > "; + if ($galeriename[$galerie]) { + echo $galeriename[$galerie]; + } else { + echo $galerie; + } + echo "\n\n"; + + //thumbnails + echo "

    \n"; + $path = "$gallery_dir/$galerie/thumbs"; + $imgfiles = new SortDir($path); + check($galerie); // check for nasty input + while ($file = $imgfiles->read()) { + if (is_file("$path/$file") && eregi("^img-([0-9]+)\.(png|jpe?g)", $file, $x)) { + + $thumb = "$gallery_dir/$galerie/thumbs/img-${x[1]}.${x[2]}"; + $imgsize = getimagesize("$root/$thumb"); + //check for portraits + $portrait = "false"; + $class = ""; + if($imgsize[0]<100) { + //portraits need a special class for styling + $class = "portrait"; + } + //check for number of comments per photo + if ($comments) { //there probably won't be user comments if it's off + $NumOfComments = 0; + if (file_exists("$gallery_dir/$galerie/comments/user_${x[1]}.txt")) { + if ($class) $class .= " "; + $class .= "hascomments"; + //now let's count'em + $fh = fopen("$gallery_dir/$galerie/comments/user_${x[1]}.txt","r"); + while (!feof($fh)) { + $line = fgets($fh); + if (eregi("commententry",$line)) $NumOfComments++; + } + fclose($fh); + } + if ($NumOfComments==1) { + $NumOfComments = $NumOfComments . " " . __('Comment'); + } else { + $NumOfComments = $NumOfComments . " " . __('Comments'); + } + } + if (file_exists("$gallery_dir/$galerie/comments/${x[1]}.txt") && + $title = file_get_contents("$gallery_dir/$galerie/comments/${x[1]}.txt")) { + $title = ereg_replace("(\"|\')","",trim(strip_tags($title))); + $title = ereg_replace("(.{77}).*","\\1",$title); + } else + $title = "Photo ${x[1]}"; + + echo " "; + echo ""; + echo "\n"; + } + } + echo "

    \n"; + + //info + echo "
    \n"; + if ($galeriedesc[$galerie]) { + echo "

    "; + echo ""; + echo $galeriedesc[$galerie] . "

    \n"; + } + if ($galerieauthor[$galerie]) { + echo "

    Author: "; + echo ""; + echo $galerieauthor[$galerie] . "

    \n"; + } + echo "
    \n"; + + //and links to archived images: + echo "\n

    \n"; + if (file_exists("$gallery_dir/$galerie/zip/mq.zip")) { + echo "[ " . __('zipped MQ images') . " ] "; + } + if (file_exists("$gallery_dir/$galerie/zip/mq.tar.bz2")) { + echo "[ " . __('MQ images tarball') . " ] "; + } + if (file_exists("$gallery_dir/$galerie/zip/hq.zip")) { + echo "[ " . __('zipped HQ images') . " ]"; + } + if (file_exists("$gallery_dir/$galerie/zip/hq.tar.bz2")) { + echo "[ " . __('HQ images tarball') . " ]"; + } + echo "

    "; + +####################### +# Individual Image # +####################### +} else { //low-res image + # finish off header + echo "\n > "; + if ($galeriename[$galerie]) { + echo $galeriename[$galerie]; + } else { + echo $galerie; + } + echo "\n > Photo"; + echo " $snimek"; + $path = "$gallery_dir/$galerie/thumbs"; + $imgfiles = new SortDir("$path"); + check($galerie); + $path = "$gallery_dir/$galerie/lq"; + $file = "$path/img-$snimek.jpg"; + if (!file_exists($file)) { + echo __('No such image'); + $page->footer(); + exit; + } + $imgsize = getimagesize("$root/$file"); + /* + navigation($galerie, $snimek, null); + */ + + // mini thumbnail roll + + if ($show_thumbs) { + echo "\n\n
    "; + echo ""; + echo "\n"; + echo " : \n"; + while ($thumbfile = $imgfiles->read()) { + if ( eregi("^img-([0-9]+)\.(png|jpe?g)", + $thumbfile, $x)) { + $thumb = "$gallery_dir/$galerie/thumbs/img-${x[1]}.${x[2]}"; + echo " "; + echo ""; + echo " \n"; + } + } + if (file_exists("$gallery_dir/$galerie/zip/hq.zip")) { + echo ""; + echo "zip"; + } + if (file_exists("$gallery_dir/$galerie/zip/hq.tar.bz2")) { + echo ""; + echo "zip"; + } + echo "
    \n"; + } else { + // show the popup button + echo "\n\n
    "; + echo ""; + echo "\n"; + echo "
    \n"; + } + + /* main image + thumbnail navigation (prev/next) */ + + $divheight = $imgsize[1] + 10; + echo "
    \n"; // extra kludge + // because of tall + // images + + echo "\"$snimek\"\n"; + navigation($galerie, $snimek, "prev"); + navigation($galerie, $snimek, "next"); + echo "
    \n"; //image + + + if ($exif_prog) require("$root/inc/exif.inc.php"); + /* Image comment (caption really) */ + $comment = "$root/$gallery_dir/$galerie/comments/$snimek.txt"; + if (file_exists($comment)) { + echo "
    "; + include($comment); + echo "
    "; + } + /* Counter/Access Log - also requires comments dir world writable */ + if ($log_access==1) { + //simple counter + if (is_writable("$root/$gallery_dir/$galerie/comments")) { // needs perms + $log = "$root/$gallery_dir/$galerie/comments/log_$snimek.txt"; + if (file_exists($log)){ + $fh = fopen($log, "r"); + $counter = rtrim(fgets($fh)); + fclose($fh); + } else { + $counter = 0; + } + $counter++; + $fh = fopen($log,"w"); + if (!fwrite($fh, "$counter\n")) { + $page->error( __('Could not write to') . $log . "!"); + $page->footer(); + exit; //stop everything + } + fclose($fh); + //Now display something + echo "\n
    \n"; + echo __('This image has been viewed') . " "; + echo "$counter". " " . __('times') . "."; + //echo date("F dS, Y",filectime($log)); + echo "
    \n\n"; + } else { + echo "\n"; + } + } elseif ($logaccess==2) { + // log time, IP, UA + // TODO - is this really a good thing to do? + } + + + if (file_exists("$gallery_dir/$galerie/mq/img-$snimek.jpg") || file_exists("$gallery_dir/$galerie/hq/img-$snimek.jpg")) { + echo "
    "; + if (file_exists("$gallery_dir/$galerie/mq/img-$snimek.jpg")) { + echo "". __('MQ') . " "; + } + if (file_exists("$gallery_dir/$galerie/hq/img-$snimek.jpg")) { + echo "" . __('HQ') . ""; + } + echo "
    \n"; //mqhq + } + + /* User comments */ + if ($comments) { + if (is_writable("$root/$gallery_dir/$galerie/comments")) { // needs perms + require("inc/comment.inc.php"); + $user_comment = "$root/$gallery_dir/$galerie/comments/user_$snimek.txt"; + + if (file_exists($user_comment)) { + echo "
    "; + include($user_comment); + echo "
    "; + } + } else { + echo "\n"; + } + } + navigation($galerie, $snimek, null); +} + +require("inc/footer.inc.php"); +$page->footer(); +?> diff --git a/www/l10n/cs/date.lang b/www/l10n/cs/date.lang new file mode 100644 index 0000000..72a45a0 --- /dev/null +++ b/www/l10n/cs/date.lang @@ -0,0 +1,79 @@ +;Jan +Led +;Feb +Úno +;Mar +Bře +;Apr +Dub +;May +Kvě +;Jun +Čer +;Jul +Čec +;Aug +Srp +;Sep +Zář +;Oct +Říj +;Nov +Lis +;Dec +Pro + +;January +Leden +;February +Únor +;March +Březen +;April +Duben +;May +Květen +;June +Červen +;July +Červenec +;August +Srpen +;September +Září +;October +Říjen +;November +Listopad +;December +Prosinec + +;Mon +Po +;Tue +Út +;Wed +St +;Thu +Čt +;Fri +Pá +;Sat +So +;Sun +Ne + +;Monday +Pondělí +;Tuesday +Úterý +;Wednesday +Středa +;Thursday +Čtvrtek +;Friday +Pátek +;Saturday +Sobota +;Sunday +Neděle diff --git a/www/l10n/cs/exif.lang b/www/l10n/cs/exif.lang new file mode 100644 index 0000000..2fc7526 --- /dev/null +++ b/www/l10n/cs/exif.lang @@ -0,0 +1,21 @@ +;Time Taken +Čas pořízení +;Camera Manufacturer +Výrobce fotoaparátu +;Camera Model +Typ +;Real Focal Length +Ohnisková vzdálenost +;Focal Length Relative to 35mm Film +Ohnisková vzdálenost (přepočteno na 35mm) +;F Stop +Clona +;Time of Exposure +Čas expozice +;Flash +Blesk + +;More info +Více informací +;Less info +Méně informací diff --git a/www/l10n/cs/main.lang b/www/l10n/cs/main.lang new file mode 100644 index 0000000..2c2dc57 --- /dev/null +++ b/www/l10n/cs/main.lang @@ -0,0 +1,111 @@ +;No comment spam +Žádné reklamní příspěvky + +;Your comment includes blacklisted word +Váš komentář obsahuje nepovolené slovo + +;You ve written the check number wrong +Kontorlní číslo opsáno chybně + +;Could not set name cookie! +Nepovedlo se zapsat koláček se jménem + +;Anonymous +Anonymní + +;Could not write to +nepovedlo se zapsat do + +;Comment from +Komentář od + +;Comment +Komentář + +;Comments +Komentářů + +;zipped MQ images +archiv obrázků ZIP (SK) + +;MQ images tarball +archiv obrázků TGZ (SK) + +;zipped HQ images +archiv obrázků ZIP (VK) + +;HQ images tarball +archiv obrázků TGZ (VK) + +;No such image +Obrázek neexistuje + +;Show Thumbnail Navigation +Zobrazit náhledy + +;Could not write to +Nepovedlo se zapsat do + +;This image has been viewed +Obrázek již byl viděn + +;times +krát + +;WARNING: comment dir not writable +POZOR: do adresáře s komentáři není právo zápisu + +;MQ +Stř. + +;HQ +Velké + +;Generated by +Vygenerováno pomocí + +;Post a Comment +Přidej komentář + +;Show Form +Zobraz formulář + +;Hide Form +Schovej formulář + +;Name: +Jméno : + +;Enter your name. +Vložte svoje jméno. + +;Remember Name: +Zapamatuj jméno: + +;Should the browser remember your name? +Má se jméno zapamatovat pro další použití? + +;Retype PIN Above: +Vložte kontrolní číslo: + +;Enter the number shown above. +Kontrolní čislo uvedené nahoře je nutné přepsat do tohoto políčka + +;Send +Pošli + +;Allowed HTML tags: a,b,i,ul,li,blockquote,br. +Povolené HTML značky: a,b,i,ul,li,blockquote,br. + + +;display line +zobrazit na řádce + +;display table +zobrazit jako tabulku + +;Previous +Předchozí + +;Next +Následující diff --git a/www/l10n/fr/date.lang b/www/l10n/fr/date.lang new file mode 100644 index 0000000..e9d56b5 --- /dev/null +++ b/www/l10n/fr/date.lang @@ -0,0 +1,79 @@ +;Jan +Jan +;Feb +Fv +;Mar +Mar +;Apr +Avr +;May +Mai +;Jun +Juin +;Jul +Juil +;Aug +Ao +;Sep +Sep +;Oct +Oct +;Nov +Nov +;Dec +Dec + +;January +Janvier +;February +Fvrier +;March +Mars +;April +Avril +;May +Mai +;June +Juin +;July +Juillet +;August +Aot +;September +Septembre +;October +Octobre +;November +Novembre +;December +Dcembre + +;Mon +Lun +;Tue +Mar +;Wed +Mer +;Thu +Jeu +;Fri +Ven +;Sat +Sam +;Sun +Dim + +;Monday +Lundi +;Tuesday +Mardi +;Wednesday +Mercredi +;Thursday +Jeudi +;Friday +Vendredi +;Saturday +Samedi +;Sunday +Dimanche diff --git a/www/l10n/fr/main.lang b/www/l10n/fr/main.lang new file mode 100644 index 0000000..e824a4e --- /dev/null +++ b/www/l10n/fr/main.lang @@ -0,0 +1,111 @@ +;No comment spam +Ne spammer pas les commentaires + +;Your comment includes blacklisted word +Votre commentaire contient des mots interdits. + +;You ve written the check number wrong +Le code de verification est faux + +;Could not set name cookie! +Ne peu créer le nom du cookie + +;Anonymous +Anonyme + +;Could not write to +Ne peut ecrire dans + +;Comment from +Commentaire de + +;Comment + Commentaire + +;Comments +Commentaires + +;zipped MQ images +archive zip (MQ) + +;MQ images tarball +archive tgz (MQ) + +;zipped HQ images +archive zip (HQ) + +;HQ images tarball +archive tgz (HQ) + +;No such image +Aucune image + +;Show Thumbnail Navigation +Affiche les vignettes de navigation + +;Could not write to +Ne peu écrire dans + +;This image has been viewed +Cette image a été vu + +;times +fois + +;WARNING: comment dir not writable +ATENTION : le répertoire des commentaire n'est pas accessible en écriture + +;MQ +Qualité moyenne + +;HQ +haute qualité + +;Generated by +géneré par + +;Post a Comment +Laisser un commentaire + +;Show Form +Afficher le formulaire + +;Hide Form +Cacher le formulaire + +;Name: +Nom : + +;Enter your name. +Entrer votre nom. + +;Remember Name: +Se souvenir de mon nom + +;Should the browser remember your name? +Le navigateur doit-il se rappeller votre nom? + +;Retype PIN Above: +Retaper le code au dessus + +;Enter the number shown above. +Entrer le code au dessus + +;Send +Envoyer + +;Allowed HTML tags: a,b,i,ul,li,blockquote,br. +;tags HTML autorisé: a,b,i,ul,li,blockquote,br. + + +;display line +affichage en ligne + +;display table +affichage table + +;Previous +Précedente + +;Next +Suivante diff --git a/www/left.png b/www/left.png new file mode 100644 index 0000000..63d306c Binary files /dev/null and b/www/left.png differ diff --git a/www/lib/lib.l10n.php b/www/lib/lib.l10n.php new file mode 100644 index 0000000..b2bf6c2 --- /dev/null +++ b/www/lib/lib.l10n.php @@ -0,0 +1,58 @@ + diff --git a/www/logo-mini.png b/www/logo-mini.png new file mode 100644 index 0000000..8949154 Binary files /dev/null and b/www/logo-mini.png differ diff --git a/www/logo.png b/www/logo.png new file mode 100644 index 0000000..24878c3 Binary files /dev/null and b/www/logo.png differ diff --git a/www/minus.png b/www/minus.png new file mode 100644 index 0000000..bc7a830 Binary files /dev/null and b/www/minus.png differ diff --git a/www/plus.png b/www/plus.png new file mode 100644 index 0000000..6b103cd Binary files /dev/null and b/www/plus.png differ diff --git a/www/right.png b/www/right.png new file mode 100644 index 0000000..f998098 Binary files /dev/null and b/www/right.png differ diff --git a/www/stock_camera-16.png b/www/stock_camera-16.png new file mode 100644 index 0000000..42ec54a Binary files /dev/null and b/www/stock_camera-16.png differ diff --git a/www/top.png b/www/top.png new file mode 100644 index 0000000..8cc26b4 Binary files /dev/null and b/www/top.png differ diff --git a/www/zip.png b/www/zip.png new file mode 100644 index 0000000..b52d1d7 Binary files /dev/null and b/www/zip.png differ -- cgit v1.2.3