misc_ranklist_picture.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. if(!defined('IN_DISCUZ')) {
  3. exit('Access Denied');
  4. }
  5. loadcache('click');
  6. $clicks = empty($_G['cache']['click']['picid'])?array():$_G['cache']['click']['picid'];
  7. $picturelist = '';
  8. $orderby = in_array($_GET['orderby'], array('thisweek', 'thismonth', 'today', 'all')) ? $_GET['orderby'] : '';
  9. $navname = $_G['setting']['navs'][8]['navname'];
  10. switch($_GET['view']) {
  11. case 'hot':
  12. $view = 'hot';
  13. $navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_heat').' - '.$navname;
  14. $metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_heat');
  15. $metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_heat');
  16. break;
  17. case 'sharetimes':
  18. $view = 'sharetimes';
  19. $navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_share'). ' - '.$navname;
  20. $metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_share');
  21. $metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_share');
  22. break;
  23. default:
  24. if($clicks[$_GET['view']]) {
  25. $view = 'click'.$_GET['view'];
  26. $navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']).' - '.$navname;
  27. $metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']);
  28. $metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']);
  29. } else {
  30. $_GET['view'] = 'hot';
  31. $view = 'hot';
  32. }
  33. }
  34. $picturelist = getranklistdata($type, $view, $orderby);
  35. $lastupdate = $_G['lastupdate'];
  36. $nextupdate = $_G['nextupdate'];
  37. include template('diy:ranklist/picture');
  38. ?>