2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
enforce_login();
|
|
|
|
|
2013-04-20 08:01:01 +00:00
|
|
|
if (!check_perms('site_top10')) {
|
2014-06-19 16:52:36 +00:00
|
|
|
error(403);
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
|
|
|
|
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']) {
|
2013-10-01 23:08:42 +00:00
|
|
|
case 'users':
|
2011-03-28 14:21:28 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/users.php');
|
|
|
|
break;
|
2013-10-01 23:08:42 +00:00
|
|
|
case 'tags':
|
2011-03-28 14:21:28 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/tags.php');
|
|
|
|
break;
|
2013-10-01 23:08:42 +00:00
|
|
|
case 'history':
|
2011-03-28 14:21:28 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/history.php');
|
|
|
|
break;
|
2013-10-01 23:08:42 +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-10-01 23:08:42 +00:00
|
|
|
case 'donors':
|
2013-08-28 23:08:41 +00:00
|
|
|
include(SERVER_ROOT.'/sections/top10/donors.php');
|
|
|
|
break;
|
2013-10-09 08:01:03 +00:00
|
|
|
case 'lastfm':
|
|
|
|
include(SERVER_ROOT.'/sections/top10/lastfm.php');
|
2013-09-09 08:00:52 +00:00
|
|
|
break;
|
2013-10-01 23:08:42 +00:00
|
|
|
default:
|
2011-03-28 14:21:28 +00:00
|
|
|
error(404);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|