aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filer.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-03-19 12:24:40 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-03-19 12:24:40 +0100
commitea4be0db89b5e95b50211e023e94aa008aadae46 (patch)
tree2d0654cae606cb3e543463e5569c2b2e689e45d6 /mod/filer.php
parentc30342e2f7bde6fda899193f97ce3051cd8b2fdd (diff)
parent2349852b4abd1638624b541f173f51d1fb1ea011 (diff)
downloadvolse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.tar.gz
volse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.tar.bz2
volse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.zip
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'mod/filer.php')
-rwxr-xr-xmod/filer.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/filer.php b/mod/filer.php
new file mode 100755
index 000000000..a9e213536
--- /dev/null
+++ b/mod/filer.php
@@ -0,0 +1,23 @@
+<?php
+
+require_once('include/security.php');
+require_once('include/bbcode.php');
+require_once('include/items.php');
+
+
+function filer_content(&$a) {
+
+ if(! local_user()) {
+ killme();
+ }
+
+ $term = notags(trim($_GET['term']));
+ $item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
+
+ logger('filer: tag ' . $term . ' item ' . $item_id);
+
+ if($item_id && strlen($term))
+ file_tag_save_file(local_user(),$item_id,$term);
+
+ killme();
+}