Exemple #1
0
 } elseif ($action == "Change Login") {
     $pwd = '';
     if ($isSelf && isset($_POST["newloginpwd"])) {
         $pwd = $_POST["newloginpwd"];
     }
     if (!$pHandler->changeLogin($_POST["newlogin"], $pwd)) {
         $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;
     }