Beispiel #1
0
 function getdata($style, $parameter)
 {
     $advid = 0;
     if (!empty($parameter['title'])) {
         $parameter['title'] = addslashes($parameter['title']);
         $adv = DB::fetch_first('SELECT * FROM ' . DB::table('common_advertisement_custom') . " WHERE name='{$parameter['title']}'");
         if (empty($adv)) {
             $advid = DB::insert('common_advertisement_custom', array('name' => $parameter['title']), 1);
         } else {
             $advid = $adv['id'];
         }
     } elseif (!empty($parameter['adv'])) {
         $parameter['adv'] = addslashes($parameter['adv']);
         $adv = DB::fetch_first('SELECT * FROM ' . DB::table('common_advertisement_custom') . " WHERE name='{$parameter['adv']}'");
         $advid = intval($adv['id']);
     } else {
         $return = 'Empty Ads';
     }
     if ($advid) {
         $flag = false;
         if (getglobal('inajax')) {
             $flag = true;
             setglobal('inajax', 0);
         }
         $return = adshow('custom_' . $advid);
         if ($flag) {
             setglobal('inajax', 1);
         }
     }
     return array('html' => $return, 'data' => null);
 }
Beispiel #2
0
 function getdata($style, $parameter)
 {
     $advid = 0;
     if (!empty($parameter['title'])) {
         $adv = C::t('common_advertisement_custom')->fetch_by_name($parameter['title']);
         if (empty($adv)) {
             $advid = C::t('common_advertisement_custom')->insert(array('name' => $parameter['title']), true);
         } else {
             $advid = $adv['id'];
         }
     } elseif (!empty($parameter['adv'])) {
         $adv = C::t('common_advertisement_custom')->fetch_by_name($parameter['adv']);
         $advid = intval($adv['id']);
     } else {
         $return = 'Empty Ads';
     }
     if ($advid) {
         $flag = false;
         if (getglobal('inajax')) {
             $flag = true;
             setglobal('inajax', 0);
         }
         $return = adshow('custom_' . $advid);
         if ($flag) {
             setglobal('inajax', 1);
         }
     }
     return array('html' => $return, 'data' => null);
 }
Beispiel #3
0
<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');?><?php include template('common/header'); ?><div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a><em>&raquo;</em><a href="group.php"><?php echo $_G['setting']['navs']['3']['navname'];?></a><?php echo $navigation;?>
</div>
</div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2 wp cl">
<div class="mn">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bmw">
<div class="bm_h cl">
<span class="y xw1"><a href="group.php?mod=my">我的<?php echo $_G['setting']['navs']['3']['navname'];?> &rsaquo;</a></span>
<h2><?php echo $_G['setting']['navs']['3']['navname'];?>焦点</h2>
</div>
<!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
</div>
<!--[diy=diycommendtop]--><div id="diycommendtop" class="area"></div><!--[/diy]-->
<?php if(!empty($_G['setting']['pluginhooks']['index_header'])) echo $_G['setting']['pluginhooks']['index_header'];?>
<div id="g_commend" class="bm">
<div class="bm_h cl">
<h2>推荐<?php echo $_G['setting']['navs']['3']['navname'];?></h2>
</div>
<div class="bm_c cl"><?php if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?><dl class="xld">
<dd class="m"><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><img src="<?php echo $val['icon'];?>" alt="<?php echo $val['name'];?>" width="48" height="48" /></a></dd>
<dt><a href="forum.php?mod=group&amp;fid=<?php echo $val['fid'];?>"><?php echo $val['name'];?></a></dt>
<dd class="xg1"><?php echo $val['description'];?></dd>
</dl>
<?php } ?>
</div>
  <li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra1'])) echo $_G['setting']['pluginhooks']['global_usernav_extra1'];?></li>
  <li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra2'])) echo $_G['setting']['pluginhooks']['global_usernav_extra2'];?></li>
  <li><?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?></li>
  <?php if(is_array($_G['setting']['mynavs'])) foreach($_G['setting']['mynavs'] as $nav) { ?> 
  <?php if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?>
  <li><?php echo $nav['code'];?></li>
  <?php } ?> 
  <?php } ?> 
  <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra3'])) echo $_G['setting']['pluginhooks']['global_usernav_extra3'];?>
  <li><a href="home.php?mod=spacecp">设置</a></li>
  <?php if(($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))) { ?>
  <li><a href="portal.php?mod=portalcp"><?php if($_G['setting']['portalstatus'] ) { ?>门户管理<?php } else { ?>模块管理<?php } ?></a></li>
  <?php } ?> 
  <?php if($_G['uid'] && $_G['group']['radminid'] > 1) { ?>
  <li><a href="forum.php?mod=modcp&amp;fid=<?php echo $_G['fid'];?>" target="_blank"><?php echo $_G['setting']['navs']['2']['navname'];?>管理</a></li>
  <?php } ?> 
  <?php if($_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']) { ?>
  <li><a href="admin.php?frames=yes&amp;action=cloud&amp;operation=applist" target="_blank">云平台</a></li>
  <?php } ?> 
  <?php if($_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)) { ?>
  <li><a href="admin.php" target="_blank">管理中心</a></li>
  <?php } ?> 
  <?php if(!empty($_G['setting']['pluginhooks']['global_usernav_extra4'])) echo $_G['setting']['pluginhooks']['global_usernav_extra4'];?>
  <li><a href="member.php?mod=logging&amp;action=logout&amp;formhash=<?php echo FORMHASH;?>">退出</a></li>
