case 'reset_db_charset': Dba::reset_db_charset(); show_confirmation(T_('Database Charset Updated'), T_('Your Database and associated tables have been updated to match your currently configured charset'), AmpConfig::get('web_path') . '/admin/system.php?action=show_debug'); break; case 'show_debug': $configuration = AmpConfig::get_all(); if ($_REQUEST['autoupdate'] == 'force') { $version = AutoUpdate::get_latest_version(true); } require_once AmpConfig::get('prefix') . UI::find_template('show_debug.inc.php'); break; case 'clear_cache': switch ($_REQUEST['type']) { case 'song': Song::clear_cache(); break; case 'artist': Artist::clear_cache(); break; case 'album': Album::clear_cache(); break; } show_confirmation(T_('Cache cleared'), T_('Your cache has been cleared successfully.'), AmpConfig::get('web_path') . '/admin/system.php?action=show_debug'); break; default: // Rien a faire break; } // end switch UI::show_footer();