diff options
author | pb1dft <pb1dft@ampache> | 2006-11-13 17:48:51 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2006-11-13 17:48:51 +0000 |
commit | 095bc809d6ad3149fb5fe8e5bce32e2865e62f3d (patch) | |
tree | 5e6696767173d5742a9e445779ba81ed56d9446d /admin/system.php | |
parent | 868f2b2a2029ea3453e6ef219c96e8bfeb6097e7 (diff) | |
download | ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.tar.gz ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.tar.bz2 ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.zip |
Added new flash player and fixed a lot of other problems. Implemented Export to ItunesDB
Diffstat (limited to 'admin/system.php')
-rw-r--r-- | admin/system.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/admin/system.php b/admin/system.php index 30ad3c19..c9dad4f5 100644 --- a/admin/system.php +++ b/admin/system.php @@ -103,6 +103,30 @@ switch ($action) { 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; |