blob: 6bca9711de6acf9f9a1678da42934f84ad48b963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
/**
* ownCloud - News app
*
* @author Alessandro Cosentino
* Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com>
*
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file
*
*/
require_once(OC_App::getAppPath('news') . '/controllers/controller.php');
require_once(OC_App::getAppPath('news') . '/controllers/news.controller.php');
OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('news');
OCP\App::setActiveNavigationEntry('news');
$controller = new OCA\News\NewsController();
// routes
if(isset($_GET['jstest'])){
$controller->javascriptTests();
} else {
$controller->index();
}
|