2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
enforce_login();
|
|
|
|
|
2012-03-28 08:00:20 +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();
|
|
|
|
}
|
|
|
|
|
|
|
|
if(empty($_GET['type']) || $_GET['type'] == 'torrents') {
|
|
|
|
include(SERVER_ROOT.'/sections/top10/torrents.php');
|
|
|
|
} else {
|
|
|
|
switch($_GET['type']) {
|
|
|
|
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;
|
2011-03-28 14:21:28 +00:00
|
|
|
default :
|
|
|
|
error(404);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|