2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
enforce_login();
|
|
|
|
|
2013-04-20 08:01:01 +00:00
|
|
|
if (!check_perms('site_top10')) {
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_header();
|
2011-03-28 14:21:28 +00:00
|
|
|
?>
|
|
|
|
<div class="content_basiccontainer">
|
2012-12-27 08:00:27 +00:00
|
|
|
You do not have access to view this feature.
|
2011-03-28 14:21:28 +00:00
|
|
|
</div>
|
|
|
|
<?
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_footer();
|
2011-03-28 14:21:28 +00:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2013-04-17 08:00:58 +00:00
|
|
|
include(SERVER_ROOT.'/sections/torrents/functions.php'); //Has get_reports($TorrentID);
|
2013-04-20 08:01:01 +00:00
|
|
|
if (empty($_GET['type']) || $_GET['type'] == 'torrents') {
|
2011-03-28 14:21:28 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/torrents.php');
|
|
|
|
} else {
|
2013-05-01 08:00:16 +00:00
|
|
|
switch ($_GET['type']) {
|
2011-03-28 14:21:28 +00:00
|
|
|
case 'users' :
|
|
|
|
include(SERVER_ROOT.'/sections/top10/users.php');
|
|
|
|
break;
|
|
|
|
case 'tags' :
|
|
|
|
include(SERVER_ROOT.'/sections/top10/tags.php');
|
|
|
|
break;
|
|
|
|
case 'history' :
|
|
|
|
include(SERVER_ROOT.'/sections/top10/history.php');
|
|
|
|
break;
|
2012-10-28 08:00:19 +00:00
|
|
|
case 'votes' :
|
2012-10-27 08:00:09 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/votes.php');
|
2012-10-28 08:00:19 +00:00
|
|
|
break;
|
2013-08-28 23:08:41 +00:00
|
|
|
case 'donors' :
|
|
|
|
include(SERVER_ROOT.'/sections/top10/donors.php');
|
|
|
|
break;
|
2013-09-09 08:00:52 +00:00
|
|
|
case 'artists':
|
|
|
|
include(SERVER_ROOT.'/sections/top10/artists.php');
|
|
|
|
break;
|
2011-03-28 14:21:28 +00:00
|
|
|
default :
|
|
|
|
error(404);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|