diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-08 23:15:33 -0400 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2011-04-08 23:26:21 -0400 |
commit | f7c1e57cf021f1d6f00b209f1640bc24c6303391 (patch) | |
tree | 31d8cbd7c1672e4121d29f659819c4d46baaeaed /lib/ui.lib.php | |
parent | 4aa256cb07ee2dd0a113b56b06accf1dae2c61c7 (diff) | |
download | ampache-f7c1e57cf021f1d6f00b209f1640bc24c6303391.tar.gz ampache-f7c1e57cf021f1d6f00b209f1640bc24c6303391.tar.bz2 ampache-f7c1e57cf021f1d6f00b209f1640bc24c6303391.zip |
Transcoding/streaming cleanup.
Derive our new filesize from the length, not the previous bitrate and
size. Allow higher bitrates than the source when they're different
formats. Return HTTP error codes when an error occurs. Minor cleanup.
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index c7d21741..ded371a1 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -103,10 +103,11 @@ if (!function_exists('ngettext')) { * access_denied * Throws an error if they try to do something that they aren't allowed to. */ -function access_denied() { +function access_denied($error = "Access Denied") { // Clear any crap we've got up top ob_end_clean(); + header("HTTP/1.1 403 $error"); require_once Config::get('prefix') . '/templates/show_denied.inc.php'; exit; |