学问文库

 找回密码
 免费注册

快捷登录

QQ登录

只需一步,快速开始

discuz模板中执行php代码示例

[复制链接]
发表于 2022-11-6 17:01:48 | 显示全部楼层 |阅读模式
  1. <!--{eval}-->
  2. <!--
  3. function tpl_hide_credits_hidden($creditsrequire) {
  4.         global $_G;
  5. -->
  6. <!--{/eval}-->
  7. <!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_credits_hidden}</div><!--{/block}-->
  8. <!--{eval}-->
  9. <!--
  10.         return $return;
  11. }

  12. function tpl_hide_credits($creditsrequire, $message) {
  13. -->
  14. <!--{/eval}-->
  15. <!--{block return}--><div class="locked">{lang post_hide_credits}</div>
  16. $message<br /><br />
  17. <!--{/block}-->
  18. <!--{eval}-->
  19. <!--
  20.         return $return;
  21. }

  22. function tpl_codedisp($code) {
  23.         $randomid = 'code_'.random(3);
  24. -->
  25. <!--{/eval}-->
  26. <!--{block return}--><div class="blockcode"><div id="$randomid"><ol><li>$code</ol></div><em onclick="copycode($('$randomid'));">{lang discuzcode_copyclipboard}</em></div><!--{/block}-->
  27. <!--{eval}-->
  28. <!--
  29.         return $return;
  30. }

  31. function tpl_quote() {
  32. -->
  33. <!--{/eval}-->
  34. <!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
  35. <!--{eval}-->
  36. <!--
  37.         return $return;
  38. }

  39. function tpl_free() {
  40. -->
  41. <!--{/eval}-->
  42. <!--{block return}--><div class="quote"><blockquote>\\1</blockquote></div><!--{/block}-->
  43. <!--{eval}-->
  44. <!--
  45.         return $return;
  46. }

  47. function tpl_hide_reply() {
  48.         global $_G;
  49. -->
  50. <!--{/eval}-->
  51. <!--{block return}--><div class="showhide"><h4>{lang post_hide}</h4>\\1</div>
  52. <!--{/block}-->
  53. <!--{eval}-->
  54. <!--
  55.         return $return;
  56. }

  57. function tpl_hide_reply_hidden() {
  58.         global $_G;
  59. -->
  60. <!--{/eval}-->
  61. <!--{block return}--><div class="locked"><!--{if $_G[uid]}-->{$_G[username]}<!--{else}-->{lang guest}<!--{/if}-->{lang post_hide_reply_hidden}</div><!--{/block}-->
  62. <!--{eval}-->
  63. <!--
  64.         return $return;
  65. }

  66. function attachlist($attach) {
  67.         global $_G;
  68.         $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')));
  69.         $aidencode = packaids($attach);
  70.         $widthcode = attachwidth($attach['width']);
  71.         $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  72.         $pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]] : '';
  73. -->
  74. <!--{/eval}-->
复制代码


您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|手机版|小黑屋|网站声明|学问文库 ( 冀ICP备2021002572号 )|网站地图

GMT+8, 2023-1-31 22:21 , Processed in 0.022468 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

文档搜索 客服微信 分享有奖 快速回复 返回顶部 返回列表