downloadHeaders('ampache.cfg.php', 'text/plain',false,filesize(AmpConfig::get('prefix') . '/config/ampache.cfg.php.dist')); echo $final; exit; case 'write_config': $final = write_config(AmpConfig::get('prefix') . '/config/ampache.cfg.php'); header('Location: '. AmpConfig::get('web_path') . '/index.php'); exit; 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') . '/templates/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();