+++ /dev/null
--- 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;
+++ /dev/null
-<?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();
-
-?>
+++ /dev/null
-<?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();
-
-?>