nextcloud/apps/user_openid/settings.php

24 lines
596 B
PHP
Raw Normal View History

<?php
require_once('../../lib/base.php');
2011-07-29 23:36:03 +04:00
if( !OC_User::isLoggedIn()){
header( "Location: ".OC_Helper::linkTo( "index.php" ));
exit();
}
if(isset($_POST['input_identity'])){
2011-07-29 23:36:03 +04:00
OC_Preferences::setValue(OC_User::getUser(),'user_openid','identity',$_POST['input_identity']);
}
2011-07-29 23:36:03 +04:00
OC_App::setActiveNavigationEntry( "user_openid_settings" );
2011-07-29 23:36:03 +04:00
$identity=OC_Preferences::getValue(OC_User::getUser(),'user_openid','identity','');
2011-07-29 23:36:03 +04:00
$tmpl = new OC_Template( "user_openid", "settings", "admin");
$tmpl->assign('identity',$identity);
2011-07-29 23:36:03 +04:00
$tmpl->assign('user',OC_User::getUser());
$tmpl->printPage();
?>