当前位置: 首页>>代码示例>>PHP>>正文


PHP Setting::getUserSetting方法代码示例

本文整理汇总了PHP中Setting::getUserSetting方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::getUserSetting方法的具体用法?PHP Setting::getUserSetting怎么用?PHP Setting::getUserSetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Setting的用法示例。


在下文中一共展示了Setting::getUserSetting方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: deleteOpenID

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>";
}
开发者ID:Avantians,项目名称:Textcube,代码行数:12,代码来源:index.php

示例2: getUserSetting

 function getUserSetting($name, $default = null)
 {
     return Setting::getUserSetting($name, $default);
 }
开发者ID:ragi79,项目名称:Textcube,代码行数:4,代码来源:Textcube.Function.Misc.php

示例3: array

<?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);
}
开发者ID:Avantians,项目名称:Textcube,代码行数:18,代码来源:index.php

示例4: define

<?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:
开发者ID:Avantians,项目名称:Textcube,代码行数:31,代码来源:index.php

示例5: _t

</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('대표 주소');
?>
开发者ID:webhacking,项目名称:Textcube,代码行数:31,代码来源:index.php


注:本文中的Setting::getUserSetting方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。