2011-06-23 19:04:32 +04:00
|
|
|
<?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" ));
|
2011-06-23 19:04:32 +04:00
|
|
|
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-06-23 19:04:32 +04:00
|
|
|
}
|
|
|
|
|
2011-07-29 23:36:03 +04:00
|
|
|
OC_App::setActiveNavigationEntry( "user_openid_settings" );
|
2011-06-23 19:04:32 +04:00
|
|
|
|
2011-07-29 23:36:03 +04:00
|
|
|
$identity=OC_Preferences::getValue(OC_User::getUser(),'user_openid','identity','');
|
2011-06-23 19:04:32 +04:00
|
|
|
|
2011-07-29 23:36:03 +04:00
|
|
|
$tmpl = new OC_Template( "user_openid", "settings", "admin");
|
2011-06-23 19:04:32 +04:00
|
|
|
$tmpl->assign('identity',$identity);
|
2011-07-29 23:36:03 +04:00
|
|
|
$tmpl->assign('user',OC_User::getUser());
|
2011-06-23 19:04:32 +04:00
|
|
|
|
|
|
|
$tmpl->printPage();
|
|
|
|
|
|
|
|
?>
|