save current work state

This commit is contained in:
Georg Ehrke 2013-06-03 11:24:31 +02:00
parent a11a40d9a9
commit 34decf3576
4 changed files with 14 additions and 1 deletions

View file

@ -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 {

View file

13
lib/preview/office.php Normal file
View file

@ -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');
}

View file