summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db95d3c)
raw | patch | inline | side by side (parent: db95d3c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 2 Nov 2006 07:59:25 +0000 (07:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 2 Nov 2006 07:59:25 +0000 (07:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4984 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/main.inc | patch | blob | history |
index ef1fa7c712a26bc20b9c935fb13b809266b84360..474087f4a77c7b3c66eb63e3d281b04074c343e2 100644 (file)
/* Preset display */
-$display= "";
+$display = "";
+$lock_msg = "";
if (!$remove_lock){
/* Reset requested? */
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
$_SESSION['back_plugin']= $plug;
- gen_locked_message ($username, $ui->dn);
- exit ();
+ $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ $lock_msg = gen_locked_message ($username, $ui->dn);
+
+ }else{
+
+ /* Lock the current entry */
+ add_lock ($ui->dn, $ui->dn);
+ $_SESSION['dn']= $ui->dn;
+ $_SESSION['edit']= TRUE;
}
-
- /* Lock the current entry */
- add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
}
/* Perform password change */
}
/* Execute formular */
- $display.= $user->execute ();
+ if($lock_msg){
+ $display = $lock_msg;
+ }else{
+ $display.= $user->execute ();
+ }
/* Store changes in session */
if (isset ($_SESSION['edit'])){
$info = "";
/* Show page footer depending on the mode */
- if (!$user->cert_dialog && !$user->picture_dialog && !$user->dialog && $user->is_account){
+ if (!$user->cert_dialog && !$user->picture_dialog && !$user->dialog && $user->is_account && empty($lock_msg)){
$display.= "<p class=\"plugbottom\">";
/* Are we in edit mode? */