diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2011-10-22 15:44:34 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2011-10-22 15:44:34 +0200 |
commit | 045c42aa99d3f7ad45434ab371828853f3378968 (patch) | |
tree | 9e1e2b41b3b42fe7dd6643a1c1508eebdfc0d432 /apps/external/appinfo | |
parent | 7761765a4b018f41c945946693226f8b5a99487c (diff) | |
download | nextcloud-server-045c42aa99d3f7ad45434ab371828853f3378968.tar.gz nextcloud-server-045c42aa99d3f7ad45434ab371828853f3378968.zip |
new "external" application. you can integrate external application like roundcube, squirellmail or a wiki into ownCloud.
Diffstat (limited to 'apps/external/appinfo')
-rw-r--r-- | apps/external/appinfo/app.php | 37 | ||||
-rw-r--r-- | apps/external/appinfo/info.xml | 10 |
2 files changed, 47 insertions, 0 deletions
diff --git a/apps/external/appinfo/app.php b/apps/external/appinfo/app.php new file mode 100644 index 00000000000..df14954d86f --- /dev/null +++ b/apps/external/appinfo/app.php @@ -0,0 +1,37 @@ +<?php + +/** +* ownCloud - External plugin +* +* @author Frank Karlitschek +* @copyright 2011 Frank Karlitschek karlitschek@kde.org +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE +* License as published by the Free Software Foundation; either +* version 3 of the License, or any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU AFFERO GENERAL PUBLIC LICENSE for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library. If not, see <http://www.gnu.org/licenses/>. +* +*/ + +OC_APP::registerAdmin('external','settings'); + +OC_App::register( array( 'order' => 70, 'id' => 'external', 'name' => 'External' )); + +if(OC_Config::getValue( "external-site1name", '' )<>'') OC_App::addNavigationEntry( array( 'id' => 'external_index1', 'order' => 80, 'href' => OC_Helper::linkTo( 'external', 'index.php' ).'?id=1', 'icon' => OC_Helper::imagePath( 'external', 'external.png' ), 'name' => OC_Config::getValue( "external-site1name", '' ))); + +if(OC_Config::getValue( "external-site2name", '' )<>'') OC_App::addNavigationEntry( array( 'id' => 'external_index2', 'order' => 80, 'href' => OC_Helper::linkTo( 'external', 'index.php' ).'?id=2', 'icon' => OC_Helper::imagePath( 'external', 'external.png' ), 'name' => OC_Config::getValue( "external-site2name", '' ))); + +if(OC_Config::getValue( "external-site3name", '' )<>'') OC_App::addNavigationEntry( array( 'id' => 'external_index3', 'order' => 80, 'href' => OC_Helper::linkTo( 'external', 'index.php' ).'?id=3', 'icon' => OC_Helper::imagePath( 'external', 'external.png' ), 'name' => OC_Config::getValue( "external-site3name", '' ))); + +if(OC_Config::getValue( "external-site4name", '' )<>'') OC_App::addNavigationEntry( array( 'id' => 'external_index4', 'order' => 80, 'href' => OC_Helper::linkTo( 'external', 'index.php' ).'?id=4', 'icon' => OC_Helper::imagePath( 'external', 'external.png' ), 'name' => OC_Config::getValue( "external-site4name", '' ))); + +if(OC_Config::getValue( "external-site5name", '' )<>'') OC_App::addNavigationEntry( array( 'id' => 'external_index5', 'order' => 80, 'href' => OC_Helper::linkTo( 'external', 'index.php' ).'?id=5', 'icon' => OC_Helper::imagePath( 'external', 'external.png' ), 'name' => OC_Config::getValue( "external-site5name", '' ))); + diff --git a/apps/external/appinfo/info.xml b/apps/external/appinfo/info.xml new file mode 100644 index 00000000000..05f5709916d --- /dev/null +++ b/apps/external/appinfo/info.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<info> + <id>external</id> + <name>External</name> + <description>Show external Application in the ownCloud menu</description> + <version>1.0</version> + <licence>AGPL</licence> + <author>Frank Karlitschek</author> + <require>2</require> +</info> |