X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=54308aa25ca3e109e2e4d7c7ada4e958b72a1b44;hp=0e2ea44b7cd9ae92fcd8cbc04d13f2fced4f0228;hb=b690db6fe75d323ff4f30e2be0a447a75e140cb5;hpb=8a63e413682afe18c55098f7fc165d602288337a;ds=sidebyside diff --git a/phpfspot.class.php b/phpfspot.class.php index 0e2ea44..54308aa 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -223,6 +223,11 @@ class PHPFSPOT { if(isset($_SESSION['begin_with']) && $this->cfg->thumbs_per_page == 0) unset($_SESSION['begin_with']); + // if user-friendly-url's are enabled, set also a flag for the template handler + if($this->is_user_friendly_url()) { + $this->tmpl->assign('user_friendly_url', 'true'); + } + } // __construct() public function __destruct() @@ -773,17 +778,10 @@ class PHPFSPOT { break; case 'img': $output.= " -
-
- tags[$tag] ."\"> - cfg->web_path ."/phpfspot_img.php?tagidx=". $tag ."\" /> - -
-
- tags[$tag] ."\"> - cfg->web_path ."/resources/underbar.png\" /> - -
+
+ tags[$tag] ."\"> + cfg->web_path ."/phpfspot_img.php?tagidx=". $tag ."\" /> +
"; break; @@ -867,7 +865,7 @@ class PHPFSPOT { } // resetTags() /** - * returns the value for the autocomplet tag-search + * returns the value for the autocomplete tag-search * @return string */ public function get_xml_tag_list() @@ -3114,14 +3112,14 @@ class PHPFSPOT { { if(preg_match('/\/photoview\/|\/photo\/|\/tag\//', $request_uri)) { - unset($_SESSION['start_action']); - unset($_SESSION['selected_tags']); - $options = explode('/', $request_uri); switch($options[1]) { case 'photoview': if(is_numeric($options[2])) { + $this->session_cleanup(); + //unset($_SESSION['start_action']); + //unset($_SESSION['selected_tags']); $_GET['mode'] = 'showp'; return $this->showPhoto($options[2]); } @@ -3181,6 +3179,7 @@ class PHPFSPOT { $this->resetTagSearch(); $this->resetNameSearch(); $this->resetDateSearch(); + $this->resetTags(); } // session_cleanup()