diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-02-16 23:08:08 +0100 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-02-16 23:08:08 +0100 |
commit | e57cf65d092c1a6458c3a468b017018905018eeb (patch) | |
tree | cb06ff0cf82afed514aa95c5c33e5faef8a9ef62 /lib/exe/mediamanager.php | |
parent | a0e625181ad2e2369e8db0e5691f7356363776d0 (diff) | |
parent | 9bbf02e86e5c1181bbc288ce42f1937f309a7e79 (diff) | |
download | rpg-e57cf65d092c1a6458c3a468b017018905018eeb.tar.gz rpg-e57cf65d092c1a6458c3a468b017018905018eeb.tar.bz2 |
Merge remote-tracking branch 'origin/master' into authpluginconfig
Diffstat (limited to 'lib/exe/mediamanager.php')
-rw-r--r-- | lib/exe/mediamanager.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php index 04dd178cc..53d438321 100644 --- a/lib/exe/mediamanager.php +++ b/lib/exe/mediamanager.php @@ -36,19 +36,16 @@ // do not display the manager if user does not have read access if($AUTH < AUTH_READ && !$fullscreen) { - header('HTTP/1.0 403 Forbidden'); + http_status(403); die($lang['accessdenied']); } - // create the given namespace (just for beautification) - if($AUTH >= AUTH_UPLOAD) { io_createNamespace("$NS:xxx", 'media'); } - // handle flash upload if(isset($_FILES['Filedata'])){ $_FILES['upload'] =& $_FILES['Filedata']; $JUMPTO = media_upload($NS,$AUTH); if($JUMPTO == false){ - header("HTTP/1.0 400 Bad Request"); + http_status(400); echo 'Upload failed'; } echo 'ok'; |