diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-08 06:44:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-08 06:44:22 +0000 |
commit | 5318a90e4a4fddfb7762feb2bb8bc6dc4802fb7d (patch) | |
tree | b5c890628234e42457dbd18f08feae9ca74081f3 /admin | |
parent | efd932b9fde167ec1a54809fe5fd9286f29eda2c (diff) | |
download | ampache-5318a90e4a4fddfb7762feb2bb8bc6dc4802fb7d.tar.gz ampache-5318a90e4a4fddfb7762feb2bb8bc6dc4802fb7d.tar.bz2 ampache-5318a90e4a4fddfb7762feb2bb8bc6dc4802fb7d.zip |
add in functionality to reset db charset also updated the update function to take into account the collation
Diffstat (limited to 'admin')
-rw-r--r-- | admin/system.php | 48 |
1 files changed, 10 insertions, 38 deletions
diff --git a/admin/system.php b/admin/system.php index 3b338346..52d84b4c 100644 --- a/admin/system.php +++ b/admin/system.php @@ -28,6 +28,7 @@ if (!Access::check('interface',100)) { exit(); } +show_header(); /* Switch on action boys */ switch ($_REQUEST['action']) { @@ -35,57 +36,28 @@ switch ($_REQUEST['action']) { * /config/ampache.cfg to .cfg.dist */ case 'generate_config': + ob_end_clean(); $current = parse_ini_file(Config::get('prefix') . '/config/ampache.cfg.php'); $final = generate_config($current); $browser = new Browser(); $browser->downloadHeaders('ampache.cfg.php','text/plain',false,filesize(Config::get('prefix') . '/config/ampache.cfg.php.dist')); echo $final; - + exit; break; + case 'reset_db_charset': + Dba::reset_db_charset(); + show_confirmation(_('Database Charset Updated'),_('Your Database and assoicated tables have been updated to match your currently configured charset'),'/admin/system.php?action=show_debug'); + break; case 'show_debug': - show_header(); $configuration = Config::get_all(); require_once Config::get('prefix') . '/templates/show_debug.inc.php'; - show_footer(); break; - case 'check_php_settings': - - break; - case 'check_iconv': - - break; - /* Check this version against ampache.org's record */ - case 'check_version': - - - break; - /* Export Catalog to ItunesDB */ - case 'export': - $catalog = new Catalog(); - switch ($_REQUEST['export']) { - case 'itunes': - header("Cache-control: public"); - header("Content-Disposition: filename=itunes.xml"); - header("Content-Type: application/itunes+xml; charset=utf-8"); - echo xml_get_header('itunes'); - echo $catalog->export($_REQUEST['export']); - echo xml_get_footer('itunes'); - break; - default: - $url = conf('web_path') . '/admin/index.php'; - $title = _('Export Failed'); - $body = ''; - show_template('header'); - show_confirmation($title,$body,$url); - show_template('footer'); - break; - } - - break; - default: // Rien a faire break; } // end switch + +show_footer(); + ?> |