} else { $output .= ' <h1>' . $lang_realm['realm_data'] . '</h1>'; } $output .= ' </div>'; // $_GET and SECURE $action = isset($_GET['action']) ? $_GET['action'] : NULL; // define functions to be called by actions if ('edit_realm' === $action) { edit_realm($sqlr); } elseif ('doedit_realm' === $action) { doedit_realm($sqlr); } elseif ('del_realm' === $action) { del_realm($sqlr); } elseif ('dodel_realm' === $action) { dodel_realm($sqlr); } elseif ('add_realm' === $action) { add_realm($sqlr); } elseif ('set_def_realm' === $action) { set_def_realm($sqlr); } else { show_realm($sqlr); } // close whats not needed anymore unset($err); unset($action); unset($action_permission); unset($lang_realm); // page footer require_once 'footer.php';
$output .= ' <h1><span class="error">' . lang("realm", "update_executed") . '</span></h1>'; } elseif ($err == 4) { $output .= ' <h1><span class="error">' . lang("realm", "update_err") . '</span></h1>'; } else { $output .= ' <h1>' . lang("realm", "realm_data") . '</h1>'; } unset($err); $output .= ' </div>'; $action = isset($_GET["action"]) ? $_GET["action"] : NULL; if ($action == "edit_realm") { edit_realm(); } elseif ($action == "doedit_realm") { doedit_realm(); } elseif ($action == "del_realm") { del_realm(); } elseif ($action == "dodel_realm") { dodel_realm(); } elseif ($action == "add_realm") { add_realm(); } elseif ($action == "set_def_realm") { set_def_realm(); } else { show_realm(); } unset($action); unset($action_permission); require_once "footer.php";