terminerTache(); break; case 'addGroupes': addGroup(); break; case 'auth': auth(); break; case 'inscription': inscription(); break; case 'addCategorie': addCategorie(); break; case 'ModCategorie': modCategorie(); break; case 'deleteCategorie': deleteCategorie(); break; case 'addTag': addTag(); break; case 'ModTag': modTag(); break; case 'deleteTag': deleteTag(); break; case 'addTache': addTaches();
} } elseif (isset($testcsp)) { if (FALSE == addcsp($newcsp)) { echo getError(0); } else { header("Location:index.php?a=7"); } } break; case 2: // modification $nom = addslashes($_POST["categorie"]); $nivau = addslashes($_POST["niveau"]); $modcsp = addslashes($_POST["csp"]); if (isset($testcat)) { if (FALSE == modCategorie($idcat, $nom)) { echo getError(0); } else { header("Location:index.php?a=7"); } } elseif (isset($testniv)) { if (FALSE == modniveau($idniveau, $nivau)) { echo getError(0); } else { header("Location:index.php?a=7"); } } elseif (isset($testcsp)) { if (FALSE == modcsp($idcsp, $modcsp)) { echo getError(0); } else { header("Location:index.php?a=7");