has_access(100)) { header("Location:". conf('web_path') . "/index.php?access=denied"); exit(); } $dbh = dbh(); if ( $action == 'Change Name' ) { if ( $settings[demo_mode] == 'false' && $username != $settings[demo_user] ) { $old_artist_name = get_artist_name($artist); update_artist_name($artist, $new_name); if ( $update_tag ) { // get songs associated with this $song_ids = get_song_ids_from_artist($artist); // run update_local_mp3 $total_updated = update_local_mp3($new_name, 'artist', $song_ids); $update_text = "Updated $old_artist_name to $new_name and $total_updated local files."; } else { $update_text = "Updated $old_artist_name to $new_name."; } // set the action to view so everybody can see the changes $action = 'View'; } } show_template('header'); show_menu_items(".."); show_admin_menu('Catalog'); ?>
Use this form to change the name(s) of artists in the database. In order to update your local MP3's your Apache user must have write-permission to your MP3's.
= $update_text ?>