2014-08-12 00:31:28 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ownCloud - RainLoop mail plugin
|
|
|
|
*
|
|
|
|
* @author RainLoop Team
|
2015-02-12 05:39:27 +08:00
|
|
|
* @copyright 2015 RainLoop Team
|
2014-08-12 00:31:28 +08:00
|
|
|
*
|
|
|
|
* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
|
|
|
|
*/
|
|
|
|
|
|
|
|
OCP\User::checkLoggedIn();
|
|
|
|
OCP\App::checkAppEnabled('rainloop');
|
|
|
|
OCP\App::setActiveNavigationEntry('rainloop_index');
|
|
|
|
|
2015-02-12 05:39:27 +08:00
|
|
|
include_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';
|
|
|
|
|
2015-02-12 14:35:31 +08:00
|
|
|
$sUrl = OC_RainLoop_Helper::normalizeUrl(OC_RainLoop_Helper::getAppUrl());
|
2015-02-12 05:39:27 +08:00
|
|
|
|
2015-02-12 14:35:31 +08:00
|
|
|
$oTemplate = new OCP\Template('rainloop', 'index', 'user');
|
|
|
|
$oTemplate->assign('rainloop-iframe-url', OC_RainLoop_Helper::normalizeUrl($sUrl).'?OwnCloudAuth');
|
2014-08-12 00:31:28 +08:00
|
|
|
|
|
|
|
$oTemplate->printpage();
|