diff options
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 |