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


PHP Setting::getBlogSetting方法代码示例

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


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

示例1: writeValue

<?php

/// Copyright (c) 2004-2012, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
require ROOT . '/interface/common/owner/header.php';
if (isset($_POST['search'])) {
    $search = $_POST['search'];
} else {
    $search = null;
}
// get the list type.
$listType = Setting::getBlogSetting('skinViewType', 'iconview', true);
$currentAdminSkin = Setting::getBlogSetting("adminSkin", "canon", true);
$skins = array();
function writeValue($value, $label, $className)
{
    ?>
										<dl class="<?php 
    echo $className;
    ?>
-line">
											<dt class="name"><?php 
    echo $label;
    ?>
</dt>
											<dd class="explain"><?php 
    echo nl2br(addLinkSense($value, ' onclick="window.open(this.href); return false;"'));
    ?>
</dd>
开发者ID:ragi79,项目名称:Textcube,代码行数:31,代码来源:index.php

示例2: getBlogSetting

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

示例3: PN_Referer_Default

function PN_Referer_Default()
{
    global $pluginMenuURL, $pluginSelfParam;
    if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['page'])) {
        $_GET['page'] = $_POST['page'];
    }
    $page = Setting::getBlogSetting('RowsPerPageReferer', 20);
    if (empty($_POST['perPage'])) {
        $perPage = $page;
    } else {
        if ($page != $_POST['perPage']) {
            Setting::setBlogSetting('RowsPerPageReferer', $_POST['perPage']);
            $perPage = $_POST['perPage'];
        } else {
            $perPage = $_POST['perPage'];
        }
    }
    ?>
						<div id="part-statistics-rank" class="part">
							<h2 class="caption"><span class="main-text"><?php 
    echo _t("리퍼러 순위");
    ?>
</span></h2>
							
							<table class="data-inbox" cellspacing="0" cellpadding="0">
								<thead>
									<tr>
										<th class="number"><span class="text"><?php 
    echo _t("순위");
    ?>
</span></th>
										<th class="site"><span class="text"><?php 
    echo _t("리퍼러");
    ?>
</span></th>
									</tr>
								</thead>
								<tbody>
<?php 
    $temp = Statistics::getRefererStatistics(getBlogId());
    for ($i = 0; $i < count($temp); $i++) {
        $record = $temp[$i];
        $className = $i % 2 == 1 ? 'even-line' : 'odd-line';
        $className .= $i == sizeof($temp) - 1 ? ' last-line' : '';
        ?>
									<tr class="<?php 
        echo $className;
        ?>
 inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')">
										<td class="rank"><?php 
        echo $i + 1;
        ?>
.</td>
										<td class="site"><a href="http://<?php 
        echo Utils_Misc::escapeJSInAttribute($record['host']);
        ?>
" onclick="window.open(this.href); return false;"><?php 
        echo htmlspecialchars($record['host']);
        ?>
</a> <span class="count">(<?php 
        echo $record['count'];
        ?>
)</span></td>
									</tr>
<?php 
    }
    ?>
								</tbody>
							</table>
						</div>
						
						<hr class="hidden" />
						
						<form id="part-statistics-log" class="part" method="post" action="<?php 
    echo $pluginMenuURL;
    ?>
">
							<h2 class="caption"><span class="main-text"><?php 
    echo _t("리퍼러 로그");
    ?>
</span></h2>
							
							<table class="data-inbox" cellspacing="0" cellpadding="0">
								<thead>
									<tr>
										<th class="number"><span class="text">날짜</span></th>
										<th class="site"><span class="text">주소</span></th>
									</tr>
								</thead>
								<tbody>