</ul><?php echo adshow("headerbanner/wp a_h");?> <?php echo adshow("subnavbanner/wp a_mu");?> 
<?php if(!empty($_G['setting']['pluginhooks']['global_header'])) echo $_G['setting']['pluginhooks']['global_header'];?> 
<?php } ?>

<div id="wp" class="wp time_wp">

<?php } else { ?>
<a href="portal.php?mod=portalcp&amp;ac=article&amp;op=delete&amp;aid=<?php echo $article['aid'];?>" id="article_delete_<?php echo $article['aid'];?>" onclick="showWindow(this.id, this.href, 'get', 0);">删除</a>
<?php } ?>
<span class="pipe">|</span>
<?php } if($article['status']==0 && ($_G['group']['allowdiy']  || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5) || getstatus($_G['member']['allowadmincp'], 6))) { ?>
<a href="portal.php?mod=portalcp&amp;ac=portalblock&amp;op=recommend&amp;idtype=aid&amp;id=<?php echo $article['aid'];?>" onclick="showWindow('recommend', this.href, 'get', 0)">模块推送</a><span class="pipe">|</span>
<?php } ?>
</div>
<?php if($article['preaid'] || $article['nextaid']) { ?>
<div class="pren pbm cl">
<?php if($article['prearticle']) { ?><em>上一篇:<a href="<?php echo $article['prearticle']['url'];?>"><?php echo $article['prearticle']['title'];?></a></em><?php } if($article['nextarticle']) { ?><em>下一篇:<a href="<?php echo $article['nextarticle']['url'];?>"><?php echo $article['nextarticle']['title'];?></a></em><?php } ?>
</div>
<?php } ?>
</div>

<!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]--><?php echo adshow("article/mbm hm/2");?><?php echo adshow("article/mbm hm/3");?><?php if($article['related']) { ?>
<div id="related_article" class="bm">
<div class="bm_h cl">
<h3>相关阅读</h3>
</div>
<div class="bm_c">
<ul class="xl xl2 cl" id="raid_div"><?php if(is_array($article['related'])) foreach($article['related'] as $raid => $rvalue) { ?><input type="hidden" value="<?php echo $raid;?>" />
<li>&bull; <a href="<?php echo $rvalue['uri'];?>"><?php echo $rvalue['title'];?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

<!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]-->
                    ?>
</div>
</td>
</tr>
<tr class="fl_row">
<?php 
                }
            }
        }
        echo $cat['endrows'];
        ?>
</tr>
</table>
</div>
</div><?php 
        echo adshow("intercat/bm a_c/{$cat['fid']}");
    }
}
if (!empty($collectiondata['data'])) {
    $forumscount = count($collectiondata['data']);
    $forumcolumns = 4;
    $forumcolwidth = floor(100 / $forumcolumns) - 0.1 . '%';
    ?>
<div class="bm bmw <?php 
    if ($forumcolumns) {
        ?>
 flg<?php 
    }
    ?>
 cl">
<div class="bm_h cl">
<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); 
block_get('45,66,85,67,68,69');?>
<link rel="stylesheet" href="./template/strong_mobile/js/show.css">
<link rel="stylesheet" href="./template/strong_mobile/index.css" type="text/css" media="all"><?php block_display('45');?><?php echo adshow("home1_mobile");?><?php block_display('66');?><div class="huandeng"><?php block_display('85');?></div><?php echo adshow("home1_mobile");?><?php block_display('67');?><?php echo adshow("home3_mobile");?><?php block_display('68');?><?php echo adshow("home4_mobile");?><?php block_display('69');?><?php echo adshow("home5_mobile");?><script src="./template/strong_mobile/js/show.js" type="text/javascript"></script>
<script type="text/javascript">
    $('.bxslider').bxSlider({
   auto: true,
   captions: true
});
</script>




                                echo $_G['fid'];
                                ?>
')" title="查看更新" class="forumrefresh">版块主题</a><?php 
                            } else {
                                ?>
&nbsp;<?php 
                            }
                            ?>
</th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
</tbody>
<script type="text/javascript">hideStickThread();</script>
<?php 
                        }
                        if ($separatepos <= $key + 1) {
                            echo adshow("threadlist");
                        }
                        ?>
<tbody id="<?php 
                        echo $thread['id'];
                        ?>
