$FILEUPLOAD = 3;
$STOREDPROCEDURE = 4;
$SCRIPTUPLOAD = 5;
$DWCAUPLOAD = 6;
$SKELETAL = 7;
$duManager = new SpecUpload();
$duManager->setCollId($collid);
$duManager->setUspid($uspid);
$statusStr = '';
$isEditor = 0;
if ($IS_ADMIN || array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollAdmin"])) {
    $isEditor = 1;
}
if ($isEditor) {
    if ($action == "Save Edits") {
        $statusStr = $duManager->editUploadProfile();
        $action = "";
    } elseif ($action == "Create Profile") {
        $statusStr = $duManager->addUploadProfile();
        $action = "";
    } elseif ($action == "Delete Profile") {
        $statusStr = $duManager->deleteUploadProfile($uspid);
        $action = "";
    }
}
$duManager->readUploadParameters();
?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php