国内流行的内容管理系统(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.

31 lines
1.3KB

  1. <?php
  2. if (!defined('DEDEINC')) exit ('dedebiz');
  3. /**
  4. * 动态模板memberlist标签
  5. *
  6. * @version $id:plus_memberlist.php 13:58 2010年7月5日 tianya $
  7. * @package DedeBIZ.Tpllib
  8. * @copyright Copyright (c) 2022 DedeBIZ.COM
  9. * @license GNU GPL v2 (https://www.dedebiz.com/license)
  10. * @link https://www.dedebiz.com
  11. */
  12. function plus_memberlist(&$atts, &$refObj, &$fields)
  13. {
  14. global $dsql, $_vars;
  15. $attlist = "row=6,iscommend=0,orderby=logintime,signlen=50";
  16. FillAtts($atts, $attlist);
  17. FillFields($atts, $fields, $refObj);
  18. extract($atts, EXTR_OVERWRITE);
  19. $rearray = array();
  20. $wheresql = ' WHERE mb.spacesta > -1 AND mb.matt != 10';
  21. if ($iscommend > 0) $wheresql .= " AND mb.matt='$iscommend' ";
  22. $sql = "SELECT mb.*,ms.spacename,ms.sign FROM `#@__member` mb LEFT JOIN `#@__member_space` ms ON ms.mid = mb.mid $wheresql ORDER BY mb.{$orderby} DESC LIMIT 0,$row ";
  23. $dsql->Execute('mb', $sql);
  24. while ($row = $dsql->GetArray('mb')) {
  25. $row['userurl'] = $row['spaceurl'] = $GLOBALS['cfg_basehost'].'/user/index.php?uid='.$row['userid'];
  26. $row['face'] = empty($row['face'])? $GLOBALS['cfg_mainsite'].'/static/web/img/admin.png' : $row['face'];
  27. $rearray[] = $row;
  28. }
  29. return $rearray;
  30. }
  31. ?>