Gazelle/sections/upload/index.php
2013-04-24 08:00:23 +00:00

17 lines
310 B
PHP

<?
enforce_login();
if (!check_perms('site_upload')) {
error(403);
}
if ($LoggedUser['DisableUpload']) {
error('Your upload privileges have been revoked.');
}
// build the page
if (!empty($_POST['submit'])) {
include('upload_handle.php');
} else {
include(SERVER_ROOT.'/sections/upload/upload.php');
}
?>