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


PHP XWB_plugin::F方法代码示例

本文整理汇总了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']) : '';
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:12,代码来源:space.hack.php

示例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);
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:20,代码来源:viewthread.hack.php

示例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;
 }
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:23,代码来源:hook.class.php


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