misc_ranklist_activity.php 955 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. if(!defined('IN_DISCUZ')) {
  3. exit('Access Denied');
  4. }
  5. $activitylist = '';
  6. $orderby = in_array($_GET['orderby'], array('thisweek', 'thismonth', 'today', 'all')) ? $_GET['orderby'] : '';
  7. $navname = $_G['setting']['navs'][8]['navname'];
  8. switch($_GET['view']) {
  9. case 'heats':
  10. $gettype = 'heat';
  11. break;
  12. case 'sharetimes':
  13. $gettype = 'share';
  14. break;
  15. case 'favtimes':
  16. $gettype = 'favorite';
  17. break;
  18. default: $_GET['view'] = 'heats';
  19. }
  20. $view = $_GET['view'];
  21. $dateline = !empty($before) ? TIMESTAMP - $before : 0;
  22. $activitylist = getranklistdata($type, $view, $orderby);
  23. $lastupdate = $_G['lastupdate'];
  24. $nextupdate = $_G['nextupdate'];
  25. $navtitle = lang('ranklist/navtitle', 'ranklist_title_activity_'.$gettype).' - '.$navname;
  26. $metakeywords = lang('ranklist/navtitle', 'ranklist_title_activity_'.$gettype);
  27. $metadescription = lang('ranklist/navtitle', 'ranklist_title_activity_'.$gettype);
  28. include template('diy:ranklist/activity');
  29. ?>