if (!$SYMB_UID) { header('Location: ../../profile/index.php?refurl=' . $CLIENT_ROOT . '/collections/specprocessor/index.php?' . $_SERVER['QUERY_STRING']); } $action = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : ''; $collId = array_key_exists('collid', $_REQUEST) ? $_REQUEST['collid'] : 0; $spprId = array_key_exists('spprid', $_REQUEST) ? $_REQUEST['spprid'] : 0; $specManager = new SpecProcessorManager(); $specManager->setCollId($collId); $editable = false; if ($IS_ADMIN || array_key_exists("CollAdmin", $userRights) && in_array($collId, $userRights["CollAdmin"])) { $editable = true; } $specProjects = array(); if (!$spprId && $action != 'addmode') { //If there is one image loading profile, and only one, linked to the collection, pull that up as the default project $specProjects = $specManager->getProjects(); if (count($specProjects) == 1) { $arrayKeys = array_keys($specProjects); $spprId = array_shift($arrayKeys); } } if ($spprId) { $specManager->setProjVariables($spprId); } ?> <html> <head> <title>Image Processor</title> <link href="<?php echo $CLIENT_ROOT; ?>