richdocuments/index.php

47 lines
1.6 KiB
PHP
Raw Normal View History

2013-06-30 20:53:42 +02:00
<?php
/**
2013-08-28 12:02:27 +02:00
* ownCloud - Documents App
2013-06-30 20:53:42 +02:00
*
* @author Frank Karlitschek
* @copyright 2011 Frank Karlitschek karlitschek@kde.org
*
* 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 Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
2013-08-28 12:02:27 +02:00
namespace OCA\Documents;
2013-06-30 20:53:42 +02:00
2013-08-18 17:11:22 +03:00
\OCP\User::checkLoggedIn();
2013-08-28 12:02:27 +02:00
\OCP\JSON::checkAppEnabled('documents');
\OCP\App::setActiveNavigationEntry( 'documents_index' );
2013-08-17 13:19:35 +03:00
2013-08-28 12:02:27 +02:00
\OCP\Util::addStyle( 'documents', 'style' );
2013-09-17 16:21:38 +03:00
\OCP\Util::addStyle( 'documents', '3rdparty/webodf/dojo-app');
2013-09-23 22:56:27 +03:00
\OCP\Util::addStyle( 'documents', '3rdparty/webodf/editor');
2013-08-28 12:02:27 +02:00
\OCP\Util::addScript('documents', 'documents');
2013-08-18 17:11:22 +03:00
2013-09-13 16:47:48 +03:00
\OCP\Util::addScript('files', 'file-upload');
\OCP\Util::addScript('files', 'jquery.iframe-transport');
\OCP\Util::addScript('files', 'jquery.fileupload');
2013-09-13 17:04:52 +03:00
2013-09-13 16:47:48 +03:00
2013-08-28 12:02:27 +02:00
$tmpl = new \OCP\Template('documents', 'documents', 'user');
2013-09-13 16:47:48 +03:00
$maxUploadFilesize = \OCP\Util::maxUploadFilesize("/");
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('uploadMaxHumanFilesize', \OCP\Util::humanFileSize($maxUploadFilesize));
2013-08-18 17:11:22 +03:00
2013-06-30 20:53:42 +02:00
$tmpl->printPage();