diff --git a/upload/source/module/misc/misc_ranklist.php b/upload/source/module/misc/misc_ranklist.php index 47a6aaaf7af7a919d0370142aaa7441c5240931b..c7dd0eddb0e183e1b19a2d037575bba4bcb0047a 100644 --- a/upload/source/module/misc/misc_ranklist.php +++ b/upload/source/module/misc/misc_ranklist.php @@ -124,15 +124,16 @@ function getranklist_activity($num = 20, $view = 'heats', $orderby = 'all') { } function getranklist_picture($num = 20, $view = 'hot', $orderby = 'all') { - $timestamp = TIMESTAMP - 86400; - $dateline = 'p.'.DB::field('dateline', $timestamp, '>='); - + if($orderby == 'thisweek') { $timestamp = TIMESTAMP - 604800; $dateline = 'p.'.DB::field('dateline', $timestamp, '>='); } elseif($orderby == 'thismonth') { $timestamp = TIMESTAMP - 2592000; $dateline = 'p.'.DB::field('dateline', $timestamp, '>='); + } elseif($orderby == 'today') { + $timestamp = TIMESTAMP - 86400; + $dateline = 'p.'.DB::field('dateline', $timestamp, '>='); } $data = array();