news/index.php

44 строки
1.2 KiB
PHP
Исходник Обычный вид История

2012-04-28 18:27:29 +04:00
<?php
/**
2012-05-08 23:57:08 +04:00
* ownCloud - News app
2012-04-28 18:27:29 +04:00
*
* @author Alessandro Cosentino
* @copyright 2012 Alessandro Cosentino cosenal@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 Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
2012-05-08 23:57:08 +04:00
// this is temporary.
//TODO: change it once the new app system is complete
2012-04-28 18:27:29 +04:00
require_once('../owncloud/lib/base.php');
2012-05-08 23:57:08 +04:00
// load SimplePie library
require_once('3rdparty/SimplePie/SimplePieAutoloader.php');
2012-04-28 18:27:29 +04:00
// Check if we are a user
2012-05-08 23:57:08 +04:00
OCP\User::checkLoggedIn();
2012-04-28 18:27:29 +04:00
2012-05-08 23:57:08 +04:00
OCP\App::checkAppEnabled('news');
OCP\App::setActiveNavigationEntry('news');
2012-04-28 18:27:29 +04:00
2012-05-08 23:57:08 +04:00
//OCP\Util::addscript('news','news');
2012-06-06 21:34:19 +04:00
OCP\Util::addStyle('news', 'news');
2012-04-28 18:27:29 +04:00
2012-05-08 23:57:08 +04:00
$tmpl = new OCP\Template( 'news', 'main', 'user' );
$tmpl->printPage();
2012-04-28 18:27:29 +04:00
?>