summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php4
-rw-r--r--phpfspot_cfg.php5
2 files changed, 9 insertions, 0 deletions
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");
+
}
?>