diff options
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index 6800da2..0a59d96 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -679,11 +679,17 @@ class PHPFSPOT { } // setTagCondition() - public function startSearch($searchfor) + public function startTagSearch($searchfor) { $_SESSION['searchfor'] = $searchfor; + $_SESSION['selected_tags'] = Array(); - } // startSearch() + foreach($this->avail_tags as $tag) { + if(preg_match('/'. $searchfor .'/i', $this->tags[$tag])) + array_push($_SESSION['selected_tags'], $tag); + } + + } // startTagSearch() private function rotateImage($img, $degrees) { |