misc_ranklist_forum.php 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: misc_ranklist_forum.php 25889 2011-11-24 09:52:20Z monkey $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $forumsrank = '';
  12. $view = 'threads';
  13. $navname = $_G['setting']['navs'][8]['navname'];
  14. switch($_GET['view']) {
  15. case 'posts':
  16. $gettype = 'post';
  17. break;
  18. case 'thismonth':
  19. $gettype = 'post_30';
  20. break;
  21. case 'today':
  22. $gettype = 'post_24';
  23. break;
  24. case 'threads':
  25. $gettype = 'thread';
  26. break;
  27. default: $_GET['view'] = 'threads';
  28. }
  29. $view = $_GET['view'];
  30. $forumsrank = getranklistdata($type, $view);
  31. $lastupdate = $_G['lastupdate'];
  32. $nextupdate = $_G['nextupdate'];
  33. $navtitle = lang('ranklist/navtitle', 'ranklist_title_forum_'.$gettype).' - '.$navname;
  34. $metakeywords = lang('ranklist/navtitle', 'ranklist_title_forum_'.$gettype);
  35. $metadescription = lang('ranklist/navtitle', 'ranklist_title_forum_'.$gettype);
  36. include template('diy:ranklist/forum');
  37. ?>