aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/wall_upload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
new file mode 100644
index 000000000..769e5dcbc
--- /dev/null
+++ b/mod/wall_upload.php
@@ -0,0 +1,16 @@
+<?php
+
+
+function wall_upload_post(&$a) {
+
+
+ $src = $_FILES['userfile']['tmp_name'];
+
+
+unlink($src);
+
+
+ echo "<img src=\"".$a->get_baseurl(). "/images/default-profile.jpg\" alt=\"default\" />";
+ killme();
+
+} \ No newline at end of file