"<?php 
                        if ($_G['hiddenexists'] && $thread['hidden']) {
                            ?>
 style='display:none'<?php 
                        }
                        ?>
>
<tr>
<td class="icn">
<a href="forum.php?mod=viewthread&amp;tid=<?php 
<td class="num">&nbsp;</td>
<td class="by">&nbsp;</td>
</tr>
</tbody>
<?php } if(!$separatepos || !$_G['setting']['forumseparator']) { ?>
<tbody id="separatorline" class="emptb"><tr><td class="icn"></td><?php if(!$_GET['archiveid'] && $_G['forum']['ismoderator']) { ?><td class="o"></td><?php } ?><th></th><?php if(CURMODULE == 'guide') { ?><td class="by"></td><?php } ?><td class="by"></td><td class="num"></td><td class="by"></td></tr></tbody>
<?php } if($_G['forum_threadcount']) { if(empty($_G['forum']['picstyle']) || $_G['cookie']['forumdefstyle']) { if(is_array($_G['forum_threadlist'])) foreach($_G['forum_threadlist'] as $key => $thread) { if($_G['setting']['forumseparator'] == 1 && $separatepos == $key + 1) { ?>
<tbody id="separatorline">
<tr class="ts">
<td>&nbsp;</td>
<?php if($_G['forum']['ismoderator'] && !$_GET['archiveid']) { ?><td>&nbsp;</td><?php } ?>
<th><?php if(empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && !$_GET['filter']) { ?><a href="javascript:;" onclick="checkForumnew_btn('<?php echo $_G['fid'];?>')" title="查看更新" class="forumrefresh">版块主题</a><?php } else { ?>&nbsp;<?php } ?></th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
</tbody>
<script type="text/javascript">hideStickThread();</script>
<?php } if($separatepos <= $key + 1) { ?><?php echo adshow("threadlist");?><?php } ?>
<tbody id="<?php echo $thread['id'];?>"<?php if($_G['hiddenexists'] && $thread['hidden']) { ?> style='display:none'<?php } ?>>
<tr>
<td class="icn">
<a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['icontid'];?>&amp;<?php if($_GET['archiveid']) { ?>archiveid=<?php echo $_GET['archiveid'];?>&amp;<?php } ?>extra=<?php echo $extra;?>" title="<?php if($thread['displayorder'] == 1) { ?>本版置顶主题 - <?php } if($thread['displayorder'] == 2) { ?>分类置顶主题 - <?php } if($thread['displayorder'] == 3) { ?>全局置顶主题 - <?php } if($thread['displayorder'] == 4) { ?>多版置顶主题 - <?php } if($thread['folder'] == 'lock') { ?>关闭的主题 - <?php } if($thread['special'] == 1) { ?>投票 - <?php } if($thread['special'] == 2) { ?>商品 - <?php } if($thread['special'] == 3) { ?>悬赏 - <?php } if($thread['special'] == 4) { ?>活动 - <?php } if($thread['special'] == 5) { ?>辩论 - <?php } if($thread['folder'] == "new") { ?>有新回复 - <?php } ?>
新窗口打开" target="_blank">
<?php if($thread['folder'] == 'lock') { ?>
<img src="<?php echo IMGDIR;?>/folder_lock.gif" />
<?php } elseif($thread['special'] == 1) { ?>
<img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
<?php } elseif($thread['special'] == 2) { ?>
<img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
<?php } elseif($thread['special'] == 3) { ?>
<img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
<?php } elseif($thread['special'] == 4) { ?>
<img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
            this.className = "";
            e.stopPropagation();
            return false
        }
    });
</script>
<?php } ?>
                    <ul class="xm_nav"><?php if(is_array($_G['setting']['navs'])) foreach($_G['setting']['navs'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { ?><li <?php if($mnid == $nav['navid']) { ?>class="a" <?php } ?><?php echo $nav['nav'];?>></li><?php } } ?>
</ul>

</div>
<?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
<ul class="p_pop h_pop" id="plugin_menu" style="display: none"><?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?> <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
 <li><?php echo $module['url'];?></li>
 <?php } } ?>
</ul>
<?php } ?>
<?php echo $_G['setting']['menunavs'];?>
<div id="mu" class="cl">
<?php if($_G['setting']['subnavs']) { if(is_array($_G['setting']['subnavs'])) foreach($_G['setting']['subnavs'] as $navid => $subnav) { if($_G['setting']['navsubhover'] || $mnid == $navid) { ?>
<ul class="cl <?php if($mnid == $navid) { ?>current<?php } ?>" id="snav_<?php echo $navid;?>" style="display:<?php if($mnid != $navid) { ?>none<?php } ?>">
<?php echo $subnav;?>
</ul>
<?php } } } ?>
</div><?php echo adshow("subnavbanner/a_mu");?></div>
</div>
<?php } ?>

<div id="wp" class="wp kym_wp">

