remove outdated stuff

This commit is contained in:
Frank Karlitschek 2011-08-10 13:04:31 +02:00
parent 476ed14965
commit 32be4746f8
10 changed files with 0 additions and 296 deletions

View File

@ -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;

View File

@ -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();
?>

View File

@ -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" ));
?>

View File

@ -1,4 +0,0 @@
/*
* To include this css file, call "OC_UTIL::addStyle( "skeleton", "skeleton" )"
* in your app. (appname) (cssname)
*/

View File

@ -1,3 +0,0 @@
/*
* If you want to you can use more css files ...
*/

View File

@ -1 +0,0 @@

View File

@ -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();
?>

View File

@ -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

View File

@ -1,8 +0,0 @@
<?php
/*
* Template for files admin page
*
* See index.php for details
*/
?>
<h1>Admin</h1>

View File

@ -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"]; ?>