/** * Отправляет сообщение от администрации группе юзеров, определенных в модуле /siteadmin/admin/. Вызвается из hourly.php. * * Чтобы сообщение было отправлено нужно его занести в таблицу messages с полем to_id равным 0 и, * по необходимости, определить какому виду пользователей нужно отправить сообщение. * Кроме того, далее необходимо зарегистрировать данное сообщение в таблице переменных variables, переменной * с именем 'admin_message_id' со значением идентификатором отправляемого сообщения. * Отправляет уведомление о новом сообщении в личке ("Мои контакты"). * * @return string возможная ошибка */ public function SendAdminMessage() { require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/spam.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/messages.php'; if (!($message_id = spam::GetAdminMessageID())) { return "Не зарегистрировано ни одного сообщения от администрации (таблица 'variables', имя переменной 'admin_message_id')."; } if (!($message = messages::GetMessage($message_id))) { return 'Тело сообщения отсутствует.'; } $this->subject = 'Новое сообщение от Команды FL.ru'; $msg_text = reformat2($message['msg_text'], 100); $attaches = array(); if ($message['attach']) { foreach ($message['attach'] as $a) { $attaches[] = new CFile($a['path'] . $a['fname']); } $attaches = $this->CreateAttach($attaches); } if (!$this->Connect()) { return 'Невозможно соеденится с SMTP сервером'; } for ($i = 0; $users = messages::GetZeroMessageUsers($message['from_id'], $message_id, 1000, $i * 1000); ++$i) { foreach ($users as $ikey => $user) { if (!$user['email'] || substr($user['subscr'], 7, 1) == '0') { continue; } $this->recipient = $user['uname'] . ' ' . $user['usurname'] . ' [' . $user['login'] . '] <' . $user['email'] . '>'; $this->message = $this->GetHtml($user['uname'], $msg_text, array('header' => 'none', 'footer' => 'none')); $this->SmtpMail('text/html', $attaches); } } return ''; }
/** * @see parent::initHtmlData */ public function initHtmlData() { require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stop_words.php'; $pid = $this->parseLinks(); if ($pid) { $pid = array_map('intval', $pid); $stop_words = new stop_words(); $projects = new_projects::getProjectsById($pid); foreach ($projects as $i => $project) { $sTitle = $project['moderator_status'] === '0' && $project['kind'] != 4 && $project['is_pro'] != 't' ? $stop_words->replace($project['name']) : $project['name']; $projects[$i]['sTitle'] = reformat2($sTitle, 30, 0, 1); $projects[$i]['friendly_url'] = $this->getLinkById($project['id']); $projects[$i]['str_cost'] = $project['cost'] ? CurToChar($project['cost'], $project['currency']) . getPricebyProject($project['priceby']) : 'По договоренности'; } $this->html_data = $projects; } }
</td> </tr> </table> <input name="id" type="hidden" value="<?php echo $ps['id']; ?> "/> <input name="action" type="hidden" value="Decide"/> </form> <?php } else { if ($om == masssending::OM_DENIED && $ps['denied_reason']) { ?> <div style="margin:25px 0 2px 0"><b>Причина отказа:</b></div> <div><?php echo reformat2($ps['denied_reason'], 30, 0, 1); ?> </div> <?php } } ?> </td> </tr> <tr valign="top"> <td colspan="2" style="border-bottom:1px solid #c0c0c0;padding-top:15px"> </td> </tr> <tr valign="top"> <td colspan="2" style="padding-top:30px"> </td> </tr> <?php
if ($user->cost_month > 0) { ?> <div style="padding-bottom:15px;vertical-align:top;white-space:nowrap;"><strong>Стоимость месяца работы</strong> — <span class="money"><?php echo view_cost2($user->cost_month, '', '', false, $user->cost_type_month); ?> </span></div> <?php } ?> </td> <?php $sSpecText = $user->isChangeOnModeration($user->uid, 'spec_text') && $user->is_pro != 't' ? $stop_words->replace($user->spec_text) : $user->spec_text; ?> <td style="width:55%;vertical-align:top;padding:16px 19px 32px 16px;"><a name="spec_text"></a> <?php echo reformat2($sSpecText, 30, 0, 1); ?> <?php if (hasPermissions('users')) { ?> <br/> <br/> <a class="admn" href="javascript:void(0);" onclick="adm_edit_content.editContent('admEditProfile', '<?php echo $user->uid; ?> _0', 0, '', {'change_id': 0, 'ucolumn': 'spec_text', 'utable': 'freelancer'})">Редактировать</a> <?php } ?> </td> </tr>
function EditFav($msg_id, $priority = 0, $title = '', $action = 'edit') { global $session; session_start(); $user_id = $_SESSION['uid']; $objResponse = new xajaxResponse(); $msg_id = intval($msg_id); $GLOBALS['xajax']->setCharEncoding('windows-1251'); $sort = $_COOKIE['commune_fav_order'] != '' ? $_COOKIE['commune_fav_order'] : 'date'; $action = trim($action); $title = trim($title); switch ($action) { case 'update': $title = substr($title, 0, 128); $updatefav = commune::AddFav($msg_id, $user_id, 0, $priority, $title); $editfav = current(commune::GetFavorites($user_id, $msg_id, $sort)); $key = $msg_id; $om = ''; $outHTML = __commPrntFavContent($editfav, $key, $user_id, $om); $objResponse->assign('fav' . $msg_id, 'innerHTML', $outHTML); break; case 'edit': $editfav = current(commune::GetFavorites($user_id, $msg_id, $sort)); //$editfav = current($editfav); $editfav['title'] = preg_replace('/<br.*?>/mix', "\r\n", stripslashes(reformat2($editfav['title'], 20, 0, 1))); $outHTML = '<table border="0" cellpadding="1" cellspacing="0"><tbody><tr valign="top"><td style="padding-left: 3px;">'; $outHTML .= '<ul class="post-f-fav-sel">'; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $msg_id . "-0' width=\"15\" height=\"15\" src=\"" . ($editfav['priority'] == 0 ? commune::getStarByPR(0) : commune::getEmptyStarByPR(0)) . "\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriority({$msg_id}, 0)\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $msg_id . "-1' width=\"15\" height=\"15\" src=\"" . ($editfav['priority'] == 1 ? commune::getStarByPR(1) : commune::getEmptyStarByPR(1)) . "\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriority({$msg_id}, 1)\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $msg_id . "-2' width=\"15\" height=\"15\" src=\"" . ($editfav['priority'] == 2 ? commune::getStarByPR(2) : commune::getEmptyStarByPR(2)) . "\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriority({$msg_id}, 2)\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $msg_id . "-3' width=\"15\" height=\"15\" src=\"" . ($editfav['priority'] == 3 ? commune::getStarByPR(3) : commune::getEmptyStarByPR(3)) . "\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriority({$msg_id}, 3)\" style=\"cursor:pointer;\"></li>"; $outHTML .= '</ul></td><td>'; $outHTML .= '<div class="fav-one-edit-txt">'; $outHTML .= "<INPUT id='favpriority" . $msg_id . "' type='hidden' value='" . $editfav['priority'] . "'>"; $outHTML .= "<INPUT id='currtitle' type='hidden' value='" . $editfav['title'] . "'>"; $outHTML .= "<textarea rows=\"3\" cols=\"7\" id='favtext" . $msg_id . "'>{$editfav['title']}</textarea>"; $outHTML .= '<div class="fav-one-edit-btns">'; $outHTML .= "<INPUT type='button' value='Сохранить' onClick='if(document.getElementById(\"favtext" . $msg_id . '").value.length>128){alert("Слишком длинное название закладки!");return false;}else{xajax_EditFav(' . $msg_id . ', document.getElementById("favpriority' . $msg_id . '").value, document.getElementById("favtext' . $msg_id . "\").value, \"update\");}'>"; $outHTML .= "<INPUT type='button' value='Отмена' onClick='xajax_EditFav(" . $msg_id . ', ' . $editfav['priority'] . ", document.getElementById(\"currtitle\").value, \"default\");'>"; $outHTML .= '</div></td></tr></tbody></table>'; $objResponse->assign('fav' . $msg_id, 'innerHTML', $outHTML); break; default: $editfav = current(commune::GetFavorites($user_id, $msg_id, $sort)); $key = $msg_id; $om = ''; $outHTML = __commPrntFavContent($editfav, $key, $user_id, $om); $objResponse->assign('fav' . $msg_id, 'innerHTML', $outHTML); break; } $objResponse->script('communeObj.initFavs();'); return $objResponse; }
?> "><?php echo reformat($work['name'], 17, 0, 1); ?> </a></h4> <a href="/users/<?php echo $frl['login']; ?> /viewproj.php?prjid=<?php echo $work['id']; ?> &f=<?php echo stat_collector::REFID_CATALOG; ?> " target="_blank" title="<?php echo reformat2($work['name'], null, null, 1); ?> "> <?php echo view_preview($frl['login'], $work['prev_pict'], "upload", $align, true, true, '', 200); ?> </a> </td> <?php } //else ?> <?php } //if
echo reformat2($sName, 30, 0, 1); ?> <?php } //else ?> </h3> <?php // ТЕКСТ ПРОЕКТА ?> <div class="prj-full-display"> <div class="utxt"> <p id="boldPrvw"> <?php echo reformat2($project['descr'], 40, 0, 1); ?> </p> <?php if (count($project['attaches'])) { ?> <div style="padding:10px 0 0 0"> <?php foreach ($project['attaches'] as $a) { ?> <div class="flw_offer_attach"> <?php if ($a['virus'] & 1 == 1) { ?> <a href="" onclick="alert('Обнаружен вирус. Файл удален.');return false;" target="_blank">Загрузить</a>
<div id="commune-reason-<?php echo $id; ?> " class="block-box" style="display: none; overflow:hidden;"> </div> <?php } ?> </ul> </div> <div class="b-layout__txt b-layout__txt_padbot_20 b-layout__txt_lineheight_18"> <?php $comm['descr'] = str_replace("\r\n", "\r", $comm['descr']); ?> <?php echo reformat2($comm['descr'], 25, 1); ?> </div> <?php // разделы ?> <?php //include_once(dirname(__FILE__).'/categories.php'); ?> <div class="b-menu b-menu_padbot_20 b-menu_vertical"> <h3 class="b-menu__title b-menu__title_bold b-menu__title_padbot_10">Разделы</h3> <?php if (!$comm['is_blocked'] && $user_mod & (commune::MOD_COMM_AUTHOR | commune::MOD_COMM_ADMIN | commune::MOD_COMM_MODERATOR) || hasGroupPermissions('administrator')) {
<?php $crumbs = array(array('href' => '/' . sbr::NEW_TEMPLATE_SBR . '/', 'name' => '«Мои Сделки»'), array('href' => '/' . sbr::NEW_TEMPLATE_SBR . '/?id=' . $sbr->id, 'name' => reformat2($sbr->data['name'])), array('href' => '', 'name' => 'Резервирование денег')); include $_SERVER['DOCUMENT_ROOT'] . '/sbr/tpl.sbr-crumbs.php'; include $_SERVER['DOCUMENT_ROOT'] . '/sbr/tpl.stage-user.php'; ?> <table class="b-layout__table b-layout__table_width_full" cellspacing="0" cellpadding="0" border="0"> <tbody><tr class="b-layout__tr"> <td class="b-layout__left b-layout__left_width_72ps"><div class="b-fon b-fon_width_full"> <div class="b-fon__body b-fon__body_pad_10 b-fon__body_padleft_30 b-fon__body_fontsize_13 b-fon__body_bg_f0ffdf"> <div class="b-layout__txt b-layout__txt_padbot_10"><span class="b-icon b-icon_sbr_gok b-icon_margleft_-25"></span>Деньги успешно зарезервированы. Исполнитель получит уведомление.<br /> Перейти <a class="b-fon__link" href="<?php echo '/' . sbr::NEW_TEMPLATE_SBR . '/?site=Stage&id=' . $sbr->stages[0]->id; ?> "><?php echo count($sbr->stages) == 1 ? 'на страницу сделки' : 'в первый этап сделки'; ?> </a>.</div> <div class="b-layout__txt">Если у вас возникнут вопросы, обращайтесь в <a class="b-layout__link" href="/about/feedback/">службу поддержки</a> или к <?php echo webim_button(2, 'онлайн-консультанту', 'b-layout__link'); ?> .</div> </div> </div></td> <td class="b-layout__right"></td> </tr> </tbody> </table>
?> <?php } else { ?> <?php if ($top['pos']) { ?> <img src="/images/tp-w.gif" alt="" style=""><?php } ?> <a class="b-post__link" href='<?php echo getFriendlyURL('commune', $msg_id); echo $page > 1 ? '?bp=' . $page : ''; ?> '><?php echo reformat2($sTitle, $title_max, 0, 1); ?> </a> <?php } ?> </h3> <?php } ?> <?php // seo_start(!$hideInJS) ?> <?php //Сообщение поста
/** * Вывод одной закладки в блоке * @see __lentaPrntFavs() * * @param array $fav закладка * @param mixed $key ключ (ид) закладки * @param integer $user_id ИД пользователя * @param integer $om Для навигации * @return string HTML */ function __lentaPrntFavContent($fav, $key, $user_id, $pfx, $fav_href) { global $stars; $stars = array(0 => 'bsg.png', 1 => 'bsgr.png', 2 => 'bsy.png', 3 => 'bsr.png'); ob_start(); ?> <img src="/images/bookmarks/<?php echo $stars[$fav['priority']]; ?> " alt="" id="curfavstar<?php echo $pfx . $key; ?> " /> <input id="favpriority<?php echo $pfx . $key; ?> " value="<?php echo $fav['priority']; ?> " type="hidden" /> <div class="bm-l"> <a href=""><img src="/images/ico_edit2.gif" alt="Редактировать закладку" onclick="if(!$('fav<?php echo $pfx . $key; ?> edit')) { xajax_Lenta_EditFav('<?php echo $key; ?> ', 0, '', 'edit', '<?php echo $pfx; ?> '); } return false;" /></a> <a href=""><img src="/images/ico_close2.gif" alt="Удалить из закладок" onClick="if(confirm('Удалить закладку?')) xajax_Lenta_AddFav(<?php echo $key; ?> , '<?php echo $pfx; ?> ', <?php echo $user_id; ?> , 1); return false;" /></a> </div> <span><a href="<?php echo $fav_href; ?> "><?php echo $fav['title'] ? reformat2($fav['title'], 18, 1, 1) : '<без темы>'; ?> </a></span> <!-- <table border="0" cellpadding="2" cellspacing="2"> <tbody> <tr valign="top"> <td style="width:10px"><img alt="" src="/images/ico_star_<?php echo $fav['priority']; ?> .gif" align="absmiddle" border="0" width="15" height="15"> <input id="favpriority<?php echo $pfx . $key; ?> " value="<?php echo $fav['priority']; ?> " type="hidden"> </td> <td style="width: 214px;"><a class="blue" href="<?php echo $fav_href; ?> "><?php echo $fav['title'] ? stripslashes(reformat2($fav['title'], 18, 1, 1)) : '<без темы>'; ?> </a> <nobr> <img style="cursor:pointer;" src="/images/ico_close2.gif" alt="Удалить из закладок" onClick="if(confirm('Удалить закладку?')) xajax_Lenta_AddFav(<?php echo $key; ?> , '<?php echo $pfx; ?> ', <?php echo $user_id; ?> , 1)"> <img style="cursor:pointer;" src="/images/ico_edit2.gif" alt="Редактировать закладку" onclick="xajax_Lenta_EditFav('<?php echo $key; ?> ', 0, '', 'edit', '<?php echo $pfx; ?> ')"></nobr> </td> </tr> </tbody> </table> --> <?php return ob_get_clean(); }
$adUid = $ppAd['uid']; $adLogin = $toppay_usr[$adUid]['login']; $adLink = '/users/' . $toppay_usr[$adUid]['login'] . '/?f=6&stamp=' . $_SESSION['stamp']; $cls = "b-carusel__pic"; if ($ppAd['ad_img_file_name'] && $ppAd['ad_img_file_name'] != '/images/temp/small-pic.gif') { $adImg = '<img width=50 height=50 src="' . WDCPREFIX . '/users/' . $adLogin . '/foto/' . $ppAd['ad_img_file_name'] . '" alt="' . $adLogin . '" class="' . $cls . '" border="0" />'; } else { $adImg = '<img width=50 height=50 src="' . WDCPREFIX . '/images/user-default-small.png" class="' . $cls . '" border="0" />'; } if (is_array($pp_h[$adUid])) { $adHeader = $ppAd['ad_header'] ? $ppAd['ad_header'] : $pp_h[$adUid]['title']; $adHeaderDots = strlen(html_entity_decode($adHeader, ENT_QUOTES)) > 22; $adHeader = htmlentities(substr(html_entity_decode($adHeader, ENT_QUOTES), 0, 22), ENT_QUOTES, 'CP1251'); $adText = $ppAd['ad_text'] ? $ppAd['ad_text'] : $pp_h[$adUid]['descr']; $adText = $pp_h[$adUid]['on_moder'] ? $stop_words->replace($adText) : $adText; $adText = reformat2($adText, 22, 1, 1); } ?> <li class="b-carusel__item"> <?php if (is_array($pp_h[$adUid])) { ?> <a class="b-carusel__piclink" href="<?php echo $adLink; ?> " onClick="<?php echo $yaM; ?> "> <?php echo $adImg;
} else { ?> <img class="b-post__pic b-post__pic_float_right b-post__pic_clear_right b-post__pic_margleft_10" src="<?php echo WDCPREFIX . '/' . $prj['logo_path'] . $prj['logo_name']; ?> " /> <?php } ?> <?php } ?> <div class="b-post__body b-post__body_padtop_15 b-post__body_padbot_10"> <div class="b-post__txt"> <?php echo reformat2(LenghtFormatEx($prj['descr'], 300), 50, 1, 0, 1); ?> </div> </div> <?php if ($prj['pro_only'] != 't' || $is_pro) { $i = 0; if ($attach = projects::GetAllAttach($prj['id'])) { foreach ($attach as $a) { if ($a['name']) { ?> <div class="flw_offer_attach"><a href="<?php echo WDCPREFIX . '/' . $a['path'] . $a['name']; ?> " target="_blank">Загрузить</a> (<?php echo $a['ftype'];
// | commune::MOD_COMM_MODERATOR | commune::MOD_COMM_AUTHOR))) print '<br/><br/>'; if (($comment['member_is_banned'] || $comment['user_is_banned']) && !($mod & commune::MOD_MODER)) { // | commune::MOD_COMM_MODERATOR | commune::MOD_COMM_AUTHOR))) print 'Ответ от заблокированного пользователя'; } else { if ($is_deleted) { print '<font class="del-color">'; } if ($comment['user_is_banned'] || $comment['member_is_banned']) { print '<font color="#000000"><b>Пользователь забанен' . (!$top['user_is_banned'] ? ' в сообществе' : '') . '.</b></font><br/><br/>'; } if ($comment['title']) { print '<font class="bl_name">' . reformat2($comment['title'], 25, 0, 1) . '</font><br>'; } print reformat2($comment['msgtext'], 82 - round((($level > 19 ? 19 : $level) - 1) * 1.9), 0, -($comment['user_is_chuck'] == 't'), 1) . '<br/>'; if ($comment['youtube_link']) { print show_video($comment['id'], $comment['youtube_link']); } if ($comment['attach']) { //$commune['attach'] = array_reverse($commune['attach']); foreach ($comment['attach'] as $attach) { $att_ext = CFile::getext($attach['fname']); $str = ''; $str = viewattachLeft($comment['user_login'], $attach['fname'], 'upload', $file, commune::MSG_IMAGE_MAX_HEIGHT, commune::_MSG_IMAGE_MAX_WIDTH, commune::MSG_IMAGE_MAX_SIZE, !($attach['small'] == 't'), (int) ($attach['small'] == 't')); print "<br/><br/>" . $str . "<br/>"; } } if ($is_deleted) { print '</font>'; }
echo $prj['id']; ?> " is_text="<?php echo (int) ($prj['prj_prev_type'] == 1); ?> "> <?php if ($wrk_show_preview == 't') { ?> <?php if ($is_pro) { if ($prj['gr_prevs'] == 't') { if ($prj['prj_prev_type']) { ?> <div style="width:200px"><?php echo reformat2($prj['descr'], 27); ?> </div></div> <?php } else { ?> <div style="width:200px;height:200px;text-align:left;vertical-align:top;"><a href="/users/<?php echo $user->login; ?> /viewproj.php?prjid=<?php echo $prj['id']; ?> " target="_blank" class="blue"><?php echo view_preview($user->login, $prj['prev_pict'], 'upload', 'left', false, false, '', 200); ?> </a></div>
/** * Функция возвращает отдельный отзыв * * @param array $theme отзыв * @param string $from (frl|my|emp|norisk) параметр from * @param integer $counter номер отзыва * @param boolean $with_container флаг, указывающий возвращать ли нам div-контейнер * @return string */ public static function printTheme($theme, $from, $counter, $with_container = true) { global $session; session_start(); $user_from = new users(); $user_to = new users(); $cnt_role = is_emp($theme['role']) ? 'employer' : 'freelancer'; $block_class = $theme['rating'] == 1 ? 'plus' : ($theme['rating'] == -1 ? 'minus' : 'neitral'); $block_suffix = $counter == 1 ? ' first' : ''; if ($counter == -1) { $block_suffix = ' last'; } $block_single = $from != 'my' ? true : false; $user_from->GetUserByUID($theme['fromuser_id']); $user_to->GetUserByUID($theme['touser_id']); $on_site = ""; if (hasPermissions('users')) { $on_site = "На сайте " . ElapsedMnths(strtotime($user_from->reg_date)); } $opcomm = opinions::getCommentOpinionById(array($theme['id'])); $op_edited = $theme['modified'] && $theme['modified'] != $theme['post_time'] ? date("d.m.Y H:i", strtotime($theme['modified'])) : false; $com_edited = !empty($opcomm[$theme['id']]['date_change']) ? date("d.m.Y H:i", strtotime($opcomm[$theme['id']]['date_change'])) : false; $html = $with_container ? '<div class="ops-one c ops-one-' . $block_class . $block_suffix . '" id="opid_' . $theme['id'] . '">' : ''; $html .= ' <a name="o_' . $theme['id'] . '"><img src="/images/1.gif" width="1" height="1" alt="" /></a> <b class="ops-vs"></b> <div class="ops-one-cnt"> <ul class="ops-i">'; if ($op_edited) { $html .= '<li><img src="/images/ico-e-u.png" title="Отредактировано ' . $op_edited . '" alt="Отредактировано ' . $op_edited . '" /></li>'; } $html .= '<li class="ops-time">' . date("d.m.Y H:i", strtotime($theme['post_time'])) . '</li> <li><a href="#o_' . $theme['id'] . '" onclick="hlAnchor(\'o\',' . $theme['id'] . ')" class="ops-anchor">#</a></li> </ul>'; if (!$block_single) { //Double Users $html .= self::printUserInfoMy($user_to, 'to') . self::printUserInfoMy($user_from); } else { $html .= '<a href="/users/' . $user_from->login . '" class="' . $cnt_role . '-name">' . strtr(view_avatar($theme['login'], $theme['photo']), array('<img' => '<img style="float: left"')) . '</a>'; } $html .= '<div class="user-info" style="height:auto">'; if ($block_single) { $html .= '<div class="username" style="font-size:12px">' . __prntUsrInfo($user_from); if ($on_site) { $html .= "<i>{$on_site}</i>"; } $html .= '</div>'; } if ($user_from->is_banned) { $html .= ' <div style="color:#000; margin: 0 0 10px 0;" ><b>Пользователь забанен.</b></div>'; } $html .= '<div class="utxt" id="msg_cont_' . $theme['id'] . '"><p id="message_text_' . $theme['id'] . '">' . reformat2($theme['msgtext'], 48, 0, 0, 1) . '</p></div>'; if (($theme['fromuser_id'] == $_SESSION['uid'] || hasPermissions('users')) && $from != 'norisk') { //Мой комент или я админ $html .= '<ul class="opsa-op" id="edit_block_' . $theme['id'] . '"> <li><a href="#" onclick="if(!window._opiLock) { window._opiLock = true; xajax_EditOpinionForm(' . $theme['id'] . ',\'' . $from . '\'); } return false;" class="lnk-dot-red">Редактировать</a></li> <li><a href="#" onclick="if (confirm(\'Вы действительно хотите удалить мнение?\')) xajax_DeleteOpinion(' . $theme['id'] . ',\'' . $from . '\'); return false;" class="lnk-dot-red">Удалить</a></li> </ul>'; } if (!empty($opcomm[$theme['id']])) { $html .= ' <a name="a_' . $theme['id'] . '"><img src="/images/1.gif" width="1" height="1" alt="" /></a> <div class="ops-answer" id="ops_answer_' . $theme['id'] . '"> <div id="ops_answer_link_' . $theme['id'] . '"> <ul class="ops-i">'; if ($com_edited) { $html .= '<li><img src="/images/ico-e-u.png" title="Отредактировано ' . $com_edited . '" alt="Отредактировано ' . $com_edited . '" /></li>'; } $html .= '<li class="ops-time">' . date("d.m.Y H:i", strtotime($opcomm[$theme['id']]['date_create'])) . '</li> <li><a href="#a_' . $theme['id'] . '" onclick="hlAnchor(\'a\',' . $theme['id'] . ')" class="ops-anchor">#</a></li> </ul> <strong>' . __prntUsrInfo($user_to) . '</strong> <div class="utxt"><p> ' . reformat($opcomm[$theme['id']]['comment'], 48, 0, 0, 1) . ' </p></div> '; if ($theme['touser_id'] == $_SESSION['uid'] || hasPermissions('users')) { $html .= '<ul class="opsa-op"> <li><a href="#" onclick="if(!window._opiLock) { window._opiLock = true; xajax_AddOpComentForm(' . $theme['id'] . ',\'' . $from . '\'); } return false;" class="lnk-dot-red">Редактировать</a></li> <li><a href="#" onclick="if (confirm(\'Вы действительно хотите удалить комментарий?\'))xajax_DeleteOpinionComm(' . $theme['id'] . ',' . $opcomm[$theme['id']]['id'] . ', \'' . $from . '\'); return false;" class="lnk-dot-red">Удалить</a></li> </ul>'; } $html .= '</div> </div>'; } if ($theme['touser_id'] == $_SESSION['uid'] && empty($opcomm[$theme['id']]) && $from != "my") { $html .= ' <div class="ops-answer" id="ops_answer_' . $theme['id'] . '"> <div class="opsa-lnk-add" id="ops_answer_link_' . $theme['id'] . '"><a href="#" onclick="if(!window._opiLock) { window._opiLock = true; xajax_AddOpComentForm(' . $theme['id'] . ',\'' . $from . '\'); } return false;" class="lnk-dot-666">Добавить комментарий</a></div> </div>'; } $html .= '</div></div>'; $html .= $with_container ? '</div>' : ''; return $html; }
public function getDescr() { return viewdescr($this->user['login'], reformat2($this->descr, 42, 0, 1)); }
/** * Вывод заголовка и краткого описания платного объявления * @param array $fd массив с данными размещения * @param integer $mod $mod & 1, если просматривает автор объявления. $mod & 2, если это админ, 0 - обычный юзер. * @return string HTML */ function __fpPrntTitleDescr($fd, $mod) { global $session; ob_start(); ?> <div style="padding:3px 0 2px 0"> <?php /* ?><a href="javascript:void(0)" style="color:#666666"><? */ ?> <span style="font-weight:bold"><?php echo reformat2($fd['title'], 16, 0, 1); ?> </span><br/> <?php echo reformat2($fd['descr'], 18, 0, 1); ?> <?php /* ?></a><? */ ?> </div> <?php if ($fd['has_full_descr'] == 't') { ?> <div style="border-bottom:1px dotted #666666;padding-top:10px;width:75px"><a href="javascript:;" onclick="mg_onClick(<?php echo $fd['ufp_id']; ?> , <?php echo $mod; ?> )" style="color:#666666;text-decoration:none">Подробнее - ></a></div> <?php } $str = ob_get_contents(); ob_end_clean(); return $str; }
} ?> <?php $sTitle = $row['moderator_status'] === '0' && $row['kind'] != 4 && $row['is_pro'] != 't' ? $stop_words->replace($row['name']) : $row['name']; ?> <a class="b-post__link" id="prj_name_<?php echo $row['id']; ?> " name="prj<?php echo $row['id']; ?> " href="<?php echo $row['friendly_url']; ?> "><?php echo reformat2(strip_tags($sTitle), 30, 0, 1); ?> </a> </h2> <?php /*if (get_uid(false) && $row['t_is_ontop'] && !is_emp()) { ?> <a href="#" title="Скрыть" onclick="xajax_HideProject(<?= $row['id'] ?>, 'hide', '<?= $this->kind ?>', '<?= $this->page ?>', '<?= $this->filter ?>'); return false;" class="b-post__link b-post__link_dot_c10601">скрыть</a> <? } */ ?> <?php seo_start($is_ajax); ?> <div class="b-post__body b-post__body_padtop_15 b-post__body_overflow_hidden b-layuot_width_full">
<span id="favs_close_editor<?php echo $key; ?> " class="b-shadow__icon b-shadow__icon_close"></span> <span class="b-shadow__icon b-shadow__icon_nosik"></span> </div> </div> <a id="favs_fav_name<?php echo $key; ?> " class="b-menu__link" href="<?php echo getFriendlyUrl('commune', $key); echo $om ? '?om=' . $om : ''; ?> "><?php echo $fav['title'] ? stripslashes(reformat2($fav['title'], 18, 1, 1)) : '<без темы>'; ?> </a> </div> <div id="favs_fav_deleted<?php echo $key; ?> " style="display:none" class="b-fon b-fon_width_full"> <div class="b-fon__body b-fon__body_pad_5 b-fon__body_fontsize_11 b-fon__body_bg_ffeeeb"> Удалена. <a id="favs_recover_fav<?php echo $key; ?> " class="b-fon__link" href="javascript:void(0)">Восстановить</a> </div> </div>
if ($top['user_is_banned'] && !($user_mod & commune::MOD_ADMIN) || $top['member_is_banned'] && !($user_mod & (commune::MOD_ADMIN | commune::MOD_COMM_AUTHOR | commune::MOD_COMM_MANAGER))) { continue; } ?> <item> <title><![CDATA[<?php echo xmloutofrangechars(html_entity_decode($top['title'], ENT_QUOTES, 'cp1251')); ?> ]]></title> <link><?php echo $host; echo getFriendlyURL("commune", $top['id']); ?> </link> <description><![CDATA[<?php echo xmloutofrangechars(reformat2($top['msgtext'], 96, 1)); ?> ]]></description> <pubDate><?php echo date("D, d M Y H:i:s", strtotime($top['created_time'])); ?> </pubDate> <author><?php echo $top['user_uname'] . ' ' . $top['user_usurname'] . ' [' . $top['user_login'] . ']'; ?> </author> <comments><?php echo $host; echo getFriendlyURL('commune', $top['id']); ?> </comments>
function ChangeGrPrev($prof_id, $check) { session_start(); $objResponse = new xajaxResponse(); $portf = new portfolio(); if (!$portf->ChangeGrPrev($_SESSION['uid'], intval($prof_id), $projs)) { if ($projs) { foreach ($projs as $id => $prj) { if ($check != 0) { if ($prj['prev_type'] == 1) { $text = '<div style="width:200px">' . reformat2($prj['prev_data'], 37) . '</div>'; } else { if (in_array(strtolower(CFile::getext($prj['prev_data'])), $GLOBALS['graf_array']) && strtolower(CFile::getext($prj['prev_data'])) != 'swf') { $text = '<div align="left" style="width:200px;"><a href="/users/' . $_SESSION['login'] . '/viewproj.php?prjid=' . $id . '" target="_blank" class="blue"> ' . viewattach($_SESSION['login'], $prj['prev_data'], 'upload', $file, 500, 200, 307200, 0, 0, 'left') . '</a></div>'; } else { $text = viewattach($_SESSION['login'], $prj['prev_data'], 'upload', $file, 500, 200, 307200, 0, 0, 'left'); } # $script .= "document.getElementById('prev".$id."').checked = true;"; } } else { # $script = "document.getElementById('prev".$id."').checked = false;"; $text = '<div style="width:200px"> </div>'; } $objResponse->assign('previmg' . intval($id), 'innerHTML', $text); $objResponse->script($script); } } $script = "document.getElementById('grprev" . $prof_id . "').disabled = false;"; } else { $script = "document.getElementById('grprev" . $prof_id . "').disabled = false;"; } $objResponse->script($script); return $objResponse; }
</div> </div> <?php } } ?> <script type="text/javascript">var HTML_KWORDTMPL='<?php echo $html_keyword_js; ?> '</script> <div class="prtfl " id="portfolio_info"> <div class="prtfl-r"><a name="spec_text"></a> <p><?php echo reformat2($sSpecText, 50, 0, 0); ?> </p> <?php if (hasPermissions('users')) { ?> <a class="admn" href="javascript:void(0);" onclick="adm_edit_content.editContent('admEditProfile', '<?php echo $user->uid; ?> _0', 0, '', {'change_id': 0, 'ucolumn': 'spec_text', 'utable': 'freelancer'})">Редактировать</a> <?php } ?> </div> <div class="prtfl-l"> <p><?php
/** * Отправляет уведомления о новых сообщениях в личке при рассылке администрации. * Консьюмер plproxy-mail * * @param array $params Данные от PgQ, TO-адреса получателей; FROM-адрес отправителя * @param string $msg Текст сообщения */ function SendAdminMessage($params) { require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/messages.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php'; $messObj = new messages(); $message_id = $params; if (!($message = $messObj->GetMessage($message_id))) { return "Тело сообщения отсутствует."; } $this->subject = "Новое сообщение от Команды FL.ru"; $msg_text = reformat2($message['msg_text'], 100); $attaches = array(); if ($message['attach']) { foreach ($message['attach'] as $a) { $attaches[] = new CFile($a['path'] . $a['fname']); } $attaches = $this->CreateAttach($attaches); } if (!$this->Connect()) { return "Невозможно соеденится с SMTP сервером"; } $from = new users(); $from->GetUserByUID($message['from_id']); $parse = $from->login == 'admin'; $header = $parse ? 'none' : 'default'; for ($i = 0; $users = $messObj->GetZeroMessageUsers($message['from_id'], $message_id, 1000, $i * 1000); $i++) { foreach ($users as $ikey => $user) { if ($parse) { $msg_text = reformat2($message['msg_text'], 100); $msg_text = preg_replace("/%USER_NAME%/", $user['uname'], $msg_text); $msg_text = preg_replace("/%USER_SURNAME%/", $user['usurname'], $msg_text); $msg_text = preg_replace("/%USER_LOGIN%/", $user['login'], $msg_text); } if (!$user['email'] || substr($user['subscr'], 7, 1) == '0') { continue; } $this->recipient = $user['uname'] . " " . $user['usurname'] . " [" . $user['login'] . "] <" . $user['email'] . ">"; $this->message = $this->GetHtml($user['uname'], $msg_text, array('header' => 'none', 'footer' => 'none')); $this->SmtpMail('text/html', $attaches); } } return ''; }
<?php sbr_meta::getReqvFields(); $sbr->getInvoiceReqv($form_type, $reqv_mode); ?> <div class="b-menu b-menu_crumbs"> <ul class="b-menu__list"> <li class="b-menu__item"><a class="b-menu__link" href="/<?php echo sbr::NEW_TEMPLATE_SBR; ?> ">«Мои Сделки»</a> → </li> </ul> </div> <h1 class="b-page__title b-page__title_padnull"><?php echo reformat2($sbr->data['name']); ?> </h1> <?php include $_SERVER['DOCUMENT_ROOT'] . "/sbr/tpl.stage-user.php"; ?> <?php if ($sbr->scheme_type == sbr::SCHEME_PDRD2) { ?> <form action="." method="post" id="reserveFrm"> <input type="hidden" name="site" value="<?php echo $site; ?> " /> <input type="hidden" name="id" value="<?php
} //foreach ?> </table> <?php } //if if ($current['estatus'] != 't' && $sbr->isEmp() || $current['fstatus'] != 't' && !$sbr->isEmp()) { $is_run_comment = true; } } elseif ($current['abbr'] == 'sbr_stages.ARB_COMMENT') { //if ?> <div class="b-post__txt b-post__txt_padbot_5 b-post__txt_bold">Менеджер арбитража</div> <div class="b-post__txt b-post__txt_fontsize_15"><?php echo reformat2($current['msg'], 40); ?> </div> <?php if ($current['src_id'] > 0) { $attach = $stage->getMsgAttach($current['own_id']); ?> <table class="b-layout__table b-layout__table_margtop_10" cellpadding="0" cellspacing="0" border="0"> <?php foreach ($attach as $src) { ?> <tr class="b-layout__tr"> <td class="b-layout__middle b-layout__middle_padbot_5"><div class="b-layout__txt"><i class="b-icon b-icon_attach_<?php echo getICOFile(CFile::getext($src['name'])); ?> "></i> <a class="b-layout__link" href="<?php
<?php //$page = isset($page) ? $page : 1; $groupCommCnt = isset($groupCommCnt) ? $groupCommCnt : 0; $comm_is_ajax = false; if (is_array($communes) && count($communes)) { // начало нумерации сообществ для своей сортировки $comm_limit = commune::MAX_ON_PAGE; $comm_start_position = ($page - 1) * $comm_limit; $i = 0; foreach ($communes as $comm) { $i++; // заголовок $comm_url = getFriendlyURL('commune_commune', $comm['id']); $comm_name = "<a href='" . $comm_url . "' class='b-post__link'>" . ($search !== NULL ? highlight(reformat2($comm['name'], 25, 1, 1), $search, 20) : reformat2($comm['name'], 25, 1, 1)) . "</a>"; $comm_descr = $search !== NULL ? highlight(reformat2($comm['descr'], 25, 1), $search) : reformat2($comm['descr'], 25, 1); // Сколько участников. $mAcceptedCnt = $comm['a_count'] - $comm['w_count'] + 1; // +1 -- создатель $mCnt = $mAcceptedCnt . ' участник' . getSymbolicName($mAcceptedCnt, 'man'); ?> <div class="b-post b-post_padbot_20"> <div class="b-post__body b-post__body_bordbot_solid_f0 b-post__body_padbot_30 b-layout"> <table class="b-layout__table b-layout__table_width_full" cellpadding="0" cellspacing="0" border="0"> <tr class="b-layout__tr"> <?php /* <? if ( $sub_om == commune::OM_CM_JOINED_MY ) { ?> <div class="form c-my-sort"> <b class="b1"></b> <b class="b2"></b>
<strong><a itemprop="name" class="blue" target="_blank" href="/users/<?php echo $user->login; ?> /viewproj.php?prjid=<?php echo $prj['id']; ?> "><?php echo reformat($prj['name'], 25, 0, 1); ?> </a></strong> </div> <div class="b-work b-work_bg_ff"> <?php if ($prj['prj_prev_type']) { $sDescr = $prj['descr']; print "<p style='padding-bottom:7px'>" . reformat2($sDescr, 25, 0, 1) . "</p>"; // Для текста нужен свой блок <p> с отступом вконце @todo } else { //if $sName = $prj['name']; ?> <a title="<?php echo htmlspecialchars(htmlspecialchars_decode($sName, ENT_QUOTES)); ?> " class="blue" target="_blank" href="/users/<?php echo $user->login; ?> /viewproj.php?prjid=<?php
function Lenta_EditFav($msg_id, $priority = 0, $title = "", $action = "edit", $pfx = "CM") { global $session, $stars; session_start(); $user_id = $_SESSION['uid']; $objResponse = new xajaxResponse(); $msg_id = intval($msg_id); $GLOBALS['xajax']->setCharEncoding("windows-1251"); $action = trim($action); switch ($action) { case "update": //$title = pg_escape_string(substr($title, 0, 128)); $title = substr($title, 0, 128); switch ($pfx) { case 'CM': $updatefav = lenta::AddFav($user_id, $msg_id, 0, 0, 0, $priority, $title); $fav_href = "/commune/?id={$editfav['commune_id']}&site=Topic&post={$msg_id}"; break; case 'PF': $updatefav = lenta::AddFav($user_id, 0, $msg_id, 0, 0, $priority, $title); $fav_href = "/users/{$editfav['login']}/viewproj.php?prjid={$msg_id}"; break; case 'BL': $updatefav = lenta::AddFav($user_id, 0, 0, $msg_id, 0, $priority, $title); $fav_href = "/blogs/view.php?tr={$msg_id}"; break; } $editfav = lenta::GetFav($user_id, $msg_id, $pfx); $key = $msg_id; // $fav_href = ( $pfx=='CM' ? "/commune/?id={$editfav['commune_id']}&site=Topic&post={$msg_id}" : "/users/{$editfav['login']}/viewproj.php?prjid={$msg_id}"); $outHTML = __lentaPrntFavContent($editfav, $key, $user_id, $pfx, $fav_href); $objResponse->assign("fav" . $pfx . $msg_id, "innerHTML", $outHTML); // $objResponse->assign('favstar'.$pfx.$msg_id, "src", "/images/ico_star_{$priority}.gif"); $objResponse->assign('favstar' . $pfx . $msg_id, "src", "/images/bookmarks/" . $stars[$priority]); break; case "edit": $editfav = lenta::GetFav($user_id, $msg_id, $pfx); $editfav['title'] = str_replace("<br/>", "\r\n", reformat2($editfav['title'], 20, 0, 1)); $outHTML = "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\"><tbody><tr valign=\"top\"><td style=\"padding-left: 3px;\">"; $outHTML .= "<ul class=\"post-f-fav-sel\">"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $pfx . $msg_id . "-0' width=\"15\" height=\"15\" src=\"/images/ico_star_0" . ($editfav['priority'] != 0 ? "_empty" : "") . ".gif\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriorityLenta({$msg_id}, 0, '{$pfx}')\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $pfx . $msg_id . "-1' width=\"15\" height=\"15\" src=\"/images/ico_star_1" . ($editfav['priority'] != 1 ? "_empty" : "") . ".gif\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriorityLenta({$msg_id}, 1, '{$pfx}')\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $pfx . $msg_id . "-2' width=\"15\" height=\"15\" src=\"/images/ico_star_2" . ($editfav['priority'] != 2 ? "_empty" : "") . ".gif\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriorityLenta({$msg_id}, 2, '{$pfx}')\" style=\"cursor:pointer;\"></li>"; $outHTML .= "<li><IMG alt=\"\" border=\"0\" id='favpic" . $pfx . $msg_id . "-3' width=\"15\" height=\"15\" src=\"/images/ico_star_3" . ($editfav['priority'] != 3 ? "_empty" : "") . ".gif\" hspace=\"1\" vspace=\"1\" onclick=\"FavPriorityLenta({$msg_id}, 3, '{$pfx}')\" style=\"cursor:pointer;\"></li>"; $outHTML .= "</ul></td><td>"; $outHTML .= "<div class=\"fav-one-edit-txt\">"; $outHTML .= "<INPUT id='favpriority" . $pfx . $msg_id . "' type='hidden' value='" . $editfav['priority'] . "'>"; $outHTML .= "<INPUT id='currtitle' type='hidden' value='" . $editfav['title'] . "'>"; $outHTML .= "<textarea rows=\"3\" cols=\"7\" id='favtext" . $pfx . $msg_id . "'>{$editfav['title']}</textarea>"; $outHTML .= "<div class=\"fav-one-edit-btns\">"; $outHTML .= "<INPUT type='button' value='Сохранить' onClick='if(document.getElementById(\"favtext" . $pfx . $msg_id . "\").value.length>128){alert(\"Слишком длинное название закладки!\");return false;}else{xajax_Lenta_EditFav(" . $msg_id . ", document.getElementById(\"favpriority" . $pfx . $msg_id . "\").value, document.getElementById(\"favtext" . $pfx . $msg_id . "\").value, \"update\", \"{$pfx}\");}'>"; $outHTML .= "<INPUT type='button' value='Отмена' onClick='xajax_Lenta_EditFav(" . $msg_id . ", " . $editfav['priority'] . ", document.getElementById(\"currtitle\").value, \"default\", \"{$pfx}\");'>"; $outHTML .= "</div></td></tr></tbody></table>"; //$outHTML = "<li class=\"fav-one-edit c\">"; $outHTML = "<ul class=\"post-f-fav-sel\">"; $outHTML .= "<li><a href=\"\" onclick=\"FavPriorityLenta({$msg_id}, 0, '{$pfx}'); return false;\"><img src=\"../../images/bookmarks/bsg.png\" alt=\"\" id='favpic" . $pfx . $msg_id . "-0' /></a></li>"; $outHTML .= "<li><a href=\"\" onclick=\"FavPriorityLenta({$msg_id}, 1, '{$pfx}'); return false;\"><img src=\"../../images/bookmarks/bsgr.png\" alt=\"\" id='favpic" . $pfx . $msg_id . "-1'/></a></li>"; $outHTML .= "<li><a href=\"\" onclick=\"FavPriorityLenta({$msg_id}, 2, '{$pfx}'); return false;\"><img src=\"../../images/bookmarks/bsy.png\" alt=\"\" id='favpic" . $pfx . $msg_id . "-2'/></a></li>"; $outHTML .= "<li><a href=\"\" onclick=\"FavPriorityLenta({$msg_id}, 3, '{$pfx}'); return false;\"><img src=\"../../images/bookmarks/bsr.png\" alt=\"\" id='favpic" . $pfx . $msg_id . "-3'/></a></li>"; $outHTML .= "</ul>"; $outHTML .= "<div class=\"fav-one-edit-txt\">"; $outHTML .= "<INPUT id='favpriority" . $pfx . $msg_id . "' type='hidden' value='" . $editfav['priority'] . "'>"; $outHTML .= "<INPUT id='currtitle' type='hidden' value='" . $editfav['title'] . "'>"; $outHTML .= "<textarea rows=\"3\" cols=\"7\" id='favtext" . $pfx . $msg_id . "'>{$editfav['title']}</textarea>"; $outHTML .= "<div class=\"fav-one-edit-btns\"><input type=\"button\" value=\"Сохранить\" onClick='if(document.getElementById(\"favtext" . $pfx . $msg_id . "\").value.length>128){alert(\"Слишком длинное название закладки!\");return false;}else{xajax_Lenta_EditFav(" . $msg_id . ", document.getElementById(\"favpriority" . $pfx . $msg_id . "\").value, document.getElementById(\"favtext" . $pfx . $msg_id . "\").value, \"update\", \"{$pfx}\"); \$(\"fav" . $pfx . $msg_id . "edit\").dispose();}'/> <input type=\"button\" value=\"Отмена\" onClick='xajax_Lenta_EditFav(" . $msg_id . ", " . $editfav['priority'] . ", document.getElementById(\"currtitle\").value, \"default\", \"{$pfx}\"); \$(\"fav" . $pfx . $msg_id . "edit\").dispose();' /></div>"; $outHTML .= "</div>"; //$outHTML .= "</li>"; $objResponse->insertAfter("fav" . $pfx . $msg_id, "li", "fav" . $pfx . $msg_id . "edit"); $objResponse->assign("fav" . $pfx . $msg_id . "edit", "className", "fav-one-edit"); $objResponse->assign("fav" . $pfx . $msg_id . "edit", "innerHTML", $outHTML); // $objResponse->assign("fav".$pfx.$msg_id, "innerHTML", $outHTML); break; default: $editfav = lenta::GetFav($user_id, $msg_id, $pfx); $key = $msg_id; // $fav_href = ( $pfx=='CM' ? "/commune/?id={$editfav['commune_id']}&site=Topic&post={$msg_id}" : "/users/{$editfav['login']}/viewproj.php?prjid={$msg_id}"); switch ($pfx) { case 'CM': $updatefav = lenta::AddFav($user_id, $msg_id, 0, 0, 0, $priority, $title); $fav_href = "/commune/?id={$editfav['commune_id']}&site=Topic&post={$msg_id}"; break; case 'PF': $updatefav = lenta::AddFav($user_id, 0, $msg_id, 0, 0, $priority, $title); $fav_href = "/users/{$editfav['login']}/viewproj.php?prjid={$msg_id}"; break; case 'BL': $updatefav = lenta::AddFav($user_id, 0, 0, $msg_id, 0, $priority, $title); $fav_href = "/blogs/view.php?tr={$msg_id}"; break; } $outHTML = __lentaPrntFavContent($editfav, $key, $user_id, $pfx, $fav_href); $objResponse->assign("fav" . $pfx . $msg_id, "innerHTML", $outHTML); break; } return $objResponse; }
?> <?php } ?> <div id="FavFloat<?php echo $msg_id; ?> "></div> </li> </ul> <div class="utxt"> <h3><a href="<?php echo getFriendlyURL("blog", $item['theme_id']); ?> "><?php echo reformat2($item['title'], 30, 0, 1); ?> </a></h3> <p><?php echo reformat($item['msgtext'], 46, 1, -($item['is_chuck'] == 't'), 1); ?> </p> <!-- Questions --> <?php if ($item['question'] != '') { ?> <div id="blog-poll-<?php echo $item['thread_id']; ?> " class="poll">