Gazelle/sections/upload/index.php

17 lines
310 B
PHP
Raw Permalink Normal View History

2011-03-28 14:21:28 +00:00
<?
enforce_login();
2013-04-24 08:00:23 +00:00
if (!check_perms('site_upload')) {
error(403);
}
if ($LoggedUser['DisableUpload']) {
2011-03-28 14:21:28 +00:00
error('Your upload privileges have been revoked.');
}
2013-04-24 08:00:23 +00:00
// build the page
2011-03-28 14:21:28 +00:00
2013-04-24 08:00:23 +00:00
if (!empty($_POST['submit'])) {
2011-03-28 14:21:28 +00:00
include('upload_handle.php');
} else {
include(SERVER_ROOT.'/sections/upload/upload.php');
}
?>