tag ignore list
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 07:22:28 +0000 (07:22 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 07:22:28 +0000 (07:22 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@72 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
phpfspot_cfg.php

index 3f7a7280253b04cdd44110ee3188ee7560610882..f405626dc4f573f3f922f427e4512ed56457ead8 100644 (file)
@@ -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;
 
index 86171d661be99c02ac9c328fe3758a027e9c632e..a451544b9bb487507cc5debff9412e8f02dfb48d 100644 (file)
@@ -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");
+
 }
 
 ?>