Example #1
0
         $statusStr = $pHandler->getErrorStr();
     }
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {
         $tabIndex = 2;
     }
 } elseif ($action == "Delete Profile") {
     if ($pHandler->deleteProfile($userId, $isSelf)) {
         header("Location: ../index.php");
     } else {
         $statusStr = "Profile deletion failed! Please contact the system administrator";
     }
 } elseif ($action == "Create Checklist") {
     $newClid = $pClManager->createChecklist($_POST);
     header("Location: " . $clientRoot . "/checklists/checklist.php?cl=" . $newClid . "&emode=1");
 } elseif ($action == "delusertaxonomy") {
     $statusStr = $pHandler->deleteUserTaxonomy($_GET['utid']);
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {
         $tabIndex = 2;
     }
 } elseif ($action == "Add Taxonomic Relationship") {
     $statusStr = $pHandler->addUserTaxonomy($_POST['taxon'], $_POST['editorstatus'], $_POST['geographicscope'], $_POST['notes']);
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {
Example #2
0
     }
 } elseif ($action == "Delete Profile") {
     if ($pHandler->deleteProfile($userId, $isSelf)) {
         header("Location: ../index.php");
     } else {
         $statusStr = "Profile deletion failed! Please contact the system administrator";
     }
 } elseif ($action == "Create Checklist") {
     $newClArr = array();
     foreach ($_REQUEST as $k => $v) {
         if (substr($k, 0, 3) == "ncl") {
             $newClArr[substr($k, 3)] = $_REQUEST[$k];
         }
     }
     $newClArr["uid"] = $_REQUEST["userid"];
     $newClid = $pClManager->createChecklist($newClArr);
     header("Location: " . $clientRoot . "/checklists/checklist.php?cl=" . $newClid . "&emode=1");
 } elseif ($action == "delusertaxonomy") {
     $statusStr = $pHandler->deleteUserTaxonomy($_GET['utid']);
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {
         $tabIndex = 2;
     }
 } elseif ($action == "Add Taxonomic Relationship") {
     $statusStr = $pHandler->addUserTaxonomy($_POST['taxon'], $_POST['editorstatus'], $_POST['geographicscope'], $_POST['notes']);
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {