summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 49d0c7d..6dcc8de 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -776,12 +776,12 @@ class PHPFSPOT {
<div style=\"display: table-cell;\">
<div style=\"display: table-row; text-align: center;\">
<a href=\"javascript:Tags('del', ". $tag .");\" title=\"". $this->tags[$tag] ."\">
- <img src=\"phpfspot_img.php?tagidx=". $tag ."\" />
+ <img src=\"". $this->cfg->web_path ."/phpfspot_img.php?tagidx=". $tag ."\" />
</a>
</div>
<div style=\"display: table-row; text-align: center;\">
<a href=\"javascript:Tags('del', ". $tag .");\" title=\"". $this->tags[$tag] ."\">
- <img src=\"resources/underbar.png\" />
+ <img src=\"". $this->cfg->web_path ."/resources/underbar.png\" />
</a>
</div>
</div>
@@ -1332,7 +1332,6 @@ class PHPFSPOT {
if($last_page > 1)
$this->tmpl->assign('page_selector', $page_select);
}
-
$current_tags = $this->getCurrentTags();
$extern_link = "index.php?mode=showpi";
@@ -3129,6 +3128,7 @@ class PHPFSPOT {
break;
case 'tag':
if(is_numeric($options[2])) {
+ $this->session_cleanup();
$_GET['tags'] = $options[2];
$_SESSION['selected_tags'] = Array($options[2]);
return $this->showPhotoIndex();
@@ -3155,6 +3155,21 @@ class PHPFSPOT {
} // is_user_friendly_url()
+ /**
+ * session cleanup
+ *
+ * this function will cleanup user's session information
+ */
+ private function session_cleanup()
+ {
+ unset($_SESSION['begin_with']);
+ $this->resetDateSearch();
+ $this->resetPhotoView();
+ $this->resetTagSearch();
+ $this->resetNameSearch();
+ $this->resetDateSearch();
+
+ } // session_cleanup()
} // class PHPFSPOT