From: Andreas Unterkircher Date: Tue, 13 May 2008 04:28:58 +0000 (+0200) Subject: issue118, jumpin to a specific starting point in the photo-index X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=8a63e413682afe18c55098f7fc165d602288337a;ds=sidebyside issue118, jumpin to a specific starting point in the photo-index Signed-off-by: Andreas Unterkircher --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 00b3af4..0e2ea44 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1294,7 +1294,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 +3142,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;