Beispiel #11
0
" onclick="showWindow(this.id, this.href, 'get', 0);">删除</a></label>
</span>
<?php 
        }
        ?>
</dd>
</dl>
<?php 
    }
}
?>
</div>
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
</div><?php 
echo adshow("articlelist/mbm hm/3");
echo adshow("articlelist/mbm hm/4");
if ($list['multi']) {
    ?>
<div class="pgs cl"><?php 
    echo $list['multi'];
    ?>
</div><?php 
}
?>

<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->

</div>
<div class="sd pph">

<div class="drag">
    ?>
</span>
<?php 
}
?>

</p>
<?php 
if (!empty($_G['setting']['pluginhooks']['space_blog_title'])) {
    echo $_G['setting']['pluginhooks']['space_blog_title'];
}
?>
</div>

<div id="blog_article" class="d cl"><?php 
echo adshow("blog/a_b");
echo $blog['message'];
?>
</div>
<?php 
if ($blog['friend'] != 3 && !$blog['noreply']) {
    ?>
<div id="click_div"><?php 
    include template('home/space_click');
    ?>
</div>
<?php 
}
if (!empty($_G['setting']['pluginhooks']['space_blog_share_method'])) {
    ?>
<div class="tshare cl">
<?php 
    if ($_SGLOBAL['ad']['couplet']) {
        ?>
<script language="javascript" type="text/javascript" src="source/script_couplet.js"></script>
<div id="uch_couplet" style="z-index: 10; position: absolute; display:none">
<div id="couplet_left" style="position: absolute; left: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php 
        adshow('couplet');
        ?>
</div>
<div id="couplet_rigth" style="position: absolute; right: 2px; top: 60px; overflow: hidden;">
<div style="position: relative; top: 25px; margin:0.5em;" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('uch_couplet');"><img src="image/advclose.gif"></div>
<?php 
        adshow('couplet');
        ?>
</div>
<script type="text/javascript">
lsfloatdiv('uch_couplet', 0, 0, '', 0).floatIt();
</script>
</div>
<?php 
    }
    ?>

</body>
</html>
<?php 
}
ob_out();
<?php if(!empty($_G['setting']['pluginhooks']['global_nav_extra'])) echo $_G['setting']['pluginhooks']['global_nav_extra'];?>
</div>
<?php if(!empty($_G['setting']['plugins']['jsmenu'])) { ?>
<ul class="p_pop h_pop" id="plugin_menu" style="display: none"><?php if(is_array($_G['setting']['plugins']['jsmenu'])) foreach($_G['setting']['plugins']['jsmenu'] as $module) { ?> <?php if(!$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])) { ?>
 <li><?php echo $module['url'];?></li>
 <?php } } ?>
</ul>
<?php } ?>
<?php echo $_G['setting']['menunavs'];?>
<div id="mu" class="cl">
<?php if($_G['setting']['subnavs']) { if(is_array($_G['setting']['subnavs'])) foreach($_G['setting']['subnavs'] as $navid => $subnav) { if($_G['setting']['navsubhover'] || $mnid == $navid) { ?>
<ul class="cl <?php if($mnid == $navid) { ?>current<?php } ?>" id="snav_<?php echo $navid;?>" style="display:<?php if($mnid != $navid) { ?>none<?php } ?>">
<?php echo $subnav;?>
</ul>
<?php } } } ?>
</div><?php echo adshow("subnavbanner/a_mu");?><?php if($_G['setting']['search']) { $slist = array();?><?php if($_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group') { ?><?php
$slist[forumfid] = <<<EOF
<li><a href="javascript:;" rel="curforum" fid="{$_G['fid']}" >本版</a></li>
EOF;
?><?php } if($_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)) { ?><?php
$slist[portal] = <<<EOF
<li><a href="javascript:;" rel="article">文章</a></li>
EOF;
?><?php } if($_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)) { ?><?php
$slist[forum] = <<<EOF
<li><a href="javascript:;" rel="forum" class="curtype">帖子</a></li>
EOF;
?><?php } if(helper_access::check_module('blog') && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)) { ?><?php
$slist[blog] = <<<EOF
<li><a href="javascript:;" rel="blog">日志</a></li>
EOF;
Beispiel #15
0
<p class="ptn hm"><a href="<?php 
    echo $focus['url'];
    ?>
" class="xi2" target="_blank">查看 &raquo;</a></p>
</div>
</div>
</div>
<?php 
}
echo adshow("footerbanner/wp a_f hm/1");
echo adshow("footerbanner/wp a_f hm/2");
echo adshow("footerbanner/wp a_f hm/3");
echo adshow("float/a_fl/1");
echo adshow("float/a_fr/2");
echo adshow("couplebanner/a_fl a_cb/1");
echo adshow("couplebanner/a_fr a_cb/2");
if (!empty($_G['setting']['pluginhooks']['global_footer'])) {
    echo $_G['setting']['pluginhooks']['global_footer'];
}
?>

