useChat ()) { include Instance::singleton ()->getCorePath () .'system/chat.php'; ob_start (); $chat->printStyle (); $chat->printJavascript (); $_CHAT ['HEADER'] = ob_get_clean (); ob_start (); $chat->printChat (); $_CHAT ['BODY'] = ob_get_clean (); } $user = User::singleton (); if ($user->getType ()->useLdap () && $user->getType ()->getLdap ()->updateOnLogon ()) { $cSection = Business::singleton ()->getSection (Section::TCURRENT); $cAction = Business::singleton ()->getAction (Action::TCURRENT); try { Business::singleton ()->setCurrent ($user->getType ()->getName (), '_modify'); $files = array ($user->getType ()->getLdapForm (), $user->getType ()->getModify (), 'edit.xml', 'all.xml'); $form = new Form ($files); if (!$form->load ($user->getId ())) throw new Exception ('Unable to load your register data!'); if (!$form->loadFromLdap ($user->getLogin (), $user->getType ()->getLdap ())) throw new Exception ('Unable to load your data from the server LDAP!'); if (!$form->save ($user->getId (), FALSE)) throw new Exception ('Unable to save in Database'); User::singleton ()->update (); $_SESSION ['_TITAN_LDAP_USER_CONTROL_'][$user->getId ()] = TRUE; } catch (Exception $e) { Message::singleton ()->addWarning ($e->getMessage ()); Message::singleton ()->save (); } Business::singleton ()->setCurrent ($cSection->getName (), $cAction->getName ()); } if (!(bool) ini_get ('zlib.output_compression')) ob_start ('ob_gzhandler'); header ('Content-type: text/html; charset: UTF-8'); header ('Content-Encoding: gzip'); ?>