Gazelle/sections/comments/index.php

47 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2013-08-28 23:08:41 +00:00
<?
2011-03-28 14:21:28 +00:00
enforce_login();
2013-08-28 23:08:41 +00:00
// fix old links
if ($_REQUEST['action'] == 'artists') {
$_REQUEST['action'] = 'artist';
} elseif ($_REQUEST['action'] == 'my_torrents') {
$_REQUEST['action'] = 'torrents';
$_REQUEST['type'] = 'uploaded';
2013-05-01 08:00:16 +00:00
}
2012-10-27 08:00:09 +00:00
2013-08-28 23:08:41 +00:00
$Action = '';
if (!empty($_REQUEST['action'])) {
$Action = $_REQUEST['action'];
2011-03-28 14:21:28 +00:00
}
2013-08-28 23:08:41 +00:00
switch ($Action) {
case 'take_post':
require SERVER_ROOT . '/sections/comments/take_post.php';
2013-03-10 08:00:41 +00:00
break;
2013-08-28 23:08:41 +00:00
case 'take_edit':
require SERVER_ROOT . '/sections/comments/take_edit.php';
2013-03-10 08:00:41 +00:00
break;
2013-08-28 23:08:41 +00:00
case 'take_delete':
require SERVER_ROOT . '/sections/comments/take_delete.php';
break;
case 'warn':
require SERVER_ROOT . '/sections/comments/warn.php';
break;
case 'take_warn':
require SERVER_ROOT . '/sections/comments/take_warn.php';
2013-06-07 08:00:54 +00:00
break;
2013-08-28 23:08:41 +00:00
case 'get':
require SERVER_ROOT . '/sections/comments/get.php';
break;
case 'jump':
require SERVER_ROOT . '/sections/comments/jump.php';
break;
case 'artist':
case 'collages':
case 'requests':
2013-03-10 08:00:41 +00:00
case 'torrents':
default:
2013-08-28 23:08:41 +00:00
require SERVER_ROOT . '/sections/comments/comments.php';
2013-03-10 08:00:41 +00:00
break;
2011-03-28 14:21:28 +00:00
}