154 lines
9.1 KiB
PHP
154 lines
9.1 KiB
PHP
<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
|
|
|
|
{eval
|
|
function tpl_hide_credits_hidden($creditsrequire) {
|
|
global $_G;
|
|
}
|
|
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_hide_credits($creditsrequire, $message) {
|
|
}
|
|
<!--{block return}--><div class="locked">{lang post_hide_credits}</div>
|
|
$message<br /><br />
|
|
<!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_codedisp($code) {
|
|
}
|
|
<!--{block return}--><div class="blockcode"><div><ol><li>$code</ol></div></div><!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_quote() {
|
|
}
|
|
<!--{block return}--><div class="grey quote"><blockquote>{lang e_quote}: \\1</blockquote></div><!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_free() {
|
|
}
|
|
<!--{block return}--><div class="grey quote"><blockquote>\\1</blockquote></div><!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_hide_reply() {
|
|
global $_G;
|
|
}
|
|
<!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
|
|
<!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function tpl_hide_reply_hidden() {
|
|
global $_G;
|
|
}
|
|
<!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function attachlist($attach) {
|
|
global $_G;
|
|
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
|
|
$aidencode = packaids($attach);
|
|
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
|
|
}
|
|
<!--{block return}-->
|
|
<div class="box box_ex2 attach byg_attach">
|
|
<dd>
|
|
<p class="attnm">
|
|
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
|
|
$attach[attachicon]
|
|
<!--{/if}-->
|
|
<!--{if !$attach['price'] || $attach['payed']}-->
|
|
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" id="aid$attach[aid]" class="byg_attach_name">$attach[filename]</a>
|
|
<!--{else}-->
|
|
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" class="byg_attach_name">$attach[filename]</a>
|
|
<!--{/if}-->
|
|
<span class="xg1 vm">($attach[attachsize])</span>
|
|
</p>
|
|
<!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
|
|
<p class="xg1">( <!--{if $attach['readperm']}-->{lang readperm}: $attach[readperm], <!--{/if}-->$attach[dateline]{lang upload}, {lang downloads}: $attach[downloads]<!--{if $attach['price']}-->, {lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}<!--{/if}--><!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->, {lang attachcredits}: $_G[getattachcredits]<!--{/if}--> )</p>
|
|
</dd>
|
|
</div>
|
|
<!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function imagelist($attach) {
|
|
global $_G, $post;
|
|
$fix = count($post['imagelist']) == 1 ? 600 : 600;
|
|
$fixtype = count($post['imagelist']) == 1 ? 'fixnone' : 'fixwr';
|
|
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
|
|
$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? $attach['url'].$attach['attachment'] : '' ;
|
|
$aidencode = packaids($attach);
|
|
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
|
|
$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid'];
|
|
$mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb)) ? getforumimg($attach['aid'], 0, $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height'], 1) : '') : '';
|
|
}
|
|
<!--{block return}-->
|
|
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) && (!$attach['price'] || $attach['payed'])}-->
|
|
<!--{if !$attach['price'] || $attach['payed']}-->
|
|
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
|
|
<li {if $guestviewthumb}style="float:none;margin:10px 0;text-align:center;"{/if}>
|
|
<a {if $guestviewthumb}href="javascript:;" onclick="return landingPrompt();"{else}href="forum.php?mod=viewthread&tid=$attach['tid']&aid=$attach['aid']&from=album&page=$_G['page']"{/if} class="orange"><img id="aimg_$attach['aid']" src="{if $guestviewthumb}$mobileguestviewthumburl{elseif $attach['refcheck']}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach['url']}{$attach['attachment']}{/if}" alt="$attach['imgalt']" title="$attach['imgalt']" {if $guestviewthumb}style="width:{$_G['setting']['guestviewthumb']['width']}px;"{/if} /></a>
|
|
<!--{if $guestviewthumb}-->
|
|
<a href="member.php?mod=logging&action=login" onclick="return landingPrompt();" style="display:block;font-size:.12rem;color:#06c;">{lang guestviewthumb}</a>
|
|
<!--{/if}-->
|
|
</li>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
{eval
|
|
}
|
|
|
|
function attachinpost($attach) {
|
|
global $_G;
|
|
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
|
|
$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? $attach['url'].$attach['attachment'] : '' ;
|
|
$aidencode = packaids($attach);
|
|
$is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G['forum_thread']['archiveid'] : '';
|
|
$guestviewthumb = !empty($_G['setting']['guestviewthumb']['flag']) && !$_G['uid'];
|
|
$mobileguestviewthumburl = $guestviewthumb ? ($attach['attachimg'] && $_G['setting']['showimages'] && (((!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) || ($guestviewthumb)) ? getforumimg($attach['aid'], 0, $_G['setting']['guestviewthumb']['width'], $_G['setting']['guestviewthumb']['height'], 1) : '') : '';
|
|
}
|
|
<!--{block return}-->
|
|
<!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])}-->
|
|
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
|
|
<a {if $guestviewthumb}href="javascript:;" onclick="return landingPrompt();" style="display:block;text-align:center;"{else}href="forum.php?mod=viewthread&tid=$attach['tid']&aid=$attach['aid']&from=album&page=$_G['page']"{/if} class="orange"><img id="aimg_$attach['aid']" src="{if $guestviewthumb}$mobileguestviewthumburl{elseif $attach['refcheck']}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes¬humb=yes{else}{$attach['url']}{$attach['attachment']}{/if}" alt="$attach['imgalt']" title="$attach['imgalt']" {if $guestviewthumb}style="width:{$_G['setting']['guestviewthumb']['width']}px;"{/if} /></a>
|
|
<!--{if $guestviewthumb}-->
|
|
<a href="member.php?mod=logging&action=login" onclick="return landingPrompt();" style="display:block;font-size:.12rem;text-align:center;color:#06c;">{lang guestviewthumb}</a>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
<!--{else}-->
|
|
<div id="attach_$attach[aid]" class="box attach byg_attach">
|
|
<!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
|
|
$attach[attachicon]
|
|
<!--{/if}-->
|
|
<!--{if !$attach['price'] || $attach['payed']}-->
|
|
<a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" class="byg_attach_name">$attach[filename]</a>
|
|
<!--{else}-->
|
|
<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" class="byg_attach_name">$attach[filename]</a>
|
|
<!--{/if}-->
|
|
<em class="xg1 vm">($attach[attachsize])</em>
|
|
<!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
|
|
<p class="xg1">( <!--{if $attach['readperm']}-->{lang readperm}: $attach[readperm], <!--{/if}-->$attach[dateline]{lang upload}, {lang downloads}: $attach[downloads]<!--{if $attach['price']}-->, {lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}<!--{/if}--><!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->, {lang attachcredits}: $_G[getattachcredits]<!--{/if}--> )</p>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{/block}-->
|
|
<!--{eval return $return;}-->
|
|
<!--{eval
|
|
}
|
|
|
|
}-->
|