direct transload
git-svn-id: file:///home/shish/svn/shimmie2/trunk@683 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
b632c92d25
commit
cecbfea5aa
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user