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':
include(SERVER_ROOT.'/sections/requests/takevote.php');
break;
case 'takefill':
include(SERVER_ROOT.'/sections/requests/takefill.php');
break;
case 'takenew':
case 'takeedit':
include(SERVER_ROOT.'/sections/requests/takenew_edit.php');
break;
case 'delete':
case 'unfill':
include(SERVER_ROOT.'/sections/requests/interim.php');
break;
case 'takeunfill':
include(SERVER_ROOT.'/sections/requests/takeunfill.php');
break;
case 'takedelete':
include(SERVER_ROOT.'/sections/requests/takedelete.php');
break;
case 'view':
case 'viewrequest':
include(SERVER_ROOT.'/sections/requests/request.php');
break;
default:
error(0);
}
}
?>