本文整理汇总了PHP中XWB_plugin::F方法的典型用法代码示例。如果您正苦于以下问题:PHP XWB_plugin::F方法的具体用法?PHP XWB_plugin::F怎么用?PHP XWB_plugin::F使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XWB_plugin
的用法示例。
在下文中一共展示了XWB_plugin::F方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
<?php
/*
* @version $Id: space.hack.php 375 2010-12-08 06:06:11Z yaoying $
*/
if (!defined('IS_IN_XWB_PLUGIN')) {
exit('Access Denied!');
}
$sina_uid = XWB_plugin::F('sinaUidFilter', array($uid));
$appkey = XWB_APP_KEY;
//签名解析
$GLOBALS['space']['sightml'] = isset($GLOBALS['space']['sightml']) ? XWB_plugin::F('xwb_format_signature', $GLOBALS['space']['sightml']) : '';
示例2: exit
<?php
/*
* @version $Id: viewthread.hack.php 673 2011-05-03 02:06:05Z yaoying $
*/
if (!defined('IS_IN_XWB_PLUGIN')) {
exit('Access Denied!');
}
global $_G;
$uids = array();
$sina_uid = array();
foreach ($GLOBALS['postlist'] as $key => $row) {
$uids[] = (int) $row['authorid'];
//签名替换
$GLOBALS['postlist'][$key]['signature'] = isset($row['signature']) ? XWB_plugin::F('xwb_format_signature', $row['signature']) : '';
if ($row['first'] && XWB_plugin::pCfg('is_rebutton_display')) {
$this->viewthread_subject = $row['subject'];
}
}
$sina_uid = XWB_plugin::F('sinaUidFilter', $uids, false);
示例3: _parse_postlist_in_viewthread
/**
* 解析$GLOBALS['postlist']
* @access protected
*/
function _parse_postlist_in_viewthread()
{
global $_G;
if (empty($GLOBALS['postlist']) || !is_array($GLOBALS['postlist']) || true === $this->_parsed_postlist) {
return $this->_parsed_postlist;
}
require XWB_plugin::hackFile('viewthread');
foreach ($GLOBALS['postlist'] as $pid => $onePost) {
$this->viewthread_sidetop_return[] = $this->_html_sidetop($onePost, $sina_uid);
$this->viewthread_imicons_return[] = $this->_html_imicons($onePost, $sina_uid);
$this->viewthread_postfooter_return[] = $this->_html_postfooter($pid, $onePost, $sina_uid);
}
if (!empty($_G['gp_viewpid'])) {
global $post;
$post['signature'] = isset($post['signature']) ? XWB_plugin::F('xwb_format_signature', $post['signature']) : '';
}
$this->_parsed_postlist = true;
return true;
}