discuzcode.htm 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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="grey quote"><blockquote>{lang e_quote}: \\1</blockquote></div><!--{/block}-->
  26. <!--{eval return $return;}-->
  27. {eval
  28. }
  29. function tpl_free() {
  30. }
  31. <!--{block return}--><div class="grey 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. <!--{if !$attach['price'] || $attach['payed']}-->
  58. <div class="box box_ex2 attach">
  59. <dd>
  60. <p class="attnm">
  61. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  62. $attach[attachicon]
  63. <!--{/if}-->
  64. <!--{if !$attach['price'] || $attach['payed']}-->
  65. <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" id="aid$attach[aid]" target="_blank">$attach[filename]</a>
  66. <!--{else}-->
  67. <a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]">$attach[filename]</a>
  68. <!--{/if}-->
  69. <span class="xg1">($attach[dateline] {lang upload})</span>
  70. </p>
  71. <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>
  72. <!--{if $attach['description']}--><p class="xg2">{$attach[description]}</p><!--{/if}-->
  73. </dd>
  74. </div>
  75. <!--{/if}-->
  76. <!--{/block}-->
  77. <!--{eval return $return;}-->
  78. {eval
  79. }
  80. function imagelist($attach) {
  81. global $_G, $post;
  82. $fix = count($post[imagelist]) == 1 ? 140 : 83;
  83. $fixtype = count($post[imagelist]) == 1 ? 'fixnone' : 'fixwr';
  84. $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')));
  85. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, $fix, $fix, $fixtype) : '' ;
  86. $aidencode = packaids($attach);
  87. $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  88. }
  89. <!--{block return}-->
  90. <!--{if $attach['attachimg'] && $_G['setting']['showimages'] && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) && (!$attach['price'] || $attach['payed'])}-->
  91. <!--{if !$attach['price'] || $attach['payed']}-->
  92. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  93. <li><a href="forum.php?mod=viewthread&tid=$attach[tid]&aid=$attach[aid]&from=album&page=$_G[page]" class="orange"><img id="aimg_$attach[aid]" src="$mobilethumburl" alt="$attach[imgalt]" title="$attach[imgalt]" /></a>
  94. </li>
  95. <!--{/if}-->
  96. <!--{/if}-->
  97. <!--{/if}-->
  98. <!--{/block}-->
  99. <!--{eval return $return;}-->
  100. {eval
  101. }
  102. function attachinpost($attach) {
  103. global $_G;
  104. $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')));
  105. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 140, 140, 'fixnone') : '' ;
  106. $aidencode = packaids($attach);
  107. $is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G[forum_thread][archiveid] : '';
  108. }
  109. <!--{block return}-->
  110. <!--{if $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])}-->
  111. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  112. <a href="forum.php?mod=viewthread&tid=$attach[tid]&aid=$attach[aid]&from=album&page=$_G[page]" class="orange"><img id="aimg_$attach[aid]" src="$mobilethumburl" alt="$attach[imgalt]" title="$attach[imgalt]" /></a>
  113. <!--{/if}-->
  114. <!--{else}-->
  115. <!--{if !$attach['price'] || $attach['payed']}-->
  116. <div id="attach_$attach[aid]" class="box attach mbn" >
  117. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  118. $attach[attachicon]
  119. <!--{/if}-->
  120. <!--{if !$attach['price'] || $attach['payed']}-->
  121. <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode" target="_blank">$attach[filename]</a>
  122. <!--{else}-->
  123. <a href="forum.php?mod=misc&action=attachpay&aid=$attach[aid]&tid=$attach[tid]" target="_blank">$attach[filename]</a>
  124. <!--{/if}-->
  125. <em class="xg1">($attach[attachsize])</em>
  126. <em class="xg1"><br />({lang downloads}: $attach[downloads], $attach[dateline] {lang upload})
  127. </em>
  128. <!--{if !$attach['attachimg'] && $_G['getattachcredits']}--><p>{lang attachcredits}: $_G[getattachcredits]</p><!--{/if}-->
  129. </div>
  130. <!--{/if}-->
  131. <!--{/if}-->
  132. <!--{/block}-->
  133. <!--{eval return $return;}-->
  134. <!--{eval
  135. }
  136. }-->