diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-03 11:24:31 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-03 11:24:37 +0200 |
commit | 34decf357697a81c23e844ef606c04a20a08c597 (patch) | |
tree | 51d0b095c8c29313e07c9cbeacf6e7b6e2a83281 /lib/preview | |
parent | a11a40d9a96685d41e5acae096752f16785b16b5 (diff) | |
download | nextcloud-server-34decf357697a81c23e844ef606c04a20a08c597.tar.gz nextcloud-server-34decf357697a81c23e844ef606c04a20a08c597.zip |
save current work state
Diffstat (limited to 'lib/preview')
-rw-r--r-- | lib/preview/libreoffice-cl.php | 0 | ||||
-rw-r--r-- | lib/preview/office.php | 13 | ||||
-rw-r--r-- | lib/preview/opendocument.php | 0 |
3 files changed, 13 insertions, 0 deletions
diff --git a/lib/preview/libreoffice-cl.php b/lib/preview/libreoffice-cl.php new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/lib/preview/libreoffice-cl.php diff --git a/lib/preview/office.php b/lib/preview/office.php new file mode 100644 index 00000000000..c66f5584f07 --- /dev/null +++ b/lib/preview/office.php @@ -0,0 +1,13 @@ +<?php +/** + * Copyright (c) 2013 Georg Ehrke georg@ownCloud.com + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ +if(shell_exec('libreoffice') || shell_exec('openoffice')) { + require_once('libreoffice-cl.php'); +}else{ + require_once('msoffice.php'); + require_once('opendocument.php'); +}
\ No newline at end of file diff --git a/lib/preview/opendocument.php b/lib/preview/opendocument.php new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/lib/preview/opendocument.php |