From: Andreas Unterkircher Date: Sat, 9 Jun 2007 07:22:28 +0000 (+0000) Subject: tag ignore list X-Git-Tag: phpfspot-1.2~263 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=7ca20d2b9cd665125a20a3d480694db0fde0afdc tag ignore list git-svn-id: file:///var/lib/svn/phpfspot/trunk@72 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 3f7a728..f405626 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -57,6 +57,10 @@ class PHPFSPOT { $tag_id = $row['id']; $tag_name = $row['name']; + /* check if config requests to ignore this tag */ + if(in_array($row['name'], $this->cfg->hide_tags)) + continue; + $this->tags[$tag_id] = $tag_name; $this->avail_tags[$count] = $tag_id; diff --git a/phpfspot_cfg.php b/phpfspot_cfg.php index 86171d6..a451544 100644 --- a/phpfspot_cfg.php +++ b/phpfspot_cfg.php @@ -34,6 +34,11 @@ class PHPFSPOT_CFG { var $path_replace_from = "/home/unki"; var $path_replace_to = "/var/www/images.netshadow.at/htdocs/phpfspot"; + /* This is not really a security option - it only hides some present F-Spot + tags from the available-tags-list + */ + var $hide_tags = Array("Favorites", "Hidden", "People", "Places", "Events"); + } ?>