<div id="ft" class="w cl">
<em>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?php 
echo $_G['setting']['version'];
?>
</em><?php 
if (!empty($_G['setting']['boardlicensed'])) {
    ?>
 <a href="http://license.comsenz.com/?pid=1&amp;host=<?php 
    echo $_SERVER['HTTP_HOST'];
    ?>
<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: advertisement.php 25246 2011-11-02 03:34:53Z zhangguosheng $
 */
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 60) . ' GMT');
if (!defined('IN_API')) {
    exit('document.write(\'Access Denied\')');
}
loadcore();
$adid = $_GET['adid'];
$data = adshow($adid);
echo 'document.write(\'' . preg_replace("/\r\n|\n|\r/", '\\n', addcslashes($data, "'\\")) . '\');';
</div><?php $focusi ++;?><?php } ?>
<script type="text/javascript">
var focusnum = <?php echo $focusnum;?>;
if(focusnum < 2) {
$('focus_ctrl').style.display = 'none';
}
if(!$('focuscur').innerHTML) {
var randomnum = parseInt(Math.round(Math.random() * focusnum));
$('focuscur').innerHTML = Math.max(1, randomnum);
}
showfocus();
var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
</script>
<?php } if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) { ?>
<div class="focus patch" id="patch_notice"></div>
<?php } ?><?php echo adshow("footerbanner/wp a_f/1");?><?php echo adshow("footerbanner/wp a_f/2");?><?php echo adshow("footerbanner/wp a_f/3");?><?php echo adshow("float/a_fl/1");?><?php echo adshow("float/a_fr/2");?><?php echo adshow("couplebanner/a_fl a_cb/1");?><?php echo adshow("couplebanner/a_fr a_cb/2");?><?php echo adshow("cornerbanner/a_cn");?><?php if(!empty($_G['setting']['pluginhooks']['global_footer'])) echo $_G['setting']['pluginhooks']['global_footer'];?>
    <div id="ft" class="top_ft"> </div>
<div class="footer">
    <div class="footerinner"><?php if(is_array($_G['setting']['footernavs'])) foreach($_G['setting']['footernavs'] as $nav) { if($nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) ||
!$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))) { ?><?php echo $nav['code'];?><span class="pipe"></span><?php } } ?>

<?php if(!empty($_G['setting']['pluginhooks']['global_footerlink'])) echo $_G['setting']['pluginhooks']['global_footerlink'];?>
<?php if($_G['setting']['statcode']) { ?><i style="display:none;"><?php echo $_G['setting']['statcode'];?></i><?php } ?>
                   <?php if($_G['setting']['site_qq']) { ?><a href="http://wpa.qq.com/msgrd?V=3&amp;Uin=<?php echo $_G['setting']['site_qq'];?>&amp;Site=<?php echo $_G['setting']['bbname'];?>&amp;Menu=yes&amp;from=discuz" target="_blank" title="QQ"><img src="<?php echo IMGDIR;?>/site_qq.jpg" alt="QQ"/></a><span class="pipe"></span><?php } ?>
    <div style="clear:both"></div> 
    <p class="copyright">Copyright &copy; 2014 <?php if($_G['setting']['icp']) { ?>( <?php echo $_G['setting']['icp'];?> )<?php } ?></p>
    <p class="powered">Powered by <a href="http://www.discuz.net" target="_blank">Discuz!</a> <em><?php echo $_G['setting']['version'];?></em><?php if(!empty($_G['setting']['boardlicensed'])) { ?> <a href="http://license.comsenz.com/?pid=1&amp;host=<?php echo $_SERVER['HTTP_HOST'];?>" target="_blank">Licensed</a><?php } ?></p>
     
    <span class="slogan"><?php echo $_G['setting']['sitename'];?></span>

    </div><?php updatesession();?><?php if($_G['uid'] && $_G['group']['allowinvisible']) { ?>
</div>

<div id="footer" title="<?php 
echo debuginfo();
?>
">

<p class="r_option">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
</p>

<?php 
if ($_SGLOBAL['ad']['footer']) {
    ?>
<p style="padding:5px 0 10px 0;"><?php 
    adshow('footer');
    ?>
</p>
<?php 
}
?>

<p>
<?php 
echo $_SCONFIG['sitename'];
?>
 - 
<a href="mailto:<?php 
echo $_SCONFIG['adminemail'];
?>
">联系我们</a>
<script type="text/javascript">
var focusnum = <?php echo $focusnum;?>;
if(focusnum < 2) {
$('focus_ctrl').style.display = 'none';
}
if(!$('focuscur').innerHTML) {
var randomnum = parseInt(Math.round(Math.random() * focusnum));
$('focuscur').innerHTML = Math.max(1, randomnum);
}
showfocus();
var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
</script> 
<?php } ?> 
<?php if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) { ?>
<div class="focus patch" id="patch_notice"></div>
<?php } ?> <?php echo adshow("footerbanner/wp a_f/1");?><?php echo adshow("footerbanner/wp a_f/2");?><?php echo adshow("footerbanner/wp a_f/3");?> <?php echo adshow("float/a_fl/1");?><?php echo adshow("float/a_fr/2");?> <?php echo adshow("couplebanner/a_fl a_cb/1");?><?php echo adshow("couplebanner/a_fr a_cb/2");?> <?php echo adshow("cornerbanner/a_cn");?> 


