DiscuzX/upload/source/include/misc/misc_ranklist_picture.php

44 lines
1.5 KiB
PHP

<?php
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
loadcache('click');
$clicks = empty($_G['cache']['click']['picid'])?array():$_G['cache']['click']['picid'];
$picturelist = '';
$orderby = in_array($_GET['orderby'], array('thisweek', 'thismonth', 'today', 'all')) ? $_GET['orderby'] : '';
$navname = $_G['setting']['navs'][8]['navname'];
switch($_GET['view']) {
case 'hot':
$view = 'hot';
$navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_heat').' - '.$navname;
$metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_heat');
$metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_heat');
break;
case 'sharetimes':
$view = 'sharetimes';
$navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_share'). ' - '.$navname;
$metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_share');
$metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_share');
break;
default:
if($clicks[$_GET['view']]) {
$view = 'click'.$_GET['view'];
$navtitle = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']).' - '.$navname;
$metakeywords = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']);
$metadescription = lang('ranklist/navtitle', 'ranklist_title_picture_'.$_GET['view']);
} else {
$_GET['view'] = 'hot';
$view = 'hot';
}
}
$picturelist = getranklistdata($type, $view, $orderby);
$lastupdate = $_G['lastupdate'];
$nextupdate = $_G['nextupdate'];
include template('diy:ranklist/picture');
?>