mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 13:13:03 -04:00
27 lines
856 B
PHP
27 lines
856 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if ($Viewer->disableRequests()) {
|
|
Error403::error('Your request privileges have been removed.');
|
|
}
|
|
|
|
require_once match ($_REQUEST['action'] ?? null) {
|
|
'delete', 'unfill' => 'interim.php',
|
|
'edit-bounty' => 'edit_bounty.php',
|
|
'edit' => 'edit.php',
|
|
'takeedit' => 'edit_handle.php',
|
|
'new' => 'new.php',
|
|
'takenew' => 'new_handle.php',
|
|
'takebounty' => 'bounty_handle.php',
|
|
'takedelete' => 'delete_handle.php',
|
|
'takefill' => 'fill_handle.php',
|
|
'takeunfill' => 'unfill_handle.php',
|
|
'takevote' => 'vote_handle.php',
|
|
'view', 'viewrequest' => 'request.php',
|
|
default => 'requests.php',
|
|
};
|