aboutsummaryrefslogtreecommitdiff
path: root/www/inc/funkce.inc.php
diff options
context:
space:
mode:
authorjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2006-02-14 20:52:54 +0000
committerjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2006-02-14 20:52:54 +0000
commitb50897cb0fdf0d42d306b20b8e38f19f8e2832e3 (patch)
tree101066455a67bc4c1be5244f6fbdf608df5f021e /www/inc/funkce.inc.php
parent20407702b92cb93970eaa4a71e659f383d2f92a5 (diff)
downloadoriginal-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.gz
original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.bz2
add sqlite hooks
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@9 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/inc/funkce.inc.php')
-rw-r--r--www/inc/funkce.inc.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php
index be897f7..e45d725 100644
--- a/www/inc/funkce.inc.php
+++ b/www/inc/funkce.inc.php
@@ -1,66 +1,4 @@
<?php
-function navigation ($gallery, $snapshot, $image) {
- global $gallery_dir, $root, $ThisScript, $textnav, $img,
- $show_thumbs, $exif_style, $PNthumbScale;
-
- $next = $snapshot + 1;
- $prev = $snapshot - 1;
-
- if (!$image) { // this will render a navigation bar - max 3 buttons
- echo "\n<div class=\"navbuttons\">\n";
- echo "<div class=\"navbuttonsshell\">\n";
- if ($snapshot > 1) { //previous
- echo "<a id=\"previcon\" href=\"$ThisScript?galerie=$gallery&amp;photo=$prev";
- echo "&amp;exif_style=$exif_style&amp;show_thumbs=$show_thumbs\"";
- echo " accesskey=\"p\">";
- echo "&lt; <span class=\"accesskey\">P</span>revious</a>\n";
- }
- echo "&nbsp;";
- if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { //next
- echo "<a id=\"nexticon\" href=\"$ThisScript?galerie=$gallery&amp;photo=$next";
- echo "&amp;exif_style=$exif_style&amp;show_thumbs=$show_thumbs\"";
- echo " accesskey=\"n\">";
- echo "<span class=\"accesskey\">N</span>ext &gt;</a>\n";
- }
- echo "</div>\n</div>\n";
- } elseif ($image=="prev") { //previous thumbnail
- if ($snapshot > 1) { //previous
- echo "<div class=\"prevthumb\">";
- echo "<a href=\"$ThisScript?galerie=$gallery&amp;photo=$prev";
- echo "&amp;exif_style=$exif_style&amp;show_thumbs=$show_thumbs\">";
- 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 "<img alt=\"Previous\" src=\"";
- echo $Pthumb . "\" width=\"" . round($v[0]/$PNthumbScale);
- echo "\" height=\"" . round($v[1]/$PNthumbScale) . "\" />";
- echo "<br />" . __('Previous');
- echo "</a></div>\n";
- }
- } else { //next thumbnail
- if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) {
- echo "<div class=\"nextthumb\">";
- echo "<a href=\"$ThisScript?galerie=$gallery&amp;photo=$next";
- echo "&amp;exif_style=$exif_style&amp;show_thumbs=$show_thumbs\">";
- 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 "<img alt=\"Next\" src=\"";
- echo $Nthumb . "\" width=\"" . round($v[0]/$PNthumbScale);
- echo "\" height=\"" . round($v[1]/$PNthumbScale) . "\" />";
- //echo "<br /><span class=\"accesskey\">N</span>ext";
- echo "<br />" . __('Next') ;
- echo "</a></div>\n";
- }
- }
-
-}
function check($file) {
global $gallery_dir, $page;