<?php 
    $more = false;
    list($referers, $paging) = Statistics::getRefererLogsWithPage($_GET['page'], $perPage);
    for ($i = 0; $i < count($referers); $i++) {
        $record = $referers[$i];
        $className = $i % 2 == 1 ? 'even-line' : 'odd-line';
        $className .= $i == sizeof($referers) - 1 ? ' last-line' : '';
        ?>
									<tr class="<?php 
        echo $className;
//.........这里部分代码省略.........
开发者ID:Avantians,项目名称:Textcube,代码行数:101,代码来源:index.php

示例4: fireEvent

        $key = null;
    }
    $content = $_POST['content'];
    $category = $_POST['category'];
    $mode = $_POST['mode'];
} else {
    $key = $_GET['key'];
    $content = $_GET['content'];
    $category = $_GET['category'];
    $mode = $_GET['mode'];
}
$lineobj = Model_Line::getInstance();
$lineobj->reset();
// If line comes.
if (!empty($content)) {
    $password = Setting::getBlogSetting('LinePassword', null, true);
    if ($password === $key || doesHaveOwnership()) {
        $lineobj->content = $content;
        $lineobj->category = $category;
        $result = $lineobj->add();
        fireEvent('AddLine', $result, $lineobj);
        $cache = pageCache::getInstance();
        $cache->name = 'linesATOM';
        $cache->purge();
        $cache->reset();
        $cache->name = 'linesRSS';
        $cache->purge();
        if ($mode == 'url') {
            $lineobj->showResult($result);
        } else {
            Respond::ResultPage(0);
开发者ID:ragi79,项目名称:Textcube,代码行数:31,代码来源:line.php

示例5: PN_Subscription_Sidebar

function PN_Subscription_Sidebar($target)
{
    requireComponent("Textcube.Function.Setting");
    $count = Setting::getBlogSetting('SubscriberCount', null);
    $text = '<div class="SubscriptionPanel" style="text-align:center">';
    if ($count === null) {
        $text .= _t('구독 정보 갱신이 필요합니다');
    } else {
        $text .= _f('%1 명이 RSS를 구독하고 있습니다.', $count);
    }
    $text .= '</div>';
    return $text;
}
开发者ID:ragi79,项目名称:Textcube,代码行数:13,代码来源:index.php

示例6: define

<?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)
define('__TEXTCUBE_HEADER_XML__', true);
require ROOT . '/library/preprocessor.php';
if ($_POST['visibility'] == 'private') {
    $visibility = 'private';
} else {
    $visibility = 'public';
}
$password = Setting::getBlogSetting('LinePassword', null, true);
if (is_null($password)) {
    $password = md5(generatePassword());
    Setting::setBlogSetting('LinePassword', $password, true);
}
$provider = new Model_OpenSearchProvider();
$provider->setDescriptor('ShortName', Setting::getBlogSetting('title', 'TITLE', true));
$provider->setDescriptor('Description', Setting::getBlogSetting('description', 'DESCRIPTION', true));
$provider->setDescriptor('Url', null);
$provider->addAttribute('/OpenSearchDescription', 'xmlns', 'http://a9.com/-/spec/opensearch/1.1/');
$provider->addAttribute('/OpenSearchDescription/Url', 'type', 'text/html');
$provider->addAttribute('/OpenSearchDescription/Url', 'template', $context->getProperty('uri.default') . '/line?key=' . $password . '&amp;mode=' . $visibility . '&amp;content={searchTerms}');
$provider->setDescriptor('Language', Setting::getBlogSetting('language', 'ko-kr', true));
$provider->setDescriptor('OutputEncoding', 'utf-8');
$provider->setDescriptor('InputEncoding', 'utf-8');
$provider->generate();
echo $provider->_xmlcontent;
开发者ID:Avantians,项目名称:Textcube,代码行数:29,代码来源:index.php

示例7: array

<?php

/// Copyright (c) 2004-2012, 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('url' => array('url', 'default' => ''), 'title' => array('string', 'default' => ''), 'excerpt' => array('string', 'default' => ''), 'blog_name' => array('string', 'default' => '')), 'SERVER' => array('CONTENT_TYPE' => array('string', 'default' => '')));
require ROOT . '/library/preprocessor.php';
if (!Setting::getBlogSetting('acceptTrackbacks', 1)) {
    Respond::PrintResult(array('error' => 1, 'message' => 'The entry does not accept trackback'));
    exit;
}
$url = $_POST['url'];
$title = !empty($_POST['title']) ? $_POST['title'] : '';
$excerpt = !empty($_POST['excerpt']) ? $_POST['excerpt'] : '';
$blog_name = !empty($_POST['blog_name']) ? $_POST['blog_name'] : '';
if (!empty($_SERVER["CONTENT_TYPE"]) && strpos($_SERVER["CONTENT_TYPE"], 'charset') > 0) {
    $charsetPos = strpos($_SERVER["CONTENT_TYPE"], 'charset');
    $charsetArray = explode('=', substr($_SERVER["CONTENT_TYPE"], $charsetPos));
    $charset = $charsetArray[1];
    $ary[] = trim($charset);
}
/*if(!isset($suri['id'])) $suri['id'] = getEntryIdBySlogan($blogid, $suri['value']);
if(empty($suri['id'])) {
	Respond::PrintResult(array('error' => 1, 'message' => 'URL is not exist or invalid'));
	exit;
}*/
$result = receiveTrackback($blogid, $suri['id'], $title, $url, $excerpt, $blog_name);
if ($result == 0) {
    if ($row = POD::queryRow("SELECT * \n\t\tFROM {$database['prefix']}Entries\n\t\tWHERE blogid = {$blogid} \n\t\t\tAND id = {$suri['id']} \n\t\t\tAND draft = 0 \n\t\t\tAND visibility = 3 \n\t\t\tAND acceptcomment = 1")) {
        sendTrackbackPing($suri['id'], $context->getProperty('uri.default') . "/" . ($context->getProperty('blog.useSloganOnPost') ? "entry/{$row['slogan']}" : $suri['id']), $url, $blog_name, $title);
    }
开发者ID:ragi79,项目名称:Textcube,代码行数:31,代码来源:index.php


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