Ejemplo n.º 1
0
<? require_once("config.php"); ?>
<? require_once(RESACCMAN_BASE."/classes/SecurityGroup.php"); ?>
<? require_once(RESACCMAN_BASE."/classes/Text.php"); ?>
<?

$g = new SecurityGroup();
$g->setName($name);

if ($action == "save") {
    if (strlen($name) > 0) {
        $g->save();
        header("Location: groups.php");
    } else {
        $errMsg = Text::getText("MissingGroupName");
        $buttonCaption = Text::getText("Save");
        include("header.php");
        include("groupEditForm.php");
        include("footer.php");
    }
} else {
    $title = Text::getText("EditGroup");
    $buttonCaption = Text::getText("Save");
    include("header.php");
    include("groupEditForm.php");
    include("footer.php");
}
?>
Ejemplo n.º 2
0
<? require_once("classes/SecurityGroup.php"); ?>
<? require_once("classes/Text.php"); ?>
<?

$g = new SecurityGroup();
$g->setName($_POST['name']);

if ($_POST['action'] == "save") {
    if (strlen($g->getName()) > 0) {
        $g->save();
        header("Location: groups.php");
    } else {
        $errMsg = Text::getText("MissingGroupName");
        $buttonCaption = Text::getText("Save");
        include("header.php");
        include("groupEditForm.php");
        include("footer.php");
    }
} else {
    $title = Text::getText("EditGroup");
    $buttonCaption = Text::getText("Save");
    include("header.php");
    include("groupEditForm.php");
    include("footer.php");
}
?>