83 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
84 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
114 if( array_search( $Message , $this->ErrorMessages ) ===
false )
116 $this->ErrorMessages [] = $Message;
119 catch( Exception $e )
147 if( isset( $this->ErrorMessages[ 0 ] ) )
149 return( $this->ErrorMessages[ count( $this->ErrorMessages ) - 1 ] );
153 return(
'message_was_not_found' );
156 catch( Exception $e )
184 if( array_search( $Message , $this->SuccessMessages ) ===
false )
186 $this->SuccessMessages [] = $Message;
189 catch( Exception $e )
217 if( isset( $this->SuccessMessages[ 0 ] ) )
219 return( $this->SuccessMessages[ count( $this->SuccessMessages ) - 1 ] );
223 return(
'message_was_not_found' );
226 catch( Exception $e )
250 if( $this->Security->get_s(
'success_message' ,
'set' ) )
253 $this->Security->unset_s(
'success_message' );
256 $PageName = $this->Security->get_gp(
'page_name' ,
'command' );
258 if( $this->Security->get_s(
"$PageName:success_message" ,
'set' ) )
260 $FieldName =
"$PageName:success_message";
262 $this->Security->unset_s(
"$PageName:success_message" );
265 catch( Exception $e )
289 $this->SuccessMessages = array();
290 $this->ErrorMessages = array();
292 catch( Exception $e )
326 if( isset( $this->SuccessMessages[ 0 ] ) )
328 $StartingDiv = $this->CachedMultyFS->get_template( __FILE__ ,
'success_start.tpl' );
329 $ClosingDiv = $this->CachedMultyFS->get_template( __FILE__ ,
'success_end.tpl' );
331 $Messages = implode(
'}'.$ClosingDiv.$StartingDiv.
'{lang:' , $this->SuccessMessages );
333 $Code = $StartingDiv.
"{lang:$Messages}".$ClosingDiv;
335 $this->SuccessMessages = array();
340 catch( Exception $e )
374 if( isset( $this->ErrorMessages[ 0 ] ) )
376 $StartingDiv = $this->CachedMultyFS->get_template( __FILE__ ,
'error_start.tpl' );
377 $ClosingDiv = $this->CachedMultyFS->get_template( __FILE__ ,
'error_end.tpl' );
379 $Messages = implode(
'}'.$ClosingDiv.$StartingDiv.
'{lang:' , $this->ErrorMessages );
381 $Code = $StartingDiv.
"{lang:$Messages}".$ClosingDiv;
383 $this->ErrorMessages = array();
388 catch( Exception $e )