function deleteOpenID($openidForDel) { $context = Model_Context::getInstance(); for ($i = 0; $i < OPENID_REGISTERS; $i++) { $openid = Setting::getUserSetting("openid." . $i, null, true); if ($openid == $openidForDel) { Setting::removeUserSetting("openid." . $i, true); break; } } echo "<html><head><script type=\"text/javascript\">//<![CDATA[" . CRLF . "alert('" . _t('삭제되었습니다.') . "'); document.location.href='" . $context->getProperty('uri.blog') . "/owner/setting/account'; //]]></script></head></html>"; }
function getUserSetting($name, $default = null) { return Setting::getUserSetting($name, $default); }
<?php /// Copyright (c) 2004-2015, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) $IV = array('POST' => array('pwd' => array('string', 'default' => ''), 'prevPwd' => array('string', 'default' => ''))); require ROOT . '/library/preprocessor.php'; requireStrictRoute(); $result = false; $isAuthToken = Setting::getUserSetting('AuthToken', false, true) ? true : false; if ($_POST['pwd'] != '' && ($_POST['prevPwd'] != '' || $isAuthToken != false)) { $result = changePassword(getUserId(), $_POST['pwd'], $_POST['prevPwd'], $isAuthToken); } if ($result) { Respond::ResultPage(0); } else { Respond::ResultPage(-1); }
<?php /// Copyright (c) 2004-2007, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) define('OPENID_REGISTERS', 10); require ROOT . '/library/preprocessor.php'; require ROOT . '/interface/common/owner/header.php'; $context = Model_Context::getInstance(); /* Fetch registerred openid */ $openid_list = array(); for ($i = 0; $i < OPENID_REGISTERS; $i++) { $openid_identity = Setting::getUserSetting("openid." . $i, null, true); if (!empty($openid_identity)) { array_push($openid_list, $openid_identity); } } $pool = DBModel::getInstance(); $menu_url = $context->getProperty('uri.host') . $context->getProperty('uri.blog') . "/owner/communication/openid"; $menu1 = $menu_url . "?mode=1"; $menu2 = $menu_url . "?mode=3"; $menu3 = $menu_url . "?mode=5"; $menu4 = $menu_url . "?mode=7"; $pool->init("OpenIDUsers"); $pool->setOrder("lastlogin", "desc"); $mode = preg_replace('/.*?mode=(\\d)/', '\\1', $_SERVER["QUERY_STRING"]); if (!is_numeric($mode)) { $mode = 7; } switch ($mode) { case 2:
</span></h2> <div class="main-explain-box"> <p class="explain"><?php echo _t('댓글 및 필자 정보에 사용되는 대표 홈페이지 주소를 설정합니다. 로그인 상태에서 댓글을 달 경우 댓글에 출력되는 블로그 아이콘은 이 주소의 정보에 의하여 결정됩니다.'); ?> </p> </div> <div class="data-inbox"> <?php $hptype = User::getHomepageType(); $blogs = User::getBlogs(); $hptype = empty($blogs) ? "default" : $hptype; if ($hptype == 'internal' || 'author') { $blogidforhomepage = Setting::getUserSetting("blogidforhomepage", null, true); } ?> <form id="homepage-section" class="section" method="post" action="<?php echo $context->getProperty('uri.blog'); ?> /owner/setting/account/homepage"> <fieldset class="container"> <legend><?php echo _t('대표 주소'); ?> </legend> <dl id="blogger-name-line" class="line"> <dt><?php echo _t('대표 주소'); ?>