<?php if(!empty($_G['setting']['pluginhooks']['global_footer'])) echo $_G['setting']['pluginhooks']['global_footer'];?>
<div class="ft_wp">
  <div id="ft" class="wp cl">
    <div class="ft_info">
    
      <ul class="ft_info2">
        <li><a href="misc.php?mod=faq&amp;action=faq&amp;id=2" target="_blank">联系我们 </a></li>
        <li> <a target="_blank" href="http://wpa.qq.com/msgrd?v=1&amp;uin=34887411&amp;site=qq&amp;menu=yes">客服:<img border="0" src="http://wpa.qq.com/pa?p=2:1508085698:45" alt="北京未来科技城" title="北京未来科技城"> 34887411 </a>&nbsp; </li>
        <li> 邮箱:bjwlkjc_service@163.com </li>
      </ul>
      <ul class="ft_info4">
        <li><a href="misc.php?mod=faq&amp;action=faq&amp;id=1" target="_blank">关于我们</a></li>
        <li><a href="http://www.bjwlkjc.com/misc.php?mod=faq&amp;action=faq&amp;id=1" target="_blank">网站简介</a></li>
Beispiel #20
0
<!-- Baidu Button END -->								
</div>

<div id="weibo_info01" class="new_body body02 grey64"><?php echo cutstr($value['summary'],180); ?></div>

<a class="zxreadall" href="<?php echo $article_url;?>" target="_blank">详细阅读</a>

</div>
</div>
</div>
       <?php $i++;?><?php } ?> 
            
            
</div>
<!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
</div><?php echo adshow("articlelist/mbm hm/3");?><?php echo adshow("articlelist/mbm hm/4");?><?php if($list['multi']) { ?><div class="pgs cl"><?php echo $list['multi'];?></div><?php } ?>	

</div>




<div class="sd pph">

<div class="drag">
<!--[diy=diyrighttop]--><div id="diyrighttop" class="area"><div id="frameC1Azeb" class="frame move-span cl frame-1"><div id="frameC1Azeb_left" class="column frame-1-c"><div id="frameC1Azeb_left_temp" class="move-span temp"></div><?php block_display('86');?><?php block_display('87');?><?php block_display('88');?><?php block_display('89');?></div></div></div><!--[/diy]-->
</div>

<?php if($cat['others']) { ?>
<div class="bm wd_sd" style="display:none;">
<div class="bm_h cl">
</tr>
<?php } ?>
<tr class="ad">
<td class="pls">
<?php if(!$close_leftinfo) { ?>
</td>
<td class="plc">
<?php } if($post['first'] && $_G['forum_thread']['special'] == 5 && $_G['forum_thread']['displayorder'] >= 0) { ?>
<ul class="ttp cl">
<li style="display:inline;margin-left:12px"><strong class="bw0 bg0_all">按立场筛选: </strong></li>
<li<?php if(!isset($_GET['stand'])) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=viewthread&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>" hidefocus="true">全部</a></li>
<li<?php if($_GET['stand'] == 1) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=viewthread&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>&amp;stand=1" hidefocus="true">正方</a></li>
<li<?php if($_GET['stand'] == 2) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=viewthread&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>&amp;stand=2" hidefocus="true">反方</a></li>
<li<?php if(isset($_GET['stand']) && $_GET['stand'] == 0) { ?> class="xw1 a"<?php } ?>><a href="forum.php?mod=viewthread&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>&amp;stand=0" hidefocus="true">中立</a></li>
</ul>
<?php } if($_G['forum_thread']['replies']) { ?><?php echo adshow("interthread/a_p/$postcount");?><?php } ?>
</td>
</tr>
</table>
<?php if(!empty($aimgs[$post['pid']])) { ?>
<script type="text/javascript" reload="1">
aimgcount[<?php echo $post['pid'];?>] = [<?php echo dimplode($aimgs[$post['pid']]);; ?>];
attachimggroup(<?php echo $post['pid'];?>);
<?php if(empty($_G['setting']['lazyload'])) { if(!$post['imagelistthumb']) { ?>
attachimgshow(<?php echo $post['pid'];?>);
<?php } else { ?>
attachimgshow(<?php echo $post['pid'];?>, 1);
<?php } } ?>
var aimgfid = 0;
<?php if($_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $_G['thread']['authorid'])) { ?>
aimgfid = <?php echo $_G['fid'];?>;
</script>
<?php 
    }
    if ($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) {
        ?>
<div class="focus patch" id="patch_notice"></div>
<?php 
    }
    echo adshow("footerbanner/wp a_f/1");
    echo adshow("footerbanner/wp a_f/2");
    echo adshow("footerbanner/wp a_f/3");
    echo adshow("float/a_fl/1");
    echo adshow("float/a_fr/2");
    echo adshow("couplebanner/a_fl a_cb/1");
    echo adshow("couplebanner/a_fr a_cb/2");
    echo adshow("cornerbanner/a_cn");
    if (!empty($_G['setting']['pluginhooks']['global_footer'])) {
        echo $_G['setting']['pluginhooks']['global_footer'];
    }
    ?>
        </div>
