本文整理匯總了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;
}