mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-18 07:03:12 -04:00
25 lines
502 B
PHP
25 lines
502 B
PHP
<?
|
|
enforce_login();
|
|
if (!check_perms('site_upload')) {
|
|
error(403);
|
|
}
|
|
if ($LoggedUser['DisableUpload']) {
|
|
error('Your upload privileges have been revoked.');
|
|
}
|
|
|
|
if (!empty($_GET['action'])) {
|
|
switch($_GET['action']) {
|
|
case 'parse_html':
|
|
include SERVER_ROOT.'/sections/upload/parse_html.php';
|
|
break;
|
|
default:
|
|
error(404);
|
|
}
|
|
}
|
|
elseif (!empty($_POST['submit'])) {
|
|
include(SERVER_ROOT . '/sections/upload/upload_handle.php');
|
|
}
|
|
else {
|
|
include(SERVER_ROOT.'/sections/upload/upload.php');
|
|
}
|