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

settings.php « tattoo - github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2cbd4180987ff37e52bf32f43bc398b7f37b74b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

OCP\Util::addStyle('tattoo', 'settings');

// die($_POST['tattooWallpaper']);
if(isset($_POST['tattooSetWallpaper']) && isset($_POST['tattooWallpaper'])) {
	OCP\Config::setUserValue(OCP\User::getUser(),'tattoo','wallpaper',$_POST['tattooWallpaper']);
	OCP\Config::setUserValue(OCP\User::getUser(),'tattoo','lastModified',gmdate('D, d M Y H:i:s') . ' GMT');
}
$wallpaper=OCP\Config::getUserValue(OCP\User::getUser(),'tattoo','wallpaper','none');

$tmpl = new OCP\Template( 'tattoo', 'settings');
$tmpl->assign('tattooSelectedWallpaper',$wallpaper);

return $tmpl->fetchPage();