diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-03-03 23:08:54 +0100 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-03-03 23:08:54 +0100 |
commit | f042e85d412fb323e5d3bb3e70d9d4ffa00a7907 (patch) | |
tree | 8561c3483d381d4cc5f54ca42a3f27a470e4c564 /files/admin.php | |
parent | f7f957abb92e5ce359d7eafa136406822fee0a51 (diff) | |
download | nextcloud-server-f042e85d412fb323e5d3bb3e70d9d4ffa00a7907.tar.gz nextcloud-server-f042e85d412fb323e5d3bb3e70d9d4ffa00a7907.zip |
Beginning of some ajax features and an admin page for files
Diffstat (limited to 'files/admin.php')
-rw-r--r-- | files/admin.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/files/admin.php b/files/admin.php new file mode 100644 index 00000000000..4c442c4b111 --- /dev/null +++ b/files/admin.php @@ -0,0 +1,39 @@ +<?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'); +oc_require( 'template.php' ); + +// Check if we are a user +if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ + header( "Location: ".OC_HELPER::linkTo( "index.php" )); + exit(); +} + +// return template +$tmpl = new OC_TEMPLATE( "files", "admin", "admin" ); +$tmpl->printPage(); + +?> |