Esempio n. 1
0
}
menu($_GET['h']);
$h = $_GET['h'];
$funcToCall = null;
$MailingList = new MailingList();
$funcToCall = "showTableGroups";
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    if (isset($_GET['users'])) {
        if (isset($_GET['dzest']) && isset($_GET['uid'])) {
            $MailingList->deleteUser($_GET['uid']);
        }
        $MailingList->getUsers();
        $funcToCall = "showTableUsers";
    } elseif (isset($_GET['groups'])) {
        if (isset($_GET['dzest']) && isset($_GET['gid'])) {
            $MailingList->deleteGroup($_GET['gid']);
        }
        $MailingList->getGroups();
        $funcToCall = "showTableGroups";
    } elseif (isset($_GET['uid'])) {
        $MailingList->getUser($_GET['uid']);
        $funcToCall = "showFormUser";
    } elseif (isset($_GET['gid'])) {
        $MailingList->getUsersAndGroup($_GET['gid']);
        $funcToCall = "showFormGroup";
    } else {
        $MailingList->getGroups();
        $funcToCall = "showTableGroups";
    }
} elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if (isset($_POST['action'])) {