]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove outdated stuff
authorFrank Karlitschek <karlitschek@kde.org>
Wed, 10 Aug 2011 11:04:31 +0000 (13:04 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Wed, 10 Aug 2011 11:04:31 +0000 (13:04 +0200)
docs/owncloud.sql [deleted file]
docs/skeleton/admin.php [deleted file]
docs/skeleton/appinfo/app.sample.php [deleted file]
docs/skeleton/css/skeleton.css [deleted file]
docs/skeleton/css/special.css [deleted file]
docs/skeleton/img/put_images_here.txt [deleted file]
docs/skeleton/index.php [deleted file]
docs/skeleton/js/app.js [deleted file]
docs/skeleton/templates/admin.php [deleted file]
docs/skeleton/templates/index.php [deleted file]

diff --git a/docs/owncloud.sql b/docs/owncloud.sql
deleted file mode 100644 (file)
index 8037e4a..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
--- phpMyAdmin SQL Dump
--- version 3.4.3.1deb1
--- http://www.phpmyadmin.net
---
--- Host: localhost
--- Generation Time: Jul 22, 2011 at 10:38 PM
--- Server version: 5.1.58
--- PHP Version: 5.3.6-13
-
-SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-SET time_zone = "+00:00";
-
---
--- Database: `owncloud`
---
-
--- --------------------------------------------------------
-
---
--- Table structure for table `appconfig`
---
-
-CREATE TABLE IF NOT EXISTS `appconfig` (
-  `appid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `configkey` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `foldersize`
---
-
-CREATE TABLE IF NOT EXISTS `foldersize` (
-  `path` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
-  `size` int(11) NOT NULL,
-  KEY `PATH_INDEX` (`path`(333))
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `groups`
---
-
-CREATE TABLE IF NOT EXISTS `groups` (
-  `gid` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
-  PRIMARY KEY (`gid`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `group_user`
---
-
-CREATE TABLE IF NOT EXISTS `group_user` (
-  `gid` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
-  `uid` varchar(64) COLLATE utf8_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `locks`
---
-
-CREATE TABLE IF NOT EXISTS `locks` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `userid` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
-  `owner` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
-  `timeout` int(10) unsigned DEFAULT NULL,
-  `created` int(11) DEFAULT NULL,
-  `token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
-  `scope` tinyint(4) DEFAULT NULL,
-  `depth` tinyint(4) DEFAULT NULL,
-  `uri` text COLLATE utf8_unicode_ci,
-  PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `log`
---
-
-CREATE TABLE IF NOT EXISTS `log` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `moment` datetime NOT NULL,
-  `appid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `user` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `info` text COLLATE utf8_unicode_ci NOT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3437 ;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `preferences`
---
-
-CREATE TABLE IF NOT EXISTS `preferences` (
-  `userid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `appid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `configkey` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `properties`
---
-
-CREATE TABLE IF NOT EXISTS `properties` (
-  `userid` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
-  `propertypath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `propertyname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `propertyvalue` text COLLATE utf8_unicode_ci NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
---
--- Table structure for table `users`
---
-
-CREATE TABLE IF NOT EXISTS `users` (
-  `uid` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
-  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  PRIMARY KEY (`uid`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
diff --git a/docs/skeleton/admin.php b/docs/skeleton/admin.php
deleted file mode 100644 (file)
index 20df8a0..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/**
-* ownCloud - Sample application
-*
-* @author Jakob Sack
-* @copyright 2011 Jakob Sack kde@jakobsack.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/>.
-*
-*/
-
-// Do not prepare the file system (for demonstration purpose)
-// We HAVE TO set this var before including base.php
-$RUNTIME_NOSETUPFS = true;
-
-// Init owncloud
-require_once('../lib/base.php');
-
-// We need the file system although we said do not load it! Do it by hand now
-OC_Util::setupFS();
-
-// The user should have admin rights. This is an admin page!
-if( !OC_User::isLoggedIn() || !OC_User::ingroup( $_SESSION['username'], 'admin' )){
-       // Bad boy! Go to the very first page of owncloud
-       header( "Location: ".OC_Helper::linkTo( "index.php" ));
-       exit();
-}
-
-// Do some crazy Stuff over here
-$myvar = 2;
-$myarray = array( "foo" => array( 0, 1, 2 ), "bar" => "baz" );
-
-// Preparing for output!
-$tmpl = new OC_Template( "skeleton", "admin", "admin" ); // Programname, template, mode
-// Assign the vars
-$tmpl->assign( "var", $myvar );
-$tmpl->assign( "array", $myarray );
-// Print page
-$tmpl->printPage();
-
-?>
diff --git a/docs/skeleton/appinfo/app.sample.php b/docs/skeleton/appinfo/app.sample.php
deleted file mode 100644 (file)
index ce31099..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/*
- * This file is required. It makes owncloud aware of the app.
- */
-
-// Hello, we are here
-OC_App::register( array( "id" => "skeleton", "name" => "Files", "order" => 1000 ));
-
-// Add application to navigation
-OC_Util::addNavigationEntry( array( "id" => "skeleton_index", "order" => 1000, "href" => OC_Helper::linkTo( "skeleton", "index.php" ), "icon" => OC_Helper::imagePath( "skeleton", "app.png" ), "name" => "Example app" ));
-
-// Add an admin page
-OC_Util::addAdminPage( array( "order" => 1, "href" => OC_Helper::linkTo( "skeleton", "admin.php" ), "name" => "Example app options" ));
-
-?>
diff --git a/docs/skeleton/css/skeleton.css b/docs/skeleton/css/skeleton.css
deleted file mode 100644 (file)
index aa68a8b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- * To include this css file, call "OC_UTIL::addStyle( "skeleton", "skeleton" )"
- * in your app.                                       (appname)   (cssname)
- */
\ No newline at end of file
diff --git a/docs/skeleton/css/special.css b/docs/skeleton/css/special.css
deleted file mode 100644 (file)
index 8fd7591..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/*
- * If you want to you can use more css files ...
- */
diff --git a/docs/skeleton/img/put_images_here.txt b/docs/skeleton/img/put_images_here.txt
deleted file mode 100644 (file)
index 8d1c8b6..0000000
+++ /dev/null
@@ -1 +0,0 @@
diff --git a/docs/skeleton/index.php b/docs/skeleton/index.php
deleted file mode 100644 (file)
index 1004388..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/**
-* ownCloud - ajax frontend
-*
-* @author Robin Appelman
-* @copyright 2010 Robin Appelman icewind1991@gmail.com
-*
-* 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/>.
-*
-*/
-
-
-// Init owncloud
-require_once('../lib/base.php');
-
-// Check if we are a user
-if( !OC_User::isLoggedIn()){
-       header( "Location: ".OC_Helper::linkTo( "index.php" ));
-       exit();
-}
-
-// Load the files we need
-OC_Util::addStyle( "files", "files" );
-OC_Util::addScript( "files", "files" );
-
-// Load the files
-$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
-
-$files = array();
-foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
-       $i["date"] = date( $CONFIG_DATEFORMAT, $i["mtime"] );
-       $files[] = $i;
-}
-
-// Make breadcrumb
-$breadcrumb = array();
-$pathtohere = "/";
-foreach( explode( "/", $dir ) as $i ){
-       if( $i != "" ){
-               $pathtohere .= "$i/";
-               $breadcrumb[] = array( "dir" => $pathtohere, "name" => $i );
-       }
-}
-
-// return template
-$tmpl = new OC_Template( "files", "index", "user" );
-$tmpl->assign( "files", $files );
-$tmpl->assign( "breadcrumb", $breadcrumb );
-$tmpl->printPage();
-
-?>
diff --git a/docs/skeleton/js/app.js b/docs/skeleton/js/app.js
deleted file mode 100644 (file)
index 5d5b668..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-// Include this file whenever you need it. A simple
-// "OC_UTIL::addScript( "skeleton", "app" )" will do this.
-// Put your jquery-Stuff here
diff --git a/docs/skeleton/templates/admin.php b/docs/skeleton/templates/admin.php
deleted file mode 100644 (file)
index 63fcd5c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * Template for files admin page
- *
- * See index.php for details
- */
-?>
-<h1>Admin</h1>
diff --git a/docs/skeleton/templates/index.php b/docs/skeleton/templates/index.php
deleted file mode 100644 (file)
index fb0544e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/*
- * Template for files
- */
-?>
-<h1>Skeleton</h1>
-
-<?php foreach($_["array"] as $item): ?>
-       <p><?php echo $item; ?></p>
-<?php endforeach; ?>
-
-<?php echo $_["anothervar"]; ?>