has_access(100)) { header("Location:" . conf('web_path') . "/index.php?access=denied"); exit(); } if ( $action == 'Change Name' ) { update_album_name($album, $new_name); if ( $update_tag ) { // get songs associated with this $songs = get_songs_from_album($album); // run update_local_mp3 $total_updated = update_local_mp3($new_name, 'album', $songs); $update_text = "Updated the database and $total_updated local files."; } // set the action to view so everybody can see the changes $action = 'View'; } show_template('header'); show_menu_items('Admin'); show_admin_menu('Catalog'); ?>
Use this form to change the name(s) of albums in the database. In order to update your local MP3's your Apache user must have write-permission to your MP3's.