コード例 #1
0
ファイル: UserTaxonomy.php プロジェクト: Symbiota/Symbiota
 public function deleteUser($utid, $uid, $editorStatus)
 {
     $statusStr = '';
     $profileManager = new ProfileManager();
     $profileManager->setUid($uid);
     $statusStr = $profileManager->deleteUserTaxonomy($utid, $editorStatus);
     return $statusStr;
 }
コード例 #2
0
ファイル: viewprofile.php プロジェクト: Symbiota/Symbiota
     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 {
         $tabIndex = 2;
     }
 }