$smarty->assign('INSTALLER_ENABLED', $config_vars['other']['installer_enabled']); } if (isset($system_settings['system_version']) and DEPLOYMENT_ON_DEMAND == FALSE and APPLICATION_VERSION != $system_settings['system_version']) { $smarty->assign('VERSION_MISMATCH', TRUE); } if (isset($system_settings)) { $smarty->assign_by_ref('system_settings', $system_settings); } if (isset($current_company)) { $smarty->assign_by_ref('current_company', $current_company); } if (isset($config_vars)) { $smarty->assign_by_ref('config_vars', $config_vars); } if (TTi18n::getLanguage() != '') { $smarty->assign('CALENDAR_LANG', TTi18n::getLanguage()); } else { $smarty->assign('CALENDAR_LANG', 'en'); } if (isset($current_user)) { $smarty->assign_by_ref('current_user', $current_user); $smarty->assign_by_ref('current_user_prefs', $current_user_prefs); if (!isset($skip_message_check)) { $profiler->startTimer("Interface.inc - Check for UNREAD messages..."); //CHeck for unread messages $mlf = new MessageListFactory(); $unread_messages = $mlf->getNewMessagesByUserId($current_user->getId()); Debug::text('UnRead Messages: ' . $unread_messages, __FILE__, __LINE__, __METHOD__, 10); $smarty->assign_by_ref('unread_messages', $unread_messages); if (isset($_COOKIE['newMailPopUp'])) { $smarty->assign_by_ref('newMailPopUp', $_COOKIE['newMailPopUp']);