X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=ab5cb9e12c165ab9b34dc3fd0349e9f216146e44;hp=5b18be5c90f870b86e297ba83f6c0d61767b4fea;hb=fe544d65af90df49390155616b9c864ea60ff2e5;hpb=f5ebd8bd36353e5920031e7424ae02c212060b1b diff --git a/phpfspot.class.php b/phpfspot.class.php index 5b18be5..ab5cb9e 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -239,6 +239,32 @@ class PHPFSPOT { } // showPhotoIndex() + public function showBubbleDetails($photo, $direction) + { + if($direction == "up") + $direction = "bubbleimg_up"; + else + $direction = "bubbleimg_down"; + + $details = $this->get_photo_details($photo); + + $image_url = "phpfspot_img.php?idx=". $photo ."&width=200"; + + $filesize = filesize($this->translate_path($details['directory_path']) ."/". $details['name']); + $filesize = rand($filesize/1024, 2); + + $img = getimagesize($this->translate_path($details['directory_path']) ."/". $details['name']); + + $this->tmpl->assign('file_size', $filesize); + $this->tmpl->assign('width', $img[0]); + $this->tmpl->assign('height', $img[1]); + $this->tmpl->assign('file_name', $details['name']); + $this->tmpl->assign('image_id', $direction); + $this->tmpl->assign('image_url', $image_url); + $this->tmpl->show("bubble_details.tpl"); + + } + } ?>