echo $libitem->id; ?> ', '<?php echo 'edit_tvshow_season_' . $libitem->id; ?> ', '<?php echo T_('Season edit'); ?> ', 'tvshow_season_')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php } if (Catalog::can_remove($libitem)) { ?> <a id="<?php echo 'delete_tvshow_season_' . $libitem->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /tvshow_seasons.php?action=delete&tvshow_season_id=<?php echo $libitem->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?> </a>
echo 'edit_tvshow_season_' . $season->id; ?> ', '<?php echo T_('Season edit'); ?> ', '')"> <?php echo T_('Edit Season'); ?> </a> </li> <?php } ?> <?php if (Catalog::can_remove($season)) { ?> <li> <a id="<?php echo 'delete_tvshow_season_' . $season->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /tvshow_seasons.php?action=delete&tvshow_season_id=<?php echo $season->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?>
UI::show_header(); // Switch on Action switch ($_REQUEST['action']) { case 'delete': if (AmpConfig::get('demo_mode')) { break; } $song_id = scrub_in($_REQUEST['song_id']); show_confirmation(T_('Song Deletion'), T_('Are you sure you want to permanently delete this song?'), AmpConfig::get('web_path') . "/song.php?action=confirm_delete&song_id=" . $song_id, 1, 'delete_song'); break; case 'confirm_delete': if (AmpConfig::get('demo_mode')) { break; } $song = new Song($_REQUEST['song_id']); if (!Catalog::can_remove($song)) { debug_event('song', 'Unauthorized to remove the song `.' . $song->id . '`.', 1); UI::access_denied(); exit; } if ($song->remove_from_disk()) { show_confirmation(T_('Song Deletion'), T_('Song has been deleted.'), AmpConfig::get('web_path')); } else { show_confirmation(T_('Song Deletion'), T_('Cannot delete this song.'), AmpConfig::get('web_path')); } break; case 'show_lyrics': $song = new Song($_REQUEST['song_id']); $song->format(); $song->fill_ext_info(); $lyrics = $song->get_lyrics();
echo 'edit_tvshow_' . $tvshow->id; ?> ', '<?php echo T_('TV Show edit'); ?> ', '')"> <?php echo T_('Edit TV Show'); ?> </a> </li> <?php } ?> <?php if (Catalog::can_remove($tvshow)) { ?> <li> <a id="<?php echo 'delete_tvshow_' . $tvshow->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /tvshows.php?action=delete&tvshow_id=<?php echo $tvshow->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?>
echo 'edit_label_' . $label->id; ?> ', '<?php echo T_('Label edit'); ?> ', '')"> <?php echo T_('Edit Label'); ?> </a> </li> <?php } ?> <?php if (Catalog::can_remove($label)) { ?> <li> <a id="<?php echo 'delete_label_' . $label->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /labels.php?action=delete&label_id=<?php echo $label->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?>
* Display Switch */ switch ($_REQUEST['action']) { case 'delete': if (AmpConfig::get('demo_mode')) { break; } $tvshow_season_id = scrub_in($_REQUEST['tvshow_season_id']); show_confirmation(T_('TVShow Season Deletion'), T_('Are you sure you want to permanently delete this tvshow season?'), AmpConfig::get('web_path') . "/tvshow_seasons.php?action=confirm_delete&tvshow_season_id=" . $tvshow_season_id, 1, 'delete_tvshow_season'); break; case 'confirm_delete': if (AmpConfig::get('demo_mode')) { break; } $tvshow_season = new TVShow_Season($_REQUEST['tvshow_season_id']); if (!Catalog::can_remove($tvshow_season)) { debug_event('tvshow_season', 'Unauthorized to remove the tvshow `.' . $tvshow_season->id . '`.', 1); UI::access_denied(); exit; } if ($tvshow_season->remove_from_disk()) { show_confirmation(T_('TVShow Season Deletion'), T_('TVShow Season has been deleted.'), AmpConfig::get('web_path')); } else { show_confirmation(T_('TVShow Season Deletion'), T_('Cannot delete this tvshow season.'), AmpConfig::get('web_path')); } break; case 'show': $season = new TVShow_Season($_REQUEST['season']); $season->format(); $object_ids = $season->get_episodes(); $object_type = 'tvshow_episode';
', '<?php echo 'edit_video_' . $video->id; ?> ', '<?php echo T_('Edit'); ?> ', '')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php } ?> <?php if (Catalog::can_remove($video)) { ?> <a id="<?php echo 'delete_video_' . $video->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /video.php?action=delete&video_id=<?php echo $video->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?> </a>
* Display Switch */ switch ($_REQUEST['action']) { case 'delete': if (AmpConfig::get('demo_mode')) { break; } $artist_id = scrub_in($_REQUEST['artist_id']); show_confirmation(T_('Artist Deletion'), T_('Are you sure you want to permanently delete this artist?'), AmpConfig::get('web_path') . "/artists.php?action=confirm_delete&artist_id=" . $artist_id, 1, 'delete_artist'); break; case 'confirm_delete': if (AmpConfig::get('demo_mode')) { break; } $artist = new Artist($_REQUEST['artist_id']); if (!Catalog::can_remove($artist)) { debug_event('artist', 'Unauthorized to remove the artist `.' . $artist->id . '`.', 1); UI::access_denied(); exit; } if ($artist->remove_from_disk()) { show_confirmation(T_('Artist Deletion'), T_('Artist has been deleted.'), AmpConfig::get('web_path')); } else { show_confirmation(T_('Artist Deletion'), T_('Cannot delete this artist.'), AmpConfig::get('web_path')); } break; case 'show': $artist = new Artist($_REQUEST['artist']); $artist->format(); if (AmpConfig::get('album_release_type')) { $multi_object_ids = $artist->get_albums($_REQUEST['catalog'], false, true);
<a rel="nohtml" href="<?php echo $web_path; ?> /batch.php?action=album&<?php echo $album->get_http_album_query_ids('id'); ?> "><?php echo T_('Download'); ?> </a> </li> <?php } ?> <?php if (Catalog::can_remove($album)) { ?> <li> <a id="<?php echo 'delete_album_' . $album->id; ?> " href="<?php echo AmpConfig::get('web_path'); ?> /albums.php?action=delete&album_id=<?php echo $album->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?>
', '<?php echo 'edit_podcast_episode_' . $episode->id; ?> ', '<?php echo T_('Edit'); ?> ', '')"> <?php echo UI::get_icon('edit', T_('Edit')); ?> </a> <?php } ?> <?php if (Catalog::can_remove($episode)) { ?> <a href="<?php echo AmpConfig::get('web_path'); ?> /podcast_episode.php?action=delete&podcast_episode_id=<?php echo $episode->id; ?> "> <?php echo UI::get_icon('delete', T_('Delete')); ?> </a> <?php } ?>