diff --git a/ext/upload/main.php b/ext/upload/main.php index 8043d1b6..4233f4a5 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -42,6 +42,21 @@ class Upload extends Extension { $this->theme->display_error($event->page, "Upload Denied", "Anonymous posting is disabled"); } } + else if(!empty($_GET['url'])) { + global $user; + if($this->can_upload($user)) { + $url = $_GET['url']; + $tags = array('tagme'); + if(!empty($_GET['tags'])) { + $tags = tag_explode($_GET['tags']); + } + $ok = $this->try_transload($url, $tags, $url); + $this->theme->display_upload_status($event->page, $ok); + } + else { + $this->theme->display_error($event->page, "Upload Denied", "Anonymous posting is disabled"); + } + } else { $this->theme->display_page($event->page); }