diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-03 09:14:38 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-03 09:14:38 +0000 |
commit | 99baf7582de072847cf6307d5b291168520554b1 (patch) | |
tree | 237171eb19f3a9012488cd7f2c5b82608a17b861 /artists.php | |
parent | 28f7ad7026a864479feb92007315a22096c9e6d2 (diff) | |
download | ampache-99baf7582de072847cf6307d5b291168520554b1.tar.gz ampache-99baf7582de072847cf6307d5b291168520554b1.tar.bz2 ampache-99baf7582de072847cf6307d5b291168520554b1.zip |
added paging to the playlist view, corrected a few stupid parse errors / mistakes
Diffstat (limited to 'artists.php')
-rw-r--r-- | artists.php | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/artists.php b/artists.php index f00d8fcf..4ce7c6f5 100644 --- a/artists.php +++ b/artists.php @@ -88,26 +88,26 @@ switch($_REQUEST['action']) { break; case 'show_similar': - if (!$user->has_access('100')) { access_denied(); } - - if (isset($_REQUEST['artist'])) { - $artist = new Artist($_REQUEST['artist']); - //options - $similar_artists = $artist->get_similar_artists( - make_bool($_POST['n_rep_uml']), - $_POST['n_filter'], - $_POST['n_ignore'], - $_POST['c_mode'], - $_POST['c_count_w'], - $_POST['c_percent_w'], - $_POST['c_distance_l'], - make_bool($_POST['c_ignins_l'])); - $artist_id = $artist->id; - $artist_name = $artist->name; - require (conf('prefix') . '/templates/show_similar_artists.inc.php'); - } else { - $GLOBALS['error']->add_error('general',"Error: No artist given"); - } + if (!$GLOBALS['user']->has_access('75')) { + access_denied(); + exit; + } + + $artist = new Artist($_REQUEST['artist']); + //options + $similar_artists = $artist->get_similar_artists( + make_bool($_POST['n_rep_uml']), + $_POST['n_filter'], + $_POST['n_ignore'], + $_POST['c_mode'], + $_POST['c_count_w'], + $_POST['c_percent_w'], + $_POST['c_distance_l'], + make_bool($_POST['c_ignins_l'])); + $artist_id = $artist->id; + $artist_name = $artist->name; + require Config::get('prefix') . '/templates/show_similar_artists.inc.php'; + break; case 'rename': //die if not enough permissions |