Gazelle/sections/top10/index.php

45 lines
969 B
PHP
Raw Normal View History

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']) {
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;
2015-01-28 08:00:26 +00:00
2013-10-01 23:08:42 +00:00
default:
2011-03-28 14:21:28 +00:00
error(404);
break;
}
}
?>