Welcome to mirror list, hosted at ThFree Co, Russian Federation.

personal.php « pushnotifications - github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33687cc004dbcfe4fb87ff47cee58787464c159c (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
<?php

/**
 * ownCloud - push notifications app
 *
 * @author Frank Karlitschek
 * @copyright 2014 Frank Karlitschek frank@owncloud.org
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 */

namespace OCA\pushnotifications;

// load js and css
\OCP\Util::addScript('pushnotifications', 'personal');
\OCP\Util::addStyle('pushnotifications', 'personal');

// show template
$tmpl = new \OCP\Template('pushnotifications', 'personal');
$pushId = \OCP\Config::getUserValue(\OCP\User::getUser(), 'pushnotifications', 'pushid', '');
$appId = \OCP\Config::getSystemValue('pushnotifications_pushover_app', '');
$tmpl->assign('pushId', $pushId);
$tmpl->assign('appId', $appId);

return $tmpl->fetchPage();