header('Location: collprofiles.php?collid=' . $newCollid); } else { $statusStr = $collid; } } } elseif ($action == 'Link Address') { if (!$collManager->linkAddress($_POST['iid'])) { $statusStr = $collManager->getErrorStr(); } } elseif (array_key_exists('removeiid', $_GET)) { if (!$collManager->removeAddress($_GET['removeiid'])) { $statusStr = $collManager->getErrorStr(); } } } $collData = $collManager->getCollectionData(true); ?> <html> <head> <title><?php echo $defaultTitle . " " . ($collid ? $collData["collectionname"] : ""); ?> Collection Profiles</title> <link href="../../css/base.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link href="../../css/main.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" />
include_once '../../config/symbini.php'; include_once $SERVER_ROOT . '/classes/CollectionProfileManager.php'; header("Content-Type: text/html; charset=" . $charset); $collid = array_key_exists("collid", $_REQUEST) && is_numeric($_REQUEST["collid"]) ? $_REQUEST["collid"] : 0; $action = array_key_exists("action", $_REQUEST) ? htmlspecialchars($_REQUEST["action"]) : ""; $eMode = array_key_exists('emode', $_REQUEST) ? htmlspecialchars($_REQUEST['emode']) : 0; if ($eMode && !$SYMB_UID) { header('Location: ../../profile/index.php?refurl=../collections/misc/collprofiles.php?' . $_SERVER['QUERY_STRING']); } $countryDist = array_key_exists('country', $_REQUEST) ? htmlspecialchars($_REQUEST['country']) : ''; $stateDist = array_key_exists('state', $_REQUEST) ? htmlspecialchars($_REQUEST['state']) : ''; $collManager = new CollectionProfileManager(); if (!$collManager->setCollid($collid)) { $collid = ''; } $collData = $collManager->getCollectionData(); $editCode = 0; //0 = no permissions; 1 = CollEditor; 2 = CollAdmin; 3 = SuperAdmin if ($SYMB_UID) { if ($IS_ADMIN) { $editCode = 3; } else { if ($collid) { if (array_key_exists("CollAdmin", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollAdmin"])) { $editCode = 2; } elseif (array_key_exists("CollEditor", $USER_RIGHTS) && in_array($collid, $USER_RIGHTS["CollEditor"])) { $editCode = 1; } } } }