X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=f938dbc30ef4710640744fa619ec8bf19213d377;hp=00b3af4a08f402fedcaf6e1ba162adf6c30bce3c;hb=112916d4ffcc59590b3fd8753ea832c171167751;hpb=94b3b6259391b0d2f206c792974b6ff53a70aa63
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 00b3af4..f938dbc 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()
@@ -1294,7 +1299,16 @@ class PHPFSPOT {
else
$style = "";
- $select = "is_user_friendly_url()) {
+ $select = "cfg->web_path ."/tag/205/". $start_with ."\"";
+ }
+ else {
+ $select = "cfg->web_path ."/index.php?mode=showpi tags=". $current_tags ." begin_with=". $begin_with ."\"";
+ }
+ $select.= " onclick=\"showPhotoIndex(". $start_with ."); return false;\"";
+
if($style != "")
$select.= $style;
$select.= ">". $i ." ";
@@ -3133,6 +3147,8 @@ class PHPFSPOT {
$this->session_cleanup();
$_GET['tags'] = $options[2];
$_SESSION['selected_tags'] = Array($options[2]);
+ if(isset($options[3]) && is_numeric($options[3]))
+ $_SESSION['begin_with'] = $options[3];
return $this->showPhotoIndex();
}
break;