if ($tip === null) { $out['tu']['success'] = false; } else { $out['tu']['success'] = true; $out['tu']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']); $out['tu']['count'] = $tip['count']; $out['tu']['count_html'] = view_event_count_format($tip['count']); $out['tu']['link'] = $tip['link']; } } // новые события в проектах if (in_array('prj', $op)) { if (is_emp()) { $tip = notifications::getProjectsTipEmp(); } else { $tip = notifications::getProjectsTipFrl(); } if ($tip === null) { $out['prj']['success'] = false; } else { $out['prj']['success'] = true; $out['prj']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']); $out['prj']['count'] = $tip['count']; $out['prj']['count_html'] = view_event_count_format($tip['count']); $out['prj']['link'] = $tip['link']; } } // новые сообщения if (in_array('msg', $op)) { $out['msg'] = array(); $tip = notifications::getMessTip(true);