<div id="ft">
            <div class="wp cl">
<div id="flk" class="y">
<p><?php 
    if (is_array($_G['setting']['footernavs'])) {
        foreach ($_G['setting']['footernavs'] as $nav) {
            if ($nav['available'] && ($nav['type'] && (!$nav['level'] || $nav['level'] == 1 && $_G['uid'] || $nav['level'] == 2 && $_G['adminid'] > 0 || $nav['level'] == 3 && $_G['adminid'] == 1) || !$nav['type'] && ($nav['id'] == 'stat' && $_G['group']['allowstatdata'] || $nav['id'] == 'report' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile'))) {
                echo $nav['code'];
                ?>
<span class="pipe">|</span><?php 
Beispiel #23
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
?>
<br />
<center>
	<?php 
echo adshow('footerbanner//1') . adshow('footerbanner//2') . adshow('footerbanner//3');
?>
	<div id="footer">
		Powered by <strong><a target="_blank" href="http://www.discuz.net">Discuz! <?php 
echo $_G['setting']['version'];
?>
 Archiver</a></strong> &nbsp; &copy 2001-2013 <a target="_blank" href="http://www.comsenz.com">Comsenz Inc.</a>
		<br />
		<br />
	</div>
</center>
</body>
</html>
<?php 
output();
Beispiel #24
0
        ?>
"><?php 
        echo $article['nextarticle']['title'];
        ?>
</a></em><?php 
    }
    ?>
</div>
<?php 
}
?>
</div>

<!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]--><?php 
echo adshow("article/mbm hm/2");
echo adshow("article/mbm hm/3");
if ($article['related']) {
    ?>
<div id="related_article" class="bm">
<div class="bm_h cl">
<h3>相关阅读</h3>
</div>
<div class="bm_c">
<ul class="xl xl2 cl" id="raid_div"><?php 
    if (is_array($article['related'])) {
        foreach ($article['related'] as $raid => $rvalue) {
            ?>
<input type="hidden" value="<?php 
            echo $raid;
            ?>
" />
none<?php 
                    }
                    ?>
">
<?php 
                    echo $subnav;
                    ?>
</ul>
<?php 
                }
            }
        }
    }
    ?>
</div><?php 
    echo adshow("subnavbanner/a_mu");
    if ($_G['setting']['search']) {
        $slist = array();
        if ($_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group') {
            $slist[forumfid] = <<<EOF
<li><a href="javascript:;" rel="curforum" fid="{$_G['fid']}" >本版</a></li>
EOF;
        }
        if ($_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)) {
            $slist[portal] = <<<EOF
<li><a href="javascript:;" rel="article">文章</a></li>
EOF;
        }
        if ($_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)) {
            $slist[forum] = <<<EOF
<li><a href="javascript:;" rel="forum" class="curtype">帖子</a></li>
Beispiel #26
0
}
echo ',' . $_G['setting']['bbname'];
?>
" />
<meta name="generator" content="Discuz! <?php 
echo $_G['setting']['version'];
?>
" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2013 Comsenz Inc." />
<style type="text/css">
	body {font-family: Verdana;FONT-SIZE: 12px;MARGIN: 0;color: #000000;background: #ffffff;}
	img {border:0;}
	li {margin-top: 8px;}
	.page {padding: 4px; border-top: 1px #EEEEEE solid}
	.author {background-color:#EEEEFF; padding: 6px; border-top: 1px #ddddee solid}
	#nav, #content, #end {padding: 8px; border: 1px solid #EEEEEE; clear: both; width: 95%; margin: auto; margin-top: 10px;}
	#header, #footer { margin-top: 20px; }
	#loginform {text-align: center;}
</style>
</head>
<body vlink="#333333" link="#333333">
<center id="header">
<?php 
echo adshow('headerbanner');
?>
<h2><?php 
echo $_G['setting']['bbname'];
?>
's Archiver </h2>
</center>
            ?>
 class="xw1 a"<?php 
        }
        ?>
><a href="forum.php?mod=viewthread&amp;tid=<?php 
        echo $_G['tid'];
        ?>
&amp;extra=<?php 
        echo $_GET['extra'];
        ?>
&amp;stand=0" hidefocus="true">中立</a></li>
</ul>
<?php 
    }
    if ($_G['forum_thread']['replies']) {
        echo adshow("interthread/a_p/{$postcount}");
    }
    ?>
</td>
</tr>
</table>
<?php 
    if (!empty($aimgs[$post['pid']])) {
        ?>
<script type="text/javascript" reload="1">
aimgcount[<?php 
        echo $post['pid'];
        ?>
] = [<?php 
        echo dimplode($aimgs[$post['pid']]);
        ?>
<a href="<?php echo $forumurl;?>" class="xi2">链接到外部地址</a>
<?php } elseif(is_array($forum['lastpost'])) { ?>
<a href="forum.php?mod=redirect&amp;tid=<?php echo $forum['lastpost']['tid'];?>&amp;goto=lastpost#lastpost" class="xi2"><?php echo cutstr($forum['lastpost']['subject'], 30); ?></a> <cite><?php echo $forum['lastpost']['dateline'];?> <?php if($forum['lastpost']['author']) { ?><?php echo $forum['lastpost']['author'];?><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?></cite>
<?php } else { ?>
从未
<?php } } ?>
</div>
</td>
</tr>
<tr class="fl_row">
<?php } } ?>
<?php echo $cat['endrows'];?>
</tr>
</table>
</div>
</div><?php echo adshow("intercat/bm a_c/$cat[fid]");?><?php } if(!empty($collectiondata['data'])) { $forumscount = count($collectiondata['data']);?><?php $forumcolumns = 4;?><?php $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';?><div class="bm bmw <?php if($forumcolumns) { ?> flg<?php } ?> cl">
<div class="bm_h cl">
<span class="o">
<img id="category_-2_img" src="<?php echo IMGDIR;?>/<?php echo $collapse['collapseimg_-2'];?>" title="收起/展开" alt="收起/展开" onclick="toggle_collapse('category_-2');" />
</span>
<h2><a href="forum.php?mod=collection">淘专辑推荐</a></h2>
</div>
<div id="category_-2" class="bm_c" style="<?php echo $collapse['category_-2']; ?>">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr><?php $ctorderid = 0;?><?php if(is_array($collectiondata['data'])) foreach($collectiondata['data'] as $key => $colletion) { if($ctorderid && ($ctorderid % $forumcolumns == 0)) { ?>
</tr>
<?php if($ctorderid < $forumscount) { ?>
<tr class="fl_row">
<?php } } ?>
<td class="fl_g"<?php if($forumcolwidth) { ?> width="<?php echo $forumcolwidth;?>"<?php } ?>>
<div class="fl_icn_g">
<th>
<div class="avatar mbn cl">
<a href="home.php?mod=spacecp&amp;ac=avatar" title="修改头像" id="edit_avt"><span id="edit_avt_tar">修改头像</span><?php echo avatar($_G[uid],middle);?></a>
</div>
<p><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>" target="_blank" class="o xi2">访问我的空间</a></p>
</th>
<td>
<h3 class="xs2">
<span class="y xw0 xs1">已有 <em class="xi1"><?php echo $space['views'];?></em> 人次访问</span>
<a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>"<?php g_color($space[groupid]);?>><?php echo $space['username'];?></a><?php g_icon($space[groupid]);?></h3><?php include template('home/space_status'); ?></td>
</tr>
</table>
<!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
<?php if(!empty($_G['setting']['pluginhooks']['space_home_top'])) echo $_G['setting']['pluginhooks']['space_home_top'];?>

</div><?php echo adshow("feed/bm");?><div class="bm bw0">
<ul class="tb cl">
<li<?php echo $actives['we'];?>><a href="home.php?mod=space&amp;do=home&amp;view=we">好友的动态</a></li>
<li<?php echo $actives['me'];?>><a href="home.php?mod=space&amp;do=home&amp;view=me">我的动态</a></li>
<li<?php echo $actives['all'];?>><a href="home.php?mod=space&amp;do=home&amp;view=all">随便看看</a></li>
<?php if($_G['setting']['my_app_status']) { ?>
<li<?php echo $actives['app'];?>><a href="home.php?mod=space&amp;do=home&amp;view=app">应用动态</a></li>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['space_home_navlink'])) echo $_G['setting']['pluginhooks']['space_home_navlink'];?>
<?php if($_G['setting']['magicstatus'] && $_G['setting']['magics']['thunder']) { ?>
<li class="y"><a id="a_magic_thunder" href="home.php?mod=magic&amp;mid=thunder" onclick="showWindow('magics', this.href, 'get', 0)" style="padding-left: 18px; background: url(<?php echo STATICURL;?>image/magic/thunder.small.gif) no-repeat 0 50%;"><?php echo $_G['setting']['magics']['thunder'];?></a></li>
<?php } ?>
</ul>
<?php } } else { ?>
<div class="bm bw0"><?php $_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&amp;uid=$space[uid]&amp;do=home&amp;view=me\">TA 的近期动态</a>";?><?php include template('home/space_menu'); } if($_GET['view'] == 'all') { ?>
<p class="tbmu">