summaryrefslogtreecommitdiffstats
path: root/apps/files_versioning/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versioning/appinfo')
-rw-r--r--apps/files_versioning/appinfo/app.php20
-rw-r--r--apps/files_versioning/appinfo/info.xml14
2 files changed, 34 insertions, 0 deletions
diff --git a/apps/files_versioning/appinfo/app.php b/apps/files_versioning/appinfo/app.php
new file mode 100644
index 00000000000..24a8701dbb0
--- /dev/null
+++ b/apps/files_versioning/appinfo/app.php
@@ -0,0 +1,20 @@
+<?php
+
+// Include required files
+require_once('apps/files_versioning/versionstorage.php');
+require_once('apps/files_versioning/versionwrapper.php');
+// Register streamwrapper for versioned:// paths
+stream_wrapper_register('versioned', 'OC_VersionStreamWrapper');
+
+// Add an entry in the app list for versioning and backup
+OC_App::register( array(
+ 'order' => 10,
+ 'id' => 'files_versioning',
+ 'name' => 'Versioning and Backup' ));
+
+// Include stylesheets for the settings page
+OC_Util::addStyle( 'files_versioning', 'settings' );
+OC_Util::addScript('files_versioning','settings');
+
+// Register a settings section in the Admin > Personal page
+OC_APP::registerPersonal('files_versioning','settings');
diff --git a/apps/files_versioning/appinfo/info.xml b/apps/files_versioning/appinfo/info.xml
new file mode 100644
index 00000000000..d5546be54ae
--- /dev/null
+++ b/apps/files_versioning/appinfo/info.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<info>
+ <id>files_versioning</id>
+ <name>Versioning and Backup</name>
+ <version>1.0.0</version>
+ <licence>GPLv2</licence>
+ <author>Craig Roberts</author>
+ <require>3</require>
+ <description>Versions files using Git repositories, providing a simple backup facility. Currently in *beta* and explicitly without warranty of any kind.</description>
+ <default_enable/>
+ <types>
+ <filesystem/>
+ </types>
+</info>