discuzcode.htm 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {eval
  2. function tpl_hide_credits_hidden($creditsrequire) {
  3. global $_G;
  4. }
  5. <!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
  6. <!--{eval return $return;}-->
  7. {eval
  8. }
  9. function tpl_hide_credits($creditsrequire, $message) {
  10. }
  11. <!--{block return}--><div class="locked">{lang post_hide_credits}</div>
  12. $message<br /><br />
  13. <!--{/block}-->
  14. <!--{eval return $return;}-->
  15. {eval
  16. }
  17. function tpl_codedisp($code) {
  18. }
  19. <!--{block return}--><div class="blockcode"><div><ol><li>$code</ol></div></div><!--{/block}-->
  20. <!--{eval return $return;}-->
  21. {eval
  22. }
  23. function tpl_quote() {
  24. }
  25. <!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
  26. <!--{eval return $return;}-->
  27. {eval
  28. }
  29. function tpl_free() {
  30. }
  31. <!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
  32. <!--{eval return $return;}-->
  33. {eval
  34. }
  35. function tpl_hide_reply() {
  36. global $_G;
  37. }
  38. <!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
  39. <!--{/block}-->
  40. <!--{eval return $return;}-->
  41. {eval
  42. }
  43. function tpl_hide_reply_hidden() {
  44. global $_G;
  45. }
  46. <!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
  47. <!--{eval return $return;}-->
  48. {eval
  49. }
  50. function attachlist($attach) {
  51. global $_G;
  52. $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')));
  53. $aidencode = packaids($attach);
  54. $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  55. }
  56. <!--{block return}-->
  57. <div class="box box_ex2 attach">
  58. <dd>
  59. <p class="attnm">
  60. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  61. $attach[attachicon]
  62. <!--{/if}-->
  63. <!--{if !$attach['price'] || $attach['payed']}-->
  64. <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" id="aid$attach[aid]" target="_blank">$attach[filename]</a>
  65. <!--{else}-->
  66. <a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]">$attach[filename]</a>
  67. <!--{/if}-->
  68. <span class="xg1">($attach[dateline] {lang upload})</span>
  69. </p>
  70. <p class="xg1">$attach[attachsize]<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->, {lang downloads}: $attach[downloads]<!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->, {lang attachcredits}: $_G[getattachcredits]<!--{/if}--></p>
  71. <p>
  72. <!--{if $attach['price']}-->
  73. {lang price}: <strong>$attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
  74. <!--{if !$attach['payed']}-->
  75. &nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]">{lang attachment_buy}</a>]
  76. <!--{/if}-->
  77. <!--{/if}-->
  78. </p>
  79. <!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
  80. </dd>
  81. </div>
  82. <!--{/block}-->
  83. <!--{eval return $return;}-->
  84. {eval
  85. }
  86. function imagelist($attach) {
  87. global $_G;
  88. $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')));
  89. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 200, 200, 'fixnone') : '' ;
  90. $aidencode = packaids($attach);
  91. $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  92. }
  93. <!--{block return}-->
  94. <!--{if $attach['attachimg'] && $_G['setting']['showimages'] && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])}-->
  95. <div class="box box_ex2">
  96. <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" id="aid$attach[aid]" class="xw1" target="_blank">$attach[filename]</a>
  97. <span class="xg1">($attach[dateline] {lang upload})</span>
  98. <p class="xg1">{lang sourceimagesize} $attach[attachsize], {lang downloads}: $attach[downloads]</p>
  99. <p class="mbn">
  100. <!--{if $attach['readperm']}-->{lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
  101. <!--{if $attach['price']}-->{lang price}: <strong>$attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}</strong> &nbsp;[<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]">{lang pay_view}</a>]
  102. <!--{if !$attach['payed']}-->
  103. &nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">{lang attachment_buy}</a>]
  104. <!--{/if}-->
  105. <!--{/if}-->
  106. </p>
  107. <!--{if $attach['description']}--><p class="mbn xg2">{$attach[description]}</p><!--{/if}-->
  108. <!--{if !$attach['price'] || $attach['payed']}-->
  109. <p class="mbn">
  110. <a href="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}"><img id="aimg_$attach[aid]" src="$mobilethumburl" alt="$attach[imgalt]" title="$attach[imgalt]" /></a>
  111. </p>
  112. <!--{/if}-->
  113. </div>
  114. <!--{/if}-->
  115. <!--{/block}-->
  116. <!--{eval return $return;}-->
  117. {eval
  118. }
  119. function attachinpost($attach) {
  120. global $_G;
  121. $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')));
  122. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 200, 200, 'fixnone') : '' ;
  123. $aidencode = packaids($attach);
  124. $is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G[forum_thread][archiveid] : '';
  125. }
  126. <!--{block return}-->
  127. <!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])}-->
  128. <a href="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&nothumb=yes{else}{$attach[url]}$attach[attachment]{/if}"><img id="aimg_$attach[aid]" src="$mobilethumburl" alt="$attach[imgalt]" title="$attach[imgalt]"/></a>
  129. <!--{else}-->
  130. <div id="attach_$attach[aid]" class="box attach mbn" >
  131. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  132. $attach[attachicon]
  133. <!--{/if}-->
  134. <!--{if !$attach['price'] || $attach['payed']}-->
  135. <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
  136. <!--{else}-->
  137. <a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">$attach[filename]</a>
  138. <!--{/if}-->
  139. <em class="xg1">($attach[attachsize])</em>
  140. <em class="xg1"><br />({lang downloads}: $attach[downloads], $attach[dateline] {lang upload})
  141. </em>
  142. <!--{if $attach['price']}-->
  143. <p class="xg1">{lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]}&nbsp;<a href="forum.php?mod=misc&action=viewattachpayments&aid=$attach[aid]">[{lang pay_view}]</a>
  144. <!--{if !$attach['payed']}-->
  145. &nbsp;[<a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">{lang attachment_buy}</a>]
  146. <!--{/if}-->
  147. </p>
  148. <!--{/if}-->
  149. <!--{if !$attach['attachimg'] && $_G['getattachcredits']}--><p>{lang attachcredits}: $_G[getattachcredits]</p><!--{/if}-->
  150. </div>
  151. <!--{/if}-->
  152. <!--{/block}-->
  153. <!--{eval return $return;}-->
  154. <!--{eval
  155. }
  156. }-->