public function addUser($uid, $taxa, $editorStatus, $geographicScope, $notes) { $statusStr = ''; $profileManager = new ProfileManager(); $profileManager->setUid($uid); $statusStr = $profileManager->addUserTaxonomy($taxa, $editorStatus, $geographicScope, $notes); return $statusStr; }
<?php include_once '../config/symbini.php'; include_once $serverRoot . '/classes/ProfileManager.php'; header("Content-Type: text/html; charset=" . $charset); $collId = $_REQUEST["collid"]; $action = array_key_exists("formsubmit", $_REQUEST) ? $_REQUEST["formsubmit"] : ''; $cSet = array_key_exists("cset", $_REQUEST) ? $_REQUEST["cset"] : 'utf8'; $zipFile = array_key_exists("zipfile", $_REQUEST) ? $_REQUEST["zipfile"] : 0; $dlManager = new ProfileManager(); $dlManager->setUid($symbUid); $editable = 0; if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collId, $userRights["CollAdmin"]) || array_key_exists("CollEditor", $userRights) && in_array($collId, $userRights["CollEditor"])) { $editable = 1; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?> "> <meta http-equiv="X-Frame-Options" content="deny"> <title>Personal Specimen Backup</title> <link href="../css/base.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link href="../css/main.css?<?php echo $CSS_VERSION;
<?php include_once '../config/symbini.php'; include_once $serverRoot . '/classes/ProfileManager.php'; header("Content-Type: text/html; charset=" . $charset); $userId = $_REQUEST["userid"]; //Sanitation if (!is_numeric($userId)) { $userId = 0; } $pHandler = new ProfileManager(); $pHandler->setUid($userId); $person = $pHandler->getPerson(); $isSelf = true; if ($userId != $SYMB_UID) { $isSelf = false; } ?> <div style="padding:15px;"> <div> <div> <b><u>Profile Details</u></b> </div> <div style="margin:20px;"> <?php echo '<div>' . $person->getFirstName() . ' ' . $person->getLastName() . '</div>'; if ($person->getTitle()) { echo '<div>' . $person->getTitle() . '</div>'; } if ($person->getInstitution()) { echo '<div>' . $person->getInstitution() . '</div>';
<?php include_once '../config/symbini.php'; include_once $serverRoot . '/classes/ProfileManager.php'; header("Content-Type: text/html; charset=" . $charset); $collId = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0; $formSubmit = array_key_exists("formsubmit", $_REQUEST) ? $_REQUEST["formsubmit"] : ""; $specHandler = new ProfileManager(); $collArr = array(); if ($symbUid) { $specHandler->setUid($symbUid); $collArr = $specHandler->getPersonalCollectionArr(); } $statusStr = ''; ?> <div style="margin:10px;"> <?php if ($symbUid) { //Collection is defined and User is logged-in and have permissions if ($statusStr) { ?> <hr/> <div style="margin:15px;color:red;"> <?php echo $statusStr; ?> </div> <hr/> <?php } if (array_key_exists('observation', $collArr)) {
<?php include_once '../config/symbini.php'; include_once $serverRoot . '/classes/ProfileManager.php'; header("Content-Type: text/html; charset=" . $charset); $userId = $_REQUEST['userid']; $action = array_key_exists('action', $_REQUEST) ? $_REQUEST['action'] : ''; //Sanitation if (!is_numeric($userId)) { $userId = 0; } if ($action && !preg_match('/^[a-zA-Z0-9\\s_]+$/', $action)) { $action = ''; } $profileHandler = new ProfileManager(); $profileHandler->setUid($SYMB_UID); ?> <div style="margin:10px;"> <?php if ($SYMB_UID) { if ($action == 'showmissingids') { $profileHandler->echoSpecimensLackingIdent(); } else { $profileHandler->echoSpecimensPendingIdent(); } } ?> <div style="margin:25px 15px;"> <?php if ($userId) {
<li> <a href="#occdiv" style="margin:0px 20px 0px 20px;"> <?php if ($occId) { echo 'Occurrence Data'; } else { echo '<span style="color:red;">New Occurrence Record</span>'; } ?> </a> </li> <?php if ($occId && $isEditor) { // Get symbiota user email as the annotator email (for fp) $pHandler = new ProfileManager(); $pHandler->setUid($symbUid); $person = $pHandler->getPerson(); $userEmail = $person ? $person->getEmail() : ''; $anchorVars = 'occid=' . $occId . '&occindex=' . $occIndex . '&csmode=' . $crowdSourceMode . '&collid=' . $collId; $detVars = 'identby=' . urlencode($occArr['identifiedby']) . '&dateident=' . urlencode($occArr['dateidentified']) . '&sciname=' . urlencode($occArr['sciname']) . '&em=' . $isEditor . '&annotatorname=' . urlencode($userDisplayName) . '&annotatoremail=' . urlencode($userEmail) . (isset($collMap['collectioncode']) ? '&collectioncode=' . urlencode($collMap['collectioncode']) : '') . (isset($collMap['institutioncode']) ? '&institutioncode=' . urlencode($collMap['institutioncode']) : '') . '&catalognumber=' . urlencode($occArr['catalognumber']); ?> <li id="detTab"> <a href="includes/determinationtab.php?<?php echo $anchorVars . '&' . $detVars; ?> " style="margin:0px 20px 0px 20px;">Determination History</a> </li> <?php if (isset($fpEnabled) && $fpEnabled) { // FP Annotations tab
<?php include_once '../config/symbini.php'; include_once $SERVER_ROOT . '/classes/ProfileManager.php'; header("Content-Type: text/html; charset=" . $CHARSET); $collId = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0; $formSubmit = array_key_exists("formsubmit", $_REQUEST) ? $_REQUEST["formsubmit"] : ""; $specHandler = new ProfileManager(); $collArr = array(); if ($SYMB_UID) { $specHandler->setUid($SYMB_UID); $collArr = $specHandler->getPersonalCollectionArr(); } $statusStr = ''; ?> <div style="margin:10px;"> <?php if ($SYMB_UID) { //Collection is defined and User is logged-in and have permissions if ($statusStr) { ?> <hr/> <div style="margin:15px;color:red;"> <?php echo $statusStr; ?> </div> <hr/> <?php } $genArr = array();