@@ -299,14 +299,14 @@ public function tpl_defaults() {
299299
300300 $ this ->tpl ->setVar ('phpsessid ' , session_id ());
301301
302- $ this ->tpl ->setVar ('theme ' , $ _SESSION ['s ' ]['theme ' ]);
302+ $ this ->tpl ->setVar ('theme ' , $ _SESSION ['s ' ]['theme ' ], true );
303303 $ this ->tpl ->setVar ('html_content_encoding ' , $ this ->_conf ['html_content_encoding ' ]);
304304
305305 $ this ->tpl ->setVar ('delete_confirmation ' , $ this ->lng ('delete_confirmation ' ));
306306 //print_r($_SESSION);
307307 if (isset ($ _SESSION ['s ' ]['module ' ]['name ' ])) {
308- $ this ->tpl ->setVar ('app_module ' , $ _SESSION ['s ' ]['module ' ]['name ' ]);
309- $ this ->tpl ->setVar ('session_module ' , $ _SESSION ['s ' ]['module ' ]['name ' ]);
308+ $ this ->tpl ->setVar ('app_module ' , $ _SESSION ['s ' ]['module ' ]['name ' ], true );
309+ $ this ->tpl ->setVar ('session_module ' , $ _SESSION ['s ' ]['module ' ]['name ' ], true );
310310 }
311311 if (isset ($ _SESSION ['s ' ]['user ' ]) && $ _SESSION ['s ' ]['user ' ]['typ ' ] == 'admin ' ) {
312312 $ this ->tpl ->setVar ('is_admin ' , 1 );
@@ -316,7 +316,7 @@ public function tpl_defaults() {
316316 }
317317 /* Show username */
318318 if (isset ($ _SESSION ['s ' ]['user ' ])) {
319- $ this ->tpl ->setVar ('cpuser ' , $ _SESSION ['s ' ]['user ' ]['username ' ]);
319+ $ this ->tpl ->setVar ('cpuser ' , $ _SESSION ['s ' ]['user ' ]['username ' ], true );
320320 $ this ->tpl ->setVar ('logout_txt ' , $ this ->lng ('logout_txt ' ));
321321 /* Show search field only for normal users, not mail users */
322322 if (stristr ($ _SESSION ['s ' ]['user ' ]['username ' ], '@ ' )){
@@ -343,7 +343,7 @@ public function tpl_defaults() {
343343// load and enable PHP Intrusion Detection System (PHPIDS)
344344$ ids_security_config = $ app ->getconf ->get_security_config ('ids ' );
345345
346- if (is_dir (ISPC_CLASS_PATH .'/IDS ' ) && $ ids_security_config ['ids_enabled ' ] == 'yes ' ) {
346+ if (is_dir (ISPC_CLASS_PATH .'/IDS ' ) && ! defined ( ' REMOTE_API_CALL ' ) && ( $ ids_security_config ['ids_anon_enabled ' ] == 'yes ' || $ ids_security_config [ ' ids_user_enabled ' ] == ' yes ' || $ ids_security_config [ ' ids_admin_enabled ' ] == ' yes ' ) ) {
347347 $ app ->uses ('ids ' );
348348 $ app ->ids ->start ();
349349}
0 commit comments