diff options
-rwxr-xr-x | apptemplate/ajax/seturl.php | 14 | ||||
-rwxr-xr-x | apptemplate/appinfo/app.php | 34 | ||||
-rwxr-xr-x | apptemplate/appinfo/database.xml | 38 | ||||
-rwxr-xr-x | apptemplate/appinfo/info.xml | 10 | ||||
-rw-r--r-- | apptemplate/appinfo/routes.php | 12 | ||||
-rwxr-xr-x | apptemplate/appinfo/version | 1 | ||||
-rw-r--r-- | apptemplate/img/example.png | bin | 304 -> 0 bytes | |||
-rw-r--r-- | apptemplate/img/example.svg | 14 | ||||
-rwxr-xr-x | apptemplate/index.php | 33 | ||||
-rwxr-xr-x | apptemplate/js/admin.js | 15 | ||||
-rwxr-xr-x | apptemplate/settings.php | 11 | ||||
-rwxr-xr-x | apptemplate/templates/main.php | 3 | ||||
-rwxr-xr-x | apptemplate/templates/settings.php | 8 |
13 files changed, 0 insertions, 193 deletions
diff --git a/apptemplate/ajax/seturl.php b/apptemplate/ajax/seturl.php deleted file mode 100755 index fa6d513b4..000000000 --- a/apptemplate/ajax/seturl.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php -/** - * Copyright (c) 2011, Frank Karlitschek <karlitschek@kde.org> - * Copyright (c) 2012, Florian Hülsmann <fh@cbix.de> - * This file is licensed under the Affero General Public License version 3 or later. - * See the COPYING-README file. - */ - -OCP\User::checkAdminUser(); -OCP\JSON::callCheck(); - -OCP\Config::setSystemValue( 'somesetting', $_POST['somesetting'] ); - -echo 'true'; diff --git a/apptemplate/appinfo/app.php b/apptemplate/appinfo/app.php deleted file mode 100755 index 951282610..000000000 --- a/apptemplate/appinfo/app.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -/** -* ownCloud - App Template plugin -* -* @author Frank Karlitschek -* @author Florian Hülsmann -* @copyright 2011 Frank Karlitschek karlitschek@kde.org -* @copyright 2012 Florian Hülsmann fh@cbix.de -* -* 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 Affero General Public -* License along with this library. If not, see <http://www.gnu.org/licenses/>. -* -*/ - -OCP\App::registerAdmin( 'apptemplate', 'settings' ); - -OCP\App::addNavigationEntry( array( - 'id' => 'apptemplate', - 'order' => 74, - 'href' => OCP\Util::linkTo( 'apptemplate', 'index.php' ), - 'icon' => OCP\Util::imagePath( 'apptemplate', 'example.png' ), - 'name' => 'App Template' -)); diff --git a/apptemplate/appinfo/database.xml b/apptemplate/appinfo/database.xml deleted file mode 100755 index 1ec56ca7e..000000000 --- a/apptemplate/appinfo/database.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1" ?> -<database> - <name>*dbname*</name> - <create>true</create> - <overwrite>false</overwrite> - <charset>utf8</charset> - <table> - <name>*dbprefix*apptemplate_items</name> - <declaration> - <field> - <name>item_id</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - <autoincrement>1</autoincrement> - <length>4</length> - </field> - <field> - <name>uid_owner</name> - <type>text</type> - <notnull>true</notnull> - <length>64</length> - </field> - <field> - <name>item_name</name> - <type>text</type> - <notnull>true</notnull> - <length>100</length> - </field> - <field> - <name>item_path</name> - <type>text</type> - <notnull>true</notnull> - <length>100</length> - </field> - </declaration> - </table> -</database> diff --git a/apptemplate/appinfo/info.xml b/apptemplate/appinfo/info.xml deleted file mode 100755 index 6cf85eba2..000000000 --- a/apptemplate/appinfo/info.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0"?> -<info> - <id>apptemplate</id> - <name>AppTemplate</name> - <description>Just an example application as a starting point for new developers</description> - <version>1.0</version> - <licence>AGPL</licence> - <author>Frank Karlitschek</author> - <requiremin>4</requiremin> -</info> diff --git a/apptemplate/appinfo/routes.php b/apptemplate/appinfo/routes.php deleted file mode 100644 index 92c3c9de5..000000000 --- a/apptemplate/appinfo/routes.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php -/** - * Copyright (c) 2014, Lukas Reschke <lukas@owncloud.com> - * This file is licensed under the Affero General Public License version 3 or later. - * See the COPYING-README file. - */ - -/** @var $this \OCP\Route\IRouter */ -$this->create('apptemplate_index', '/') - ->actionInclude('apptemplate/index.php'); -$this->create('apptemplate_ajax_seturl', 'ajax/seturl.php') - ->actionInclude('apptemplate/ajax/seturl.php');
\ No newline at end of file diff --git a/apptemplate/appinfo/version b/apptemplate/appinfo/version deleted file mode 100755 index 9459d4ba2..000000000 --- a/apptemplate/appinfo/version +++ /dev/null @@ -1 +0,0 @@ -1.1 diff --git a/apptemplate/img/example.png b/apptemplate/img/example.png Binary files differdeleted file mode 100644 index a75fbb68d..000000000 --- a/apptemplate/img/example.png +++ /dev/null diff --git a/apptemplate/img/example.svg b/apptemplate/img/example.svg deleted file mode 100644 index 674a24e76..000000000 --- a/apptemplate/img/example.svg +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"> - <defs> - <linearGradient id="a" y2="47.208" gradientUnits="userSpaceOnUse" y1="-5.2547" gradientTransform="matrix(.21865 0 0 .26685 56.619 1.4022)" x2="-39.422" x1="-39.422"> - <stop offset="0"/> - <stop stop-color="#363636" offset="1"/> - </linearGradient> - </defs> - <rect style="color:#000000" fill-opacity="0" height="97.986" width="163.31" y="-32.993" x="-62.897"/> - <g transform="translate(-40 1)"> - <path opacity=".6" style="block-progression:tb;text-indent:0;color:#000000;text-transform:none" d="m43.35 1.0021c-0.19747 0.03825-0.35356 0.23333-0.35 0.43744l-0.000307 13.123c0.000004 0.22904 0.20522 0.43743 0.43077 0.43744h10.14c0.22555-0.000006 0.43077-0.2084 0.43077-0.43744l0.000307-12.961c-0.000329-0.33644-0.2655-0.60186-0.51687-0.5999h-10.135zm0.65 9.9979h9l0.000413 3h-9z" fill="#fff"/> - <path opacity=".7" style="block-progression:tb;text-indent:0;color:#000000;text-transform:none" d="m43.35 0.0020508c-0.19747 0.03825-0.35356 0.23333-0.35 0.43744l-0.000307 13.123c0.000004 0.22904 0.20522 0.43743 0.43077 0.43744h10.14c0.22555-0.000006 0.43077-0.2084 0.43077-0.43744v-12.96c0-0.33649-0.266-0.60191-0.517-0.59995h-10.135zm0.65 9.9979h9l0.000413 3h-9z" fill="url(#a)"/> - </g> -</svg> diff --git a/apptemplate/index.php b/apptemplate/index.php deleted file mode 100755 index 6beab3153..000000000 --- a/apptemplate/index.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** -* ownCloud - App Template Example -* -* @author Frank Karlitschek -* @author Florian Hülsmann -* @copyright 2011 Frank Karlitschek karlitschek@kde.org -* @copyright 2012 Florian Hülsmann fh@cbix.de -* -* 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 Affero General Public -* License along with this library. If not, see <http://www.gnu.org/licenses/>. -* -*/ - -// Check if we are a user -OCP\User::checkLoggedIn(); - -$somesetting = OCP\Config::getSystemValue( "somesetting", '' ); -OCP\App::setActiveNavigationEntry( 'apptemplate' ); -$tmpl = new OCP\Template( 'apptemplate', 'main', 'user' ); -$tmpl->assign( 'somesetting', $somesetting ); -$tmpl->printPage(); diff --git a/apptemplate/js/admin.js b/apptemplate/js/admin.js deleted file mode 100755 index 4b0bef0b5..000000000 --- a/apptemplate/js/admin.js +++ /dev/null @@ -1,15 +0,0 @@ -$(document).ready(function(){ - - - - $('#somesetting').blur(function(event){ - event.preventDefault(); - var post = $( "#somesetting" ).serialize(); - $.post( OC.filePath('apptemplate', 'ajax', 'seturl.php') , post, function(data){ - $('#apptemplate .msg').text('Finished saving: ' + data); - }); - }); - - - -}); diff --git a/apptemplate/settings.php b/apptemplate/settings.php deleted file mode 100755 index 04aaca651..000000000 --- a/apptemplate/settings.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -OCP\User::checkAdminUser(); - -OCP\Util::addScript( "apptemplate", "admin" ); - -$tmpl = new OCP\Template( 'apptemplate', 'settings'); - -$tmpl->assign('url', OCP\Config::getSystemValue( "somesetting", '' )); - -return $tmpl->fetchPage(); diff --git a/apptemplate/templates/main.php b/apptemplate/templates/main.php deleted file mode 100755 index 703c38aa4..000000000 --- a/apptemplate/templates/main.php +++ /dev/null @@ -1,3 +0,0 @@ -<h1>This is an example app template</h1> - -<?php p($l->t('Some Setting'));?>: "<?php p($_['somesetting']); ?>" diff --git a/apptemplate/templates/settings.php b/apptemplate/templates/settings.php deleted file mode 100755 index 476a202c3..000000000 --- a/apptemplate/templates/settings.php +++ /dev/null @@ -1,8 +0,0 @@ -<form id="apptemplate"> - <div class="section"> - <h2><?php p($l->t('App Template'));?></h2> - <input type="text" name="somesetting" id="somesetting" value="<?php p($_['url']); ?>" placeholder="<?php p($l->t('Some Setting'));?>" /> - <br /> - <span class="msg"></span> - </div> -</form> |