diff --git a/ajax/thumbnail.php b/ajax/thumbnail.php
new file mode 100644
index 00000000..1f33d47b
--- /dev/null
+++ b/ajax/thumbnail.php
@@ -0,0 +1,31 @@
+.
+*
+*/
+
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('office');
+session_write_close();
+
+$file = $_GET['filepath'];
+\OCP\Preview::show($file,120,120);
+
+
diff --git a/appinfo/app.php b/appinfo/app.php
new file mode 100755
index 00000000..38b53ea3
--- /dev/null
+++ b/appinfo/app.php
@@ -0,0 +1,38 @@
+.
+ *
+ */
+
+OCP\Util::addStyle( 'office', 'style');
+
+OCP\App::register(array('order' => 70, 'id' => 'office', 'name' => 'Office'));
+
+OCP\App::addNavigationEntry(array(
+ 'id' => 'office_index',
+ 'order' => 80,
+ 'href' => OCP\Util::linkTo('office', 'index.php'),
+ 'icon' => OCP\Util::imagePath('office', 'office.png'),
+ 'name' => 'Office')
+);
+
+
+
+?>
diff --git a/appinfo/info.xml b/appinfo/info.xml
new file mode 100755
index 00000000..ef648c51
--- /dev/null
+++ b/appinfo/info.xml
@@ -0,0 +1,10 @@
+
+
+ office
+ Office
+ An ownCloud app to work with office documents
+ AGPL
+ Frank Karlitschek
+ 4
+ true
+
diff --git a/appinfo/version b/appinfo/version
new file mode 100755
index 00000000..9f8e9b69
--- /dev/null
+++ b/appinfo/version
@@ -0,0 +1 @@
+1.0
\ No newline at end of file
diff --git a/css/style.css b/css/style.css
new file mode 100755
index 00000000..48573c58
--- /dev/null
+++ b/css/style.css
@@ -0,0 +1,6 @@
+#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; }
+
+.officelist { margin-top:5px; padding:5px; width:100%;}
+.officelist tr:hover { backgound-color:#aaa; }
+.officelist tr td { padding:5px; }
+
diff --git a/img/office.png b/img/office.png
new file mode 100644
index 00000000..9c7ff264
Binary files /dev/null and b/img/office.png differ
diff --git a/img/office.svg b/img/office.svg
new file mode 100644
index 00000000..8ebf861f
--- /dev/null
+++ b/img/office.svg
@@ -0,0 +1,128 @@
+
+
+
+
diff --git a/index.php b/index.php
new file mode 100755
index 00000000..a3b417c7
--- /dev/null
+++ b/index.php
@@ -0,0 +1,39 @@
+.
+ *
+ */
+
+require_once('lib/office.php');
+
+
+OCP\User::checkLoggedIn();
+OCP\JSON::checkAppEnabled('office');
+OCP\App::setActiveNavigationEntry( 'office_index' );
+
+OCP\Util::addStyle( 'office', 'style' );
+
+
+$list=\OCA\Office\Storage::getDocuments();
+$tmpl = new OCP\Template('office', 'documents', 'user');
+$tmpl->assign('list', $list);
+$tmpl->printPage();
+
+
diff --git a/lib/office.php b/lib/office.php
new file mode 100755
index 00000000..1bd1deeb
--- /dev/null
+++ b/lib/office.php
@@ -0,0 +1,48 @@
+.
+ *
+ */
+
+
+namespace OCA\Office;
+
+class Storage {
+
+ public static function getDocuments() {
+ $documents=array();
+ $list=\OCP\Files::searchByMime('video' );
+ foreach($list as $l) {
+ $info=pathinfo($l);
+ $size=\OC_Filesystem::filesize($l);
+ $mtime=\OC_Filesystem::filemtime($l);
+
+ $entry=array('url'=>$l,'name'=>$info['filename'],'size'=>$size,'mtime'=>$mtime);
+ $documents[]=$entry;
+ }
+
+
+ return $documents;
+ }
+
+
+}
+
+?>
diff --git a/templates/documents.php b/templates/documents.php
new file mode 100755
index 00000000..0aadcbb0
--- /dev/null
+++ b/templates/documents.php
@@ -0,0 +1,27 @@
+No documents are found. Please upload a document into your ownCloud');
+
+}else{
+
+ echo('
');
+ foreach($_['list'] as $entry) {
+ echo('
+
+ |
+ |
+ '.$entry['name'].' |
+ '.\OCP\Util::formatDate($entry['mtime']).' | '.\OCP\Util::humanFileSize($entry['size']).' |
+
'
+ );
+ }
+ echo('
');
+
+
+
+}
+
+