+function filerm_content(App $a)
+{
+ if (! local_user())
+ {
+ exit();
+ }
+
+ $term = XML::unescape(trim($_GET['term']));
+ $cat = XML::unescape(trim(defaults($_GET, 'cat', '')));
+
+ $category = (($cat) ? true : false);
+
+ if ($category)
+ {
+ $term = $cat;