diff --git a/lam/templates/profedit/profilecreate.php b/lam/templates/profedit/profilecreate.php index 908a9715..ea8e26a2 100644 --- a/lam/templates/profedit/profilecreate.php +++ b/lam/templates/profedit/profilecreate.php @@ -23,4 +23,238 @@ $Id$ */ -?> \ No newline at end of file +include_once("../../lib/status.inc"); +include_once("../../lib/account.inc"); +include_once("../../lib/profiles.inc"); +include_once("../../lib/ldap.inc"); + +// start session +session_save_path("../../sess"); +@session_start(); + +// abort button was pressed in profileuser/~host.php +// back to profile editor +if ($_POST['abort']) { + echo(""); + exit; +} + +// check if user is logged in, if not go to login +if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) { + echo("\n"); + exit; +} + +// print header +echo ("\n"); +echo ("\n"); +echo ("
\n" . _("Profile ") . $profname . _(" was saved.") . "
"); + echo ("" . _("Back to profile editor") . "
"); +} + +// save host profile +elseif ($_GET['type'] == "host") { + +} + +// error: no or wrong type +else echo (StatusMessage("ERROR", "", _("No type specified!"))); + +echo ("\n"); + +?> diff --git a/lam/templates/profedit/profileuser.php b/lam/templates/profedit/profileuser.php index 3496be45..830f9677 100644 --- a/lam/templates/profedit/profileuser.php +++ b/lam/templates/profedit/profileuser.php @@ -44,6 +44,15 @@ echo ("\n