summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-06-03 11:24:31 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-06-03 11:24:37 +0200
commit34decf357697a81c23e844ef606c04a20a08c597 (patch)
tree51d0b095c8c29313e07c9cbeacf6e7b6e2a83281 /lib
parenta11a40d9a96685d41e5acae096752f16785b16b5 (diff)
downloadnextcloud-server-34decf357697a81c23e844ef606c04a20a08c597.tar.gz
nextcloud-server-34decf357697a81c23e844ef606c04a20a08c597.zip
save current work state
Diffstat (limited to 'lib')
-rwxr-xr-xlib/preview.php2
-rw-r--r--lib/preview/libreoffice-cl.php0
-rw-r--r--lib/preview/office.php13
-rw-r--r--lib/preview/opendocument.php0
4 files changed, 14 insertions, 1 deletions
diff --git a/lib/preview.php b/lib/preview.php
index a73f4cb1ac0..4705efe2107 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -20,7 +20,7 @@ require_once('preview/pdf.php');
require_once('preview/svg.php');
require_once('preview/txt.php');
require_once('preview/unknown.php');
-require_once('preview/msoffice.php');
+//require_once('preview/msoffice.php');
//require_once('preview/opendocument.php');
class Preview {
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