diff --git a/admin/user_editor_window.php b/admin/user_editor_window.php index fccd1570..b48bec66 100644 --- a/admin/user_editor_window.php +++ b/admin/user_editor_window.php @@ -22,8 +22,8 @@ */ ?> - require("../common.inc.php"); - require_once("../user.inc.php"); + require_once('../common.inc.php'); + require_once('../user.inc.php'); user_auth_required('committee', 'admin'); @@ -105,11 +105,39 @@ if(!array_key_exists($selected, $tabs)) { } +if($_GET['sub'] == 1) { + $_SESSION['embed'] = true; + $_SESSION['embed_submit_url'] = "{$_SERVER['PHP_SELF']}?id=$id&tab=$selected"; + $_SESSION['embed_edit_id'] = $id; + $t = $tabs[$selected]; + include("{$t['file']}"); + + unset($_SESSION['embed']); + unset($_SESSION['embed_edit_id']); + unset($_SESSION['embed_submit_url']); + exit; +} + + + send_popup_header(i18n("User Editor").": {$u['name']}"); -//require_once('../htabs.inc.php'); +?> + + + + +/* Setup some things */ + + +echo '