From 77d003c05de7f969469b186a8d85bba83453b117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 28 Apr 2006 09:07:46 +0000 Subject: [PATCH] Add document metainformation. --- ChangeLog | 1 + libraries/opendocument.lib.php | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 02dfe98e9..97f2085f4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ $Source$ * libraries/export/ods.php: Use correct charset. * libraries/export/odt.php, lang/*, libraries/config.default.php: Add Open Document Text export (RFE #1068007). + * libraries/opendocument.lib.php: Add document metainformation. 2006-04-27 Sebastian Mendel * db_printview.php: fixed bug 'no tables found', refactored diff --git a/libraries/opendocument.lib.php b/libraries/opendocument.lib.php index 967285e36..1a1e8d2ec 100644 --- a/libraries/opendocument.lib.php +++ b/libraries/opendocument.lib.php @@ -22,10 +22,23 @@ function PMA_createOpenDocument($mime, $data) { $zipfile = new zipfile(); $zipfile -> addFile($mime, 'mimetype'); $zipfile -> addFile($data, 'content.xml'); - $zipfile -> addFile('' + $zipfile -> addFile('' + . '' + . '' + . 'phpMyAdmin ' . PMA_VERSION . '' + . 'phpMyAdmin ' . PMA_VERSION . '' + . '' . strftime('%Y-%m-%dT%H:%M:%S') . '' + . '' + . '' + , 'meta.xml'); + $zipfile -> addFile('' . '' . '' . '' + . '' . '' , 'META-INF/manifest.xml'); return $zipfile -> file();