summaryrefslogtreecommitdiffstats
path: root/play
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-26 07:54:28 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-26 07:54:28 +0000
commit08b4f1e0478228fdb4d27930b3be927cb2429833 (patch)
tree8f06ee2212cd69654b87e5da9e39ffa7f728511d /play
parent25e3f1a829a0ffc77c551a5942a7490d9f23f92a (diff)
downloadampache-08b4f1e0478228fdb4d27930b3be927cb2429833.tar.gz
ampache-08b4f1e0478228fdb4d27930b3be927cb2429833.tar.bz2
ampache-08b4f1e0478228fdb4d27930b3be927cb2429833.zip
I need to go to bed now
Diffstat (limited to 'play')
-rw-r--r--play/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php
index f1badb27..c84545b1 100644
--- a/play/index.php
+++ b/play/index.php
@@ -192,11 +192,11 @@ header("Accept-Ranges: bytes" );
set_time_limit(0);
/* If access control is on and they aren't local, downsample! */
-//if (conf('access_control') AND conf('downsample_remote')) {
+if (conf('access_control') AND conf('downsample_remote')) {
if (!$access->check('network',$_SERVER['REMOTE_ADDR'],$GLOBALS['user']->username,'25')) {
$not_local = true;
}
-//} // if access_control
+} // if access_control
if ($GLOBALS['user']->prefs['play_type'] == 'downsample' || !$song->native_stream() || $not_local) {
$results = start_downsample($song,$lastid,$song_name);