space_wall.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: space_wall.php 29522 2012-04-17 09:39:32Z chenmengshu $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $perpage = 20;
  12. $perpage = mob_perpage($perpage);
  13. $page = empty($_GET['page'])?1:intval($_GET['page']);
  14. if($page<1) $page=1;
  15. $start = ($page-1)*$perpage;
  16. ckstart($start, $perpage);
  17. $theurl = "home.php?mod=space&uid=$space[uid]&do=$do";
  18. $diymode = 1;
  19. $cid = empty($_GET['cid'])?0:intval($_GET['cid']);
  20. $list = array();
  21. $count = C::t('home_comment')->count_by_id_idtype($space['uid'], 'uid', $cid);
  22. if($count) {
  23. $query = C::t('home_comment')->fetch_all_by_id_idtype($space['uid'], 'uid', $start, $perpage, $cid, 'DESC');
  24. foreach($query as $value) {
  25. $list[] = $value;
  26. }
  27. }
  28. $multi = multi($count, $perpage, $page, $theurl);
  29. $navtitle = lang('space', 'sb_wall', array('who' => $space['username']));
  30. $metakeywords = lang('space', 'sb_wall', array('who' => $space['username']));
  31. $metadescription = lang('space', 'sb_wall', array('who' => $space['username']));
  32. dsetcookie('home_diymode', 1);
  33. include_once template("home/space_wall");
  34. ?>