aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_openid/settings.php
blob: 29c18eaa497bea5b83c9e6c25d4e3681cfb05da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

require_once('../../lib/base.php');
if( !OC_USER::isLoggedIn()){
    header( "Location: ".OC_HELPER::linkTo( "index.php" ));
    exit();
}

if(isset($_POST['input_identity'])){
	OC_PREFERENCES::setValue(OC_USER::getUser(),'user_openid','identity',$_POST['input_identity']);
}

OC_APP::setActiveNavigationEntry( "user_openid_settings" );

$identity=OC_PREFERENCES::getValue(OC_USER::getUser(),'user_openid','identity','');

$tmpl = new OC_TEMPLATE( "user_openid", "settings", "admin");
$tmpl->assign('identity',$identity);
$tmpl->assign('user',OC_USER::getUser());

$tmpl->printPage();

?>