From: hickert Date: Thu, 27 Sep 2007 13:25:44 +0000 (+0000) Subject: Updated msg_dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e26d3117e213166aa7623ddf29d781545a732b4;p=gosa.git Updated msg_dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7427 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/ihtml/themes/default/msg_dialog.tpl b/ihtml/themes/default/msg_dialog.tpl index 654453dce..3d870e728 100644 --- a/ihtml/themes/default/msg_dialog.tpl +++ b/ihtml/themes/default/msg_dialog.tpl @@ -44,6 +44,14 @@ {/if} {else} + + {if $s_Trace != ""} + + + {/if} +
+
Trace
+ + {/if} diff --git a/include/class_msg_dialog.inc b/include/class_msg_dialog.inc index d166ad328..b72e61b4e 100644 --- a/include/class_msg_dialog.inc +++ b/include/class_msg_dialog.inc @@ -11,6 +11,7 @@ class msg_dialog private $s_Message = "Undefined"; private $i_Type = INFO_DIALOG ; private $i_ID = 0; + private $a_Trace = array(); public function __construct($s_title,$s_message,$i_type) { @@ -23,6 +24,7 @@ class msg_dialog $this->s_Title = $s_title; $this->s_Message = $s_message; $this->i_Type = $i_type; + $this->a_Trace = debug_backtrace(); if(!isset($_SESSION['msg_dialogs'])){ $_SESSION['msg_dialogs'] = array(); } @@ -31,7 +33,7 @@ class msg_dialog public static function display($s_title,$s_message,$i_type = INFO_DIALOG) { - $box = new msg_dialog($s_title,$s_message,$i_type); + new msg_dialog($s_title,$s_message,$i_type); } public function get_ID() @@ -42,6 +44,7 @@ class msg_dialog public function execute() { $smarty = get_smarty(); + $smarty->assign("s_Trace",print_a($this->a_Trace,TRUE)); $smarty->assign("i_Type",$this->i_Type); $smarty->assign("s_Message",$this->s_Message); $smarty->assign("s_Title",$this->s_Title); diff --git a/include/functions_debug.inc b/include/functions_debug.inc index 5e5c84f6e..9c30cec39 100644 --- a/include/functions_debug.inc +++ b/include/functions_debug.inc @@ -127,7 +127,7 @@ class Print_a_class { } # build a single table ... may be nested - $this->output .= 'export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>'; + $this->output .= '
export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>'; foreach( $array as $key => $value ) { $value_style = 'color:black;'; @@ -276,7 +276,7 @@ function print_result($RESULT) { '; - print '
'; + print '
'; print ''; foreach($tables as $tableName => $tableCount) { diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 2760cfab1..44c6dc30a 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -357,7 +357,9 @@ class userManagement extends plugin /* Confirmation for deletion has been passed. Users should be deleted. */ if ($this->current_action == "del_multiple" && is_object($this->msg_dialog) && $this->msg_dialog->is_confirmed()){ - + + $this->current_action = ""; + /* Remove user by user and check acls before removeing them */ foreach($this->dns as $key => $dn){ @@ -473,6 +475,8 @@ class userManagement extends plugin /* Confirmation for deletion has been passed. User should be deleted. */ if ($this->current_action == "del" && is_object($this->msg_dialog) && $this->msg_dialog->is_confirmed()){ + $this->current_action = ""; + /* Some nice guy may send this as POST, so we've to check for the permissions again. */