Gazelle/sections/requests/index.php

51 lines
1.2 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
enforce_login();
$RequestTax = 0.1;
2011-03-28 14:21:28 +00:00
// Minimum and default amount of upload to remove from the user when they vote.
// Also change in static/functions/requests.js
2013-04-30 18:18:07 +00:00
$MinimumVote = 20 * 1024 * 1024;
2013-04-30 18:18:07 +00:00
if (!empty($LoggedUser['DisableRequests'])) {
2011-03-28 14:21:28 +00:00
error('Your request privileges have been removed.');
}
2013-04-30 18:18:07 +00:00
if (!isset($_REQUEST['action'])) {
2011-03-28 14:21:28 +00:00
include(SERVER_ROOT.'/sections/requests/requests.php');
} else {
2013-05-01 08:00:16 +00:00
switch ($_REQUEST['action']) {
2011-03-28 14:21:28 +00:00
case 'new':
case 'edit':
include(SERVER_ROOT.'/sections/requests/new_edit.php');
break;
case 'takevote':
2013-10-31 08:00:49 +00:00
include(SERVER_ROOT.'/sections/requests/take_vote.php');
2011-03-28 14:21:28 +00:00
break;
case 'takefill':
2013-10-31 08:00:49 +00:00
include(SERVER_ROOT.'/sections/requests/take_fill.php');
2011-03-28 14:21:28 +00:00
break;
case 'takenew':
case 'takeedit':
2013-10-31 08:00:49 +00:00
include(SERVER_ROOT.'/sections/requests/take_new_edit.php');
2011-03-28 14:21:28 +00:00
break;
case 'delete':
case 'unfill':
include(SERVER_ROOT.'/sections/requests/interim.php');
break;
case 'takeunfill':
2013-10-31 08:00:49 +00:00
include(SERVER_ROOT.'/sections/requests/take_unfill.php');
2011-03-28 14:21:28 +00:00
break;
case 'takedelete':
2013-10-31 08:00:49 +00:00
include(SERVER_ROOT.'/sections/requests/take_delete.php');
2011-03-28 14:21:28 +00:00
break;
case 'view':
case 'viewrequest':
include(SERVER_ROOT.'/sections/requests/request.php');
break;
default:
error(0);
}
}
?>