From 4023001a68b3d85891ab744eb77e7b22a9dd8e3f Mon Sep 17 00:00:00 2001
From: jimmacfx
Date: Fri, 25 Nov 2005 22:16:10 +0000
Subject: import original 0.11
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@2 4fa712ea-3c06-0410-9261-c11b4c06c003
---
www/inc/.config.inc.php.swo | Bin 0 -> 12288 bytes
www/inc/CVS/Entries | 8 +
www/inc/CVS/Repository | 1 +
www/inc/CVS/Root | 1 +
www/inc/config.inc.php | 71 +++++++++
www/inc/exif.inc.php | 139 +++++++++++++++++
www/inc/footer.inc.php | 27 ++++
www/inc/funkce.inc.php | 96 ++++++++++++
www/inc/header.inc.php | 14 ++
www/inc/javascript-eek.inc.php | 112 +++++++++++++
www/inc/javascript.inc.php | 51 ++++++
www/inc/styles/CVS/Entries | 2 +
www/inc/styles/CVS/Repository | 1 +
www/inc/styles/CVS/Root | 1 +
www/inc/styles/default/CVS/Entries | 12 ++
www/inc/styles/default/CVS/Repository | 1 +
www/inc/styles/default/CVS/Root | 1 +
www/inc/styles/default/bcg.png | Bin 0 -> 87 bytes
www/inc/styles/default/default.css | 285 ++++++++++++++++++++++++++++++++++
www/inc/styles/default/left-16.png | Bin 0 -> 298 bytes
www/inc/styles/default/left.png | Bin 0 -> 523 bytes
www/inc/styles/default/logo-mini.png | Bin 0 -> 4163 bytes
www/inc/styles/default/minus.png | Bin 0 -> 291 bytes
www/inc/styles/default/plus.png | Bin 0 -> 556 bytes
www/inc/styles/default/right-16.png | Bin 0 -> 290 bytes
www/inc/styles/default/right.png | Bin 0 -> 522 bytes
www/inc/styles/default/title.png | Bin 0 -> 3434 bytes
www/inc/styles/default/zip.png | Bin 0 -> 539 bytes
www/inc/styles/gorilla/CVS/Entries | 7 +
www/inc/styles/gorilla/CVS/Repository | 1 +
www/inc/styles/gorilla/CVS/Root | 1 +
www/inc/styles/gorilla/gorilla.css | 258 ++++++++++++++++++++++++++++++
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/ie/ie.css | 8 +
www/inc/stylesheet.inc.css | 141 +++++++++++++++++
www/inc/www.class.inc.php | 210 +++++++++++++++++++++++++
40 files changed, 1449 insertions(+)
create mode 100644 www/inc/.config.inc.php.swo
create mode 100644 www/inc/CVS/Entries
create mode 100644 www/inc/CVS/Repository
create mode 100644 www/inc/CVS/Root
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/header.inc.php
create mode 100644 www/inc/javascript-eek.inc.php
create mode 100644 www/inc/javascript.inc.php
create mode 100644 www/inc/styles/CVS/Entries
create mode 100644 www/inc/styles/CVS/Repository
create mode 100644 www/inc/styles/CVS/Root
create mode 100644 www/inc/styles/default/CVS/Entries
create mode 100644 www/inc/styles/default/CVS/Repository
create mode 100644 www/inc/styles/default/CVS/Root
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/left-16.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.png
create mode 100644 www/inc/styles/default/plus.png
create mode 100644 www/inc/styles/default/right-16.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.png
create mode 100644 www/inc/styles/gorilla/CVS/Entries
create mode 100644 www/inc/styles/gorilla/CVS/Repository
create mode 100644 www/inc/styles/gorilla/CVS/Root
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/ie/ie.css
create mode 100644 www/inc/stylesheet.inc.css
create mode 100644 www/inc/www.class.inc.php
(limited to 'www/inc')
diff --git a/www/inc/.config.inc.php.swo b/www/inc/.config.inc.php.swo
new file mode 100644
index 0000000..9cf5367
Binary files /dev/null and b/www/inc/.config.inc.php.swo differ
diff --git a/www/inc/CVS/Entries b/www/inc/CVS/Entries
new file mode 100644
index 0000000..6556eb2
--- /dev/null
+++ b/www/inc/CVS/Entries
@@ -0,0 +1,8 @@
+/.config.inc.php.swo/1.1.1.1/Tue Oct 21 06:45:11 2003//
+D/styles////
+/config.inc.php/1.9/Sun Oct 26 21:19:41 2003//
+/footer.inc.php/1.2/Sun Oct 26 18:43:36 2003//
+/header.inc.php/1.4/Mon Oct 27 11:15:00 2003//
+/exif.inc.php/1.4/Mon Oct 27 14:31:36 2003//
+/funkce.inc.php/1.6/Wed Oct 29 00:02:55 2003//
+/www.class.inc.php/1.7/Tue Oct 28 21:45:27 2003//
diff --git a/www/inc/CVS/Repository b/www/inc/CVS/Repository
new file mode 100644
index 0000000..ada892b
--- /dev/null
+++ b/www/inc/CVS/Repository
@@ -0,0 +1 @@
+original/www/inc
diff --git a/www/inc/CVS/Root b/www/inc/CVS/Root
new file mode 100644
index 0000000..16bd216
--- /dev/null
+++ b/www/inc/CVS/Root
@@ -0,0 +1 @@
+:ext:jimmac@cvs.tuxfamily.org:/cvsroot/original
diff --git a/www/inc/config.inc.php b/www/inc/config.inc.php
new file mode 100644
index 0000000..5bfb36e
--- /dev/null
+++ b/www/inc/config.inc.php
@@ -0,0 +1,71 @@
+
+#base dirname
+ eregi("^(.*)/[^/]*$", $ScriptFileName, $x);
+ $root = $x[1];
+# ===========================================================================
+#images
+ $img["left"] = "left.png";
+ $img["right"] = "right.png";
+ $img["top"] = "top.png";
+# ===========================================================================
+#thumbnail behaviour
+ //keep this unset for dynamic thumbnail size
+ //$thumbsize = "fixed";
+ //How the previous and Next thumbnails should be scaled
+ // 1 is 1:1, >1 is smaller, <1 is bigger
+ $PNthumbScale = 1;
+# ===========================================================================
+#colors and backgrounds
+# this has been removed in favour of custom CSS stylesheets
+# ===========================================================================
+#app info
+ $app["name"] = "Original"; // opensource remote image gallery,
+ // initialy not as lovely
+ $app["url"] = "http://jimmac.musichall.cz/original.php3";
+ $app["version"] = "0.8-cvs";
+# ===========================================================================
+# 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 (does not seem to work yet):
+# $exif_prog = "php4";
+# ---------------------------------------------------------------------------
+## 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";
+
+#css styles
+ $themes = array(
+ "default" => "inc/styles/default/default.css",
+ "ie" => "inc/styles/ie/ie.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..be76168
--- /dev/null
+++ b/www/inc/exif.inc.php
@@ -0,0 +1,139 @@
+\n";
+ //co ukazat (podle exif_show
+ if ($exif_show) {
+ while(list($k,$v)=each($exif_array)) {
+ while ($x = current($exif_show)) {
+ if ($x==$k) {
+ echo "";
+ echo "$k : ";
+ echo "$v ";
+ echo " \n";
+ }
+ next($exif_show);
+ }
+ }
+ } else {
+ //ukaze vsechno
+ while(list($k,$v)=each($exif_array)) {
+ echo "";
+ echo "$k : ";
+ echo "$v ";
+ echo " \n";
+ }
+ }
+ echo "\n";
+ echo " ";
+ # only show if EXIF header exists
+ if ($exif_array["Make"]) {
+ echo "";
+ echo "display line \n";
+ }
+ echo " \n";
+ echo "\n";
+ echo "";
+ } else {
+ // in one line
+ if ($exif_show) {
+ while(list($k,$v)=each($exif_array)) {
+ while ($x = current($exif_show)) {
+ if ($x==$k) {
+ echo "$v | ";
+ }
+ next($exif_show);
+ }
+ }
+ } else {
+ while(list($k,$v)=each($exif_array)) {
+ echo "$v | ";
+ }
+ }
+ # only show if EXIF header exists
+ if ($exif_array["Make"]) {
+ echo "";
+ echo "display table \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)
+ 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 "$y[1] : ";
+ echo "$y[2] ";
+ echo " \n";
+ } else {
+ reset($exif_show);
+ while ($z = current($exif_show)) {
+ //echo ".$z. ::: .$y[1]. ";
+ if (trim($z) == trim($y[1])) {
+ echo "";
+ echo "$y[1] : ";
+ echo "$y[2] ";
+ 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 "";
+ echo "display line \n";
+ }
+ echo " \n";
+ echo "
\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..7143fd5
--- /dev/null
+++ b/www/inc/footer.inc.php
@@ -0,0 +1,27 @@
+
+/*
+echo "\n";
+echo "";
+echo " ";
+echo " \n";
+
+echo "";
+echo " ";
+echo " \n";
+*/
+
+echo "\n\n
\n";
+?>
diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php
new file mode 100644
index 0000000..2a1e8cc
--- /dev/null
+++ b/www/inc/funkce.inc.php
@@ -0,0 +1,96 @@
+\n";
+ echo "\n\n";
+ } elseif ($image=="prev") { //previous thumbnail
+ if ($snapshot > 1) { //previous
+ echo "\n";
+ }
+ } else { //next thumbnail
+ if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) {
+ 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;
+
+ 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");
+ }
+}
+
+?>
diff --git a/www/inc/header.inc.php b/www/inc/header.inc.php
new file mode 100644
index 0000000..3242c1c
--- /dev/null
+++ b/www/inc/header.inc.php
@@ -0,0 +1,14 @@
+
+[ style:
+
+foreach ($themes as $skin => $url) {
+ echo "
";
+ echo "$skin \n";
+}
+?>
+]
+
+
+echo "\n\n";
+?>
diff --git a/www/inc/javascript-eek.inc.php b/www/inc/javascript-eek.inc.php
new file mode 100644
index 0000000..3672c8c
--- /dev/null
+++ b/www/inc/javascript-eek.inc.php
@@ -0,0 +1,112 @@
+
diff --git a/www/inc/javascript.inc.php b/www/inc/javascript.inc.php
new file mode 100644
index 0000000..f2e3deb
--- /dev/null
+++ b/www/inc/javascript.inc.php
@@ -0,0 +1,51 @@
+
diff --git a/www/inc/styles/CVS/Entries b/www/inc/styles/CVS/Entries
new file mode 100644
index 0000000..138bf3e
--- /dev/null
+++ b/www/inc/styles/CVS/Entries
@@ -0,0 +1,2 @@
+D/gorilla////
+D/default////
diff --git a/www/inc/styles/CVS/Repository b/www/inc/styles/CVS/Repository
new file mode 100644
index 0000000..4339a69
--- /dev/null
+++ b/www/inc/styles/CVS/Repository
@@ -0,0 +1 @@
+original/www/inc/styles
diff --git a/www/inc/styles/CVS/Root b/www/inc/styles/CVS/Root
new file mode 100644
index 0000000..16bd216
--- /dev/null
+++ b/www/inc/styles/CVS/Root
@@ -0,0 +1 @@
+:ext:jimmac@cvs.tuxfamily.org:/cvsroot/original
diff --git a/www/inc/styles/default/CVS/Entries b/www/inc/styles/default/CVS/Entries
new file mode 100644
index 0000000..9eaa230
--- /dev/null
+++ b/www/inc/styles/default/CVS/Entries
@@ -0,0 +1,12 @@
+/bcg.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+/default.css/1.1/Wed Oct 29 00:47:30 2003//
+/left-16.png/1.1/Tue Apr 8 13:23:53 2003/-kb/
+/left.png/1.1/Wed Apr 23 11:03:22 2003/-kb/
+/logo-mini.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+/minus.png/1.1/Thu Mar 28 19:34:49 2002/-kb/
+/plus.png/1.1/Thu Mar 28 19:34:49 2002/-kb/
+/right-16.png/1.1/Tue Apr 8 13:24:17 2003/-kb/
+/right.png/1.1/Wed Apr 23 11:04:26 2003/-kb/
+/title.png/1.1/Tue Oct 28 21:54:11 2003/-kb/
+/zip.png/1.1/Fri May 23 12:44:44 2003/-kb/
+D
diff --git a/www/inc/styles/default/CVS/Repository b/www/inc/styles/default/CVS/Repository
new file mode 100644
index 0000000..ec15a90
--- /dev/null
+++ b/www/inc/styles/default/CVS/Repository
@@ -0,0 +1 @@
+original/www/inc/styles/default
diff --git a/www/inc/styles/default/CVS/Root b/www/inc/styles/default/CVS/Root
new file mode 100644
index 0000000..16bd216
--- /dev/null
+++ b/www/inc/styles/default/CVS/Root
@@ -0,0 +1 @@
+:ext:jimmac@cvs.tuxfamily.org:/cvsroot/original
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..482267d
--- /dev/null
+++ b/www/inc/styles/default/default.css
@@ -0,0 +1,285 @@
+/* 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;
+}
+
+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;
+}
+
+/* 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 {
+ /* 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;
+}
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.png b/www/inc/styles/default/left.png
new file mode 100644
index 0000000..bd5607c
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.png b/www/inc/styles/default/minus.png
new file mode 100644
index 0000000..19eaef3
Binary files /dev/null and b/www/inc/styles/default/minus.png differ
diff --git a/www/inc/styles/default/plus.png b/www/inc/styles/default/plus.png
new file mode 100644
index 0000000..062d005
Binary files /dev/null and b/www/inc/styles/default/plus.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.png b/www/inc/styles/default/right.png
new file mode 100644
index 0000000..bc5bcc5
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..8a6ad6b
Binary files /dev/null and b/www/inc/styles/default/title.png differ
diff --git a/www/inc/styles/default/zip.png b/www/inc/styles/default/zip.png
new file mode 100644
index 0000000..0bc44ab
Binary files /dev/null and b/www/inc/styles/default/zip.png differ
diff --git a/www/inc/styles/gorilla/CVS/Entries b/www/inc/styles/gorilla/CVS/Entries
new file mode 100644
index 0000000..ad515e3
--- /dev/null
+++ b/www/inc/styles/gorilla/CVS/Entries
@@ -0,0 +1,7 @@
+/minus.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+/plus.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+/title.png/1.1/Mon Oct 27 11:01:36 2003/-kb/
+/gorilla.css/1.4/Wed Oct 29 00:23:08 2003//
+/left.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+/right.png/1.1/Tue Oct 21 06:45:11 2003/-kb/
+D
diff --git a/www/inc/styles/gorilla/CVS/Repository b/www/inc/styles/gorilla/CVS/Repository
new file mode 100644
index 0000000..887b74e
--- /dev/null
+++ b/www/inc/styles/gorilla/CVS/Repository
@@ -0,0 +1 @@
+original/www/inc/styles/gorilla
diff --git a/www/inc/styles/gorilla/CVS/Root b/www/inc/styles/gorilla/CVS/Root
new file mode 100644
index 0000000..16bd216
--- /dev/null
+++ b/www/inc/styles/gorilla/CVS/Root
@@ -0,0 +1 @@
+:ext:jimmac@cvs.tuxfamily.org:/cvsroot/original
diff --git a/www/inc/styles/gorilla/gorilla.css b/www/inc/styles/gorilla/gorilla.css
new file mode 100644
index 0000000..9b23168
--- /dev/null
+++ b/www/inc/styles/gorilla/gorilla.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/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/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/stylesheet.inc.css b/www/inc/stylesheet.inc.css
new file mode 100644
index 0000000..9415271
--- /dev/null
+++ b/www/inc/stylesheet.inc.css
@@ -0,0 +1,141 @@
+
diff --git a/www/inc/www.class.inc.php b/www/inc/www.class.inc.php
new file mode 100644
index 0000000..6fa319e
--- /dev/null
+++ b/www/inc/www.class.inc.php
@@ -0,0 +1,210 @@
+bgcolor = $bgcolor;
+ $this->link = $link;
+ $this->vlink = $vlink;
+ $this->alink = $alink;
+ $this->hover = $hover;
+ $this->font = $font;
+ $this->fontsize = $fontsize;
+ $this->textcol = $textcol;
+ }
+
+ ////
+ // !vykpise HTML hlavicku dokumentu
+ // Ten CSS style jeste neni moc dodelanej
+ function header($title) {
+ global $gallery_dir,$root, $snimek, $galerie, $ThisScript, $themes;
+
+ echo "\n";
+
+ echo "\n";
+ echo "\n";
+ echo " $title \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
+ if (browserCheck()=="ie6+" || browserCheck()=="ie4+") {
+ $theme = "ie"; //IE crashes on other themes
+ } else {
+ $theme = "default";
+ }
+ }
+ foreach ($themes as $skin => $url) {
+ echo " \n";
+ }
+
+ require("javascript.inc.php");
+ 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";
+ }
+
+ ////
+ // !vykresli polozku formulare
+ // umi text, password, submit, file, hidden, textarea, select
+ // u textarea je default pocet radku...
+ function input($type, $name, $value, $popis, $default) {
+ if ($type!="hidden") {
+ echo "\n";
+ echo "$popis \n";
+ echo "";
+ }
+ switch ($type) {
+ case "checkbox":
+ echo " ";
+ break;
+ case "password":
+ case "text":
+ echo " ";
+ break;
+ case "file":
+ echo " ";
+ break;
+ case "hidden":
+ echo " \n";
+ break;
+ case "textarea":
+ echo "";
+ break;
+ case "select":
+ echo "\n";
+ while (list($optval, $option) = each($value)) {
+ echo "";
+ echo $option;
+ echo " \n";
+ }
+ echo " ";
+ break;
+ case "submit":
+ echo " ";
+ break;
+ }
+ if ($type!="hidden") {
+ echo " \n";
+ echo " \n";
+ }
+ }
+
+
+}
+
+# return dirs sorted
+class SortDir {
+ var $items;
+
+ function SortDir($directory) {
+ $handle=opendir($directory);
+ while ($file = readdir($handle)) {
+ if ($file != "." && $file != "..") {
+ $this->items[]=$file;
+ }
+ }
+ closedir($handle);
+ natsort($this->items);
+ }
+
+ function Read() {
+ $getback= (pos($this->items));
+ next($this->items);
+ return $getback;
+ }
+}
+
+?>
--
cgit v1.2.3