friendica/mod/wall_upload.php

16 lines
211 B
PHP
Raw Normal View History

2010-07-23 03:22:03 +00:00
<?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();
}