friendica/mod/wall_upload.php

16 lines
211 B
PHP
Raw Normal View History

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