Beispiel #1
0
if (!$group_id) {
    exit_no_group();
}
$Group =& group_get_object($group_id);
if (!$Group || !is_object($Group) || $Group->isError()) {
    exit_no_group();
}
$perm =& $Group->getPermission(session_get_user());
if (!$perm || !is_object($perm) || $perm->isError() || !$perm->isAdmin()) {
    exit_permission_denied();
}
$ml = new MailingList($Group, getIntFromGet('group_list_id'));
if (getStringFromPost('submit')) {
    $sure = getStringFromPost('sure');
    $really_sure = getStringFromPost('really_sure');
    if (!$ml->delete($sure, $really_sure)) {
        exit_error('Error', $ml->getErrorMessage());
    } else {
        header("Location: index.php?group_id={$group_id}&feedback=DELETED");
    }
}
mail_header(array('title' => _('Permanently Delete List')));
?>
<h3><?php 
echo $ml->getName();
?>
</h3>
<p>
<form method="post" action="<?php 
echo getStringFromServer('PHP_SELF');
?>