summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 5e25f21..8fe0f77 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -635,43 +635,6 @@ class PHPFSPOT {
} // showPhotoIndex()
- public function showBubbleDetails($photo, $direction)
- {
- if($direction == "up")
- $direction = "bubbleimg_up";
- else
- $direction = "bubbleimg_down";
-
- $details = $this->get_photo_details($photo);
- $orig_path = $this->translate_path($details['directory_path']) ."/". $details['name'];
-
- $image_url = "phpfspot_img.php?idx=". $photo ."&width=". $this->cfg->bubble_width;
-
- $filesize = filesize($orig_path);
- $filesize = rand($filesize/1024, 2);
-
- if(!file_exists($orig_path)) {
- $this->_warning("Photo ". $orig_path ." does not exist!<br />\n");
- return;
- }
-
- if(!is_readable($orig_path)) {
- $this->_warning("Photo ". $orig_path ." is not readable for user ". get_current_user() ."<br />\n");
- return;
- }
-
- $img = getimagesize($orig_path);
-
- $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");
-
- } // showBubbleDetails()
-
public function showCredits()
{
$this->tmpl->assign('version', $this->cfg->version);
@@ -849,7 +812,6 @@ class PHPFSPOT {
$resolutions = Array(
$this->cfg->thumb_width,
- $this->cfg->bubble_width,
$this->cfg->photo_width,
$this->cfg->mini_width,
);