 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http://wiki.sseuu.com/index.php?action=history&amp;feed=atom&amp;title=Hook.class.php</id>
		<title>Hook.class.php - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sseuu.com/index.php?action=history&amp;feed=atom&amp;title=Hook.class.php"/>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Hook.class.php&amp;action=history"/>
		<updated>2026-04-09T06:23:56Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.sseuu.com/index.php?title=Hook.class.php&amp;diff=117704&amp;oldid=prev</id>
		<title>笑笑：创建页面，内容为“&lt;?php /**  * Created by PhpStorm.  * User: yzg  * Date: 2016/1/19  * Time: 11:37  */  if (!defined('IN_DISCUZ')) {     exit('Access Denied'); } //ini_set('display_er...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.sseuu.com/index.php?title=Hook.class.php&amp;diff=117704&amp;oldid=prev"/>
				<updated>2022-11-22T00:46:06Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;?php ‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;*  * Created by PhpStorm.  * User: yzg  * Date: 2016/1/19  * Time: 11:37：&lt;/span&gt;  if (!defined(&amp;#039;IN_DISCUZ&amp;#039;)) {     exit(&amp;#039;Access Denied&amp;#039;); } //ini_set(&amp;#039;display_er...”&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;?php&lt;br /&gt;
/**&lt;br /&gt;
 * Created by PhpStorm.&lt;br /&gt;
 * User: yzg&lt;br /&gt;
 * Date: 2016/1/19&lt;br /&gt;
 * Time: 11:37&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
if (!defined('IN_DISCUZ')) {&lt;br /&gt;
    exit('Access Denied');&lt;br /&gt;
}&lt;br /&gt;
//ini_set('display_errors', 1);&lt;br /&gt;
//error_reporting(E_ALL ^ E_NOTICE);&lt;br /&gt;
&lt;br /&gt;
class plugin_xigua_re{&lt;br /&gt;
    function common(){&lt;br /&gt;
        global $_G;&lt;br /&gt;
        if($_G['basescript'] =='group'){&lt;br /&gt;
            $config = $_G['cache']['plugin']['xigua_re'];&lt;br /&gt;
            if($config['needgroup']){&lt;br /&gt;
                $_G['basescript'] = 'forum';&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class plugin_xigua_re_portal extends plugin_xigua_re&lt;br /&gt;
{&lt;br /&gt;
    function view_article_content_output(){&lt;br /&gt;
        global $article,$postlist;&lt;br /&gt;
        $authorinfo = getuserbyuid($article['uid']);&lt;br /&gt;
        $postlist[0]['authorid'] = $article['uid'];&lt;br /&gt;
        $postlist[0]['first'] = 1;&lt;br /&gt;
        $postlist[0]['groupid'] = $authorinfo['groupid'];&lt;br /&gt;
        $postlist[0]['subject'] = $article['title'];&lt;br /&gt;
        $postlist[0]['pid'] = 'a_'.$article['aid'];&lt;br /&gt;
        $_G['fid'] = 0;&lt;br /&gt;
&lt;br /&gt;
        global $ispc;&lt;br /&gt;
        $ispc = 1;&lt;br /&gt;
        $ret = mobileplugin_xigua_re_forum::viewthread_postbottom_mobile_output(                                                                                                             );&lt;br /&gt;
        return $ret[0];&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
class mobileplugin_xigua_re_portal extends plugin_xigua_re_portal&lt;br /&gt;
{&lt;br /&gt;
    function view_article_content_output(){&lt;br /&gt;
        global $article,$postlist;&lt;br /&gt;
        $authorinfo = getuserbyuid($article['uid']);&lt;br /&gt;
        $postlist[0]['authorid'] = $article['uid'];&lt;br /&gt;
        $postlist[0]['first'] = 1;&lt;br /&gt;
        $postlist[0]['groupid'] = $authorinfo['groupid'];&lt;br /&gt;
        $postlist[0]['subject'] = $article['title'];&lt;br /&gt;
        $postlist[0]['pid'] = 'a_'.$article['aid'];&lt;br /&gt;
        $_G['fid'] = 0;&lt;br /&gt;
&lt;br /&gt;
        global $ispc;&lt;br /&gt;
        $ispc = 0;&lt;br /&gt;
        $ret = mobileplugin_xigua_re_forum::viewthread_postbottom_mobile_output(                                                                                                             );&lt;br /&gt;
        return $ret[0];&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class plugin_xigua_re_forum extends plugin_xigua_re&lt;br /&gt;
{&lt;br /&gt;
    public static function viewthread_postbottom_output(){&lt;br /&gt;
        global $ispc;&lt;br /&gt;
        $ispc = 1;&lt;br /&gt;
        $ret = mobileplugin_xigua_re_forum::viewthread_postbottom_mobile_output(                                                                                                             );&lt;br /&gt;
        return $ret;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
class  mobileplugin_xigua_re_forum extends plugin_xigua_re&lt;br /&gt;
{&lt;br /&gt;
    public static function getstyle($ispc, $color)&lt;br /&gt;
    {&lt;br /&gt;
        $reword = $ispc ? 'text-align: center; font-size: 18px;color: #666;line-                                                                                                             height: 36px;clear:both;' : 'font-size:16px;text-align:center;padding-top:10px;c                                                                                                             olor:#909090;clear:both;width:100%;';&lt;br /&gt;
        $relistli = $ispc ? 'margin:0 6px 6px 0;float:left' : 'display:inline-bl                                                                                                             ock;margin:0 6px 6px 0;vertical-align:top';&lt;br /&gt;
&lt;br /&gt;
        $html = '';&lt;br /&gt;
        include_once template('xigua_re:style');&lt;br /&gt;
        $style = $html;&lt;br /&gt;
        return $style;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public static function viewthread_postbottom_mobile_output(){&lt;br /&gt;
        include_once DISCUZ_ROOT.'./source/plugin/xigua_re/common.php';&lt;br /&gt;
        global $_G,$postlist,$ispc;&lt;br /&gt;
        $config = $_G['cache']['plugin']['xigua_re'];&lt;br /&gt;
        $color = $config['linkcolor'] ? $config['linkcolor'] : '#D75847';&lt;br /&gt;
        $hasstyle = 0;&lt;br /&gt;
        $data = array();&lt;br /&gt;
        $style = self::getstyle($ispc, $color);&lt;br /&gt;
&lt;br /&gt;
        $yuan = lang('plugin/xigua_re', 'yuan');&lt;br /&gt;
        $ren = lang('plugin/xigua_re', 'ren');&lt;br /&gt;
        $wuhui = lang('plugin/xigua_re', 'wuhui');&lt;br /&gt;
        $lijida = lang('plugin/xigua_re', 'lijida');&lt;br /&gt;
        $guanbi = lang('plugin/xigua_re', 'guanbi');&lt;br /&gt;
        $qing = lang('plugin/xigua_re', 'qing');&lt;br /&gt;
&lt;br /&gt;
        $pcjs = '';&lt;br /&gt;
        include_once template('xigua_re:pcjs');&lt;br /&gt;
&lt;br /&gt;
        $authors = array();&lt;br /&gt;
        foreach (array_values($postlist) as $item) {&lt;br /&gt;
            $authors[] = $item['authorid'];&lt;br /&gt;
        }&lt;br /&gt;
        $users = C::t('#xigua_re#xgre_user')-&amp;gt;fetch_by_uids($authors);&lt;br /&gt;
&lt;br /&gt;
        foreach (array_values($postlist) as $index =&amp;gt; $item) {&lt;br /&gt;
&lt;br /&gt;
            /*&lt;br /&gt;
            $mem = C::t('common_member')-&amp;gt;fetch($item['authorid']);&lt;br /&gt;
&lt;br /&gt;
            foreach(explode(&amp;quot;\t&amp;quot;, $mem['extgroupids']) as $extgroupid) {&lt;br /&gt;
                if($extgroupid = intval(trim($extgroupid))) {&lt;br /&gt;
                    $groupidarray[] = $extgroupid;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            if(!in_array($item['groupid'], unserialize($config['opengroups'])) &amp;amp;                                                                                                             &amp;amp; !array_intersect(unserialize($config['opengroups']), $groupidarray)){&lt;br /&gt;
                $data[$index] = '';&lt;br /&gt;
                continue;&lt;br /&gt;
            }&lt;br /&gt;
            */&lt;br /&gt;
            if(!in_array($item['groupid'], unserialize($config['opengroups']))){&lt;br /&gt;
                $data[$index] = '';&lt;br /&gt;
                continue;&lt;br /&gt;
            }&lt;br /&gt;
            if($_G['fid'] &amp;amp;&amp;amp; in_array($_G['fid'], unserialize($config['closefids                                                                                                             ']))){&lt;br /&gt;
                $data[$index] = '';&lt;br /&gt;
                continue;&lt;br /&gt;
            }&lt;br /&gt;
            if($config['first'] &amp;amp;&amp;amp; !$item['first']){&lt;br /&gt;
                $data[$index] = '';&lt;br /&gt;
                continue;&lt;br /&gt;
            }&lt;br /&gt;
            $user = $users[$item['authorid']];&lt;br /&gt;
            if(!$user['openid']){&lt;br /&gt;
                if($config['needopenid']){&lt;br /&gt;
                    $data[$index] = '';&lt;br /&gt;
                    continue;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            if(!$user['word']){&lt;br /&gt;
                $user['word'] = $config['preword'];&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            $postid = 'pid_'.$item['pid'];&lt;br /&gt;
            $tid = $item['tid'];&lt;br /&gt;
            $url = urlencode(re_current_url());&lt;br /&gt;
            $subject = $item['subject'];&lt;br /&gt;
            $subject = urlencode($subject);&lt;br /&gt;
&lt;br /&gt;
            $imgs = $reilist = '';&lt;br /&gt;
            $dlist = array();&lt;br /&gt;
            $count = C::t('#xigua_re#xgre_order')-&amp;gt;fetch_usercount_by_postid($po                                                                                                             stid);&lt;br /&gt;
&lt;br /&gt;
            if($count){&lt;br /&gt;
                $dlist = $list = C::t('#xigua_re#xgre_order')-&amp;gt;fetch_user_by_pos                                                                                                             tid($postid);&lt;br /&gt;
            }&lt;br /&gt;
            if($hasstyle){&lt;br /&gt;
                $style = '';&lt;br /&gt;
                $pcjs = '';&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            $paybtn = '';&lt;br /&gt;
            include template('xigua_re:paybtn');&lt;br /&gt;
            $data[$index] = $paybtn;&lt;br /&gt;
            $hasstyle = 1;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        if($data[0]){&lt;br /&gt;
            $data[''] = $data[0];&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        return $data;&lt;br /&gt;
    }&lt;/div&gt;</summary>
		<author><name>笑笑</name></author>	</entry>

	</feed>