forked from vijaydwivedics/rainloop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
25 lines (18 loc) · 774 Bytes
/
index.php
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
<?php
/**
* nextcloud - RainLoop mail plugin
*
* @author RainLoop Team & PAB
* @copyright 2017 RainLoop Team & PAB
*
*/
OCP\User::checkLoggedIn();
\OC::$server->getNavigationManager()->setActiveEntry('rainloop_index');
// Load the empty file ../css/style.css, that's needed to allow theming of
// the Nextcloud header and navigation if rainloop is the active app.
OCP\Util::addStyle('rainloop', 'style');
include_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';
$sUrl = OC_RainLoop_Helper::normalizeUrl(OC_RainLoop_Helper::getAppUrl());
$oTemplate = new OCP\Template('rainloop', 'index', 'user');
$oTemplate->assign('rainloop-iframe-url', OC_RainLoop_Helper::normalizeUrl($sUrl).'?OwnCloudAuth');
$oTemplate->printpage();