diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-30 02:05:31 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-30 02:05:31 +0000 |
commit | 5975361e038e17e5f91fd69da4f5df2d3e5af259 (patch) | |
tree | 10e4d84643d01a6e04ecab6eb6e368d750fd35ad | |
parent | 318700ad7cd0e67bf02a1e6777cb5c2cd4c3b240 (diff) | |
download | ampache-5975361e038e17e5f91fd69da4f5df2d3e5af259.tar.gz ampache-5975361e038e17e5f91fd69da4f5df2d3e5af259.tar.bz2 ampache-5975361e038e17e5f91fd69da4f5df2d3e5af259.zip |
fixed an issue with downsample remote where it required access_control to be on, and also would downsample those inside the local network definition rather then those outside
-rwxr-xr-x | docs/CHANGELOG | 2 | ||||
-rw-r--r-- | play/index.php | 8 | ||||
-rw-r--r-- | templates/list_header.inc.php | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 5702ecb1..4455ae58 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.4-Beta2 + - Fixed downsample remote so that is downsamples those not in the + network def rather then those inside the network def - Fixed issue with page-a-nation on show catalogs page - Fixed removal of rating from db when 'unrating' the object - Fixed Itunes Export (Thx flashk) diff --git a/play/index.php b/play/index.php index 38e6bcbf..ff1be7e0 100644 --- a/play/index.php +++ b/play/index.php @@ -239,12 +239,12 @@ if (Config::get('track_user_ip')) { $user->insert_ip_history(); } -/* If access control is on and they aren't local, downsample! */ -if (Config::get('access_control') AND Config::get('downsample_remote')) { - if (Access::check_network('network',$_SERVER['REMOTE_ADDR'],$GLOBALS['user']->id,'25')) { +// If we've got downsample remote enabled +if (Config::get('downsample_remote')) { + if (!Access::check_network('network',$_SERVER['REMOTE_ADDR'],$GLOBALS['user']->id,'25')) { $not_local = true; } -} // if access_control +} // if downsample remote is enabled // If they are downsampling, or if the song is not a native stream or it's non-local if (($GLOBALS['user']->prefs['transcode'] == 'always' || !$song->native_stream() || $not_local) && $GLOBALS['user']->prefs['transcode'] != 'never') { diff --git a/templates/list_header.inc.php b/templates/list_header.inc.php index c465a6b0..551c37bc 100644 --- a/templates/list_header.inc.php +++ b/templates/list_header.inc.php @@ -34,7 +34,7 @@ $uid = Config::get('list_header_uid'); $sides = 5; // ++ the uid -Config::set('list_header_uid',$uid+1); +Config::set('list_header_uid',$uid+1,1); // Next $next_offset = $start + $limit; |