国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1KB

  1. <?php
  2. /**
  3. * @version $Id: guestbook.inc.php 1 10:06 2010-11-10 tianya $
  4. * @package DedeCMS.Site
  5. * @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
  6. * @license http://help.dedecms.com/usersguide/license.html
  7. * @link http://www.dedecms.com
  8. */
  9. require(dirname(__FILE__).'/../../include/common.inc.php');
  10. require_once(DEDEINC."/filter.inc.php");
  11. if(empty($gotopagerank)) $gotopagerank='';
  12. require_once(DEDEINC."/memberlogin.class.php");
  13. $cfg_ml = new MemberLogin(-1);
  14. //设置为 0,表示留言需要审核
  15. //如果设置为 1 ,则留言不需要审核就能显示
  16. if($cfg_feedbackcheck=='Y') $needCheck = 0;
  17. else $needCheck = 1;
  18. //是否是会员或管理员
  19. if($cfg_ml->IsLogin())
  20. {
  21. $g_isadmin = ($cfg_ml->fields['matt'] >= 10);
  22. $g_mid = $cfg_ml->M_ID;
  23. $g_name = $cfg_ml->M_UserName;
  24. }
  25. else
  26. {
  27. $g_isadmin = FALSE;
  28. $g_mid = 0;
  29. $g_name = '';
  30. }
  31. function GetIsCheck($ischeck,$id)
  32. {
  33. if($ischeck==0) return "<br><a href='guestbook.php?action=admin&job=check&id=$id' style='color:red'>[审核]</a>";
  34. else return '';
  35. }