diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-01 10:22:42 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-02 14:09:53 +0200 |
commit | 6e5ed810644efd92eec394be5e1f6f202efe74e0 (patch) | |
tree | 6621d993a9a2d7d333fe47a382aceb00ce2c63ce /apps/files_sharing/settings-personal.php | |
parent | 01a241f71129c3980619f3981d3f7903c1a4cee8 (diff) | |
download | nextcloud-server-6e5ed810644efd92eec394be5e1f6f202efe74e0.tar.gz nextcloud-server-6e5ed810644efd92eec394be5e1f6f202efe74e0.zip |
show federated cloud id in the personal settings
Diffstat (limited to 'apps/files_sharing/settings-personal.php')
-rw-r--r-- | apps/files_sharing/settings-personal.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/files_sharing/settings-personal.php b/apps/files_sharing/settings-personal.php new file mode 100644 index 00000000000..b9ae791e8c7 --- /dev/null +++ b/apps/files_sharing/settings-personal.php @@ -0,0 +1,32 @@ +<?php +/** + * @author Björn Schießle <schiessle@owncloud.com> + * @author Morris Jobke <hey@morrisjobke.de> + * + * @copyright Copyright (c) 2015, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program 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 Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ + +\OC_Util::checkLoggedIn(); + +$uid = \OC::$server->getUserSession()->getUser()->getUID(); +$server = \OC::$server->getURLGenerator()->getAbsoluteURL('/'); +$cloudID = $uid . '@' . \OCA\Files_Sharing\Helper::removeProtocolFromUrl($server); + +$tmpl = new OCP\Template('files_sharing', 'settings-personal'); +$tmpl->assign('cloudId', $cloudID); + +return $tmpl->fetchPage(); |