// Query string not found if (!preg_match('/' . join('.*?', $_query) . '/uis', $Fs . $Ss)) { continue; } $st++; if ($st < $search_st) { continue; } if ($found == 0) { echo "<p class='cutenews_found_news'>" . i18n('Search results for') . " "" . cn_htmlspecialchars($search) . ""</p><div class='cn_search_body'>"; } $found++; $title = cn_htmlspecialchars($item['t']); // Call: id, archiveid, template if (getoption('rw_engine')) { $url = cn_rewrite('full_story', cn_put_alias($id)); if (getoption('search_hl')) { $url .= "?qhl=" . urlencode($search); } } else { if (getoption('search_hl')) { $url = cn_url_modify($_static_qr, 'id=' . $id, "qhl=" . urlencode($search)); } else { $url = cn_url_modify($_static_qr, 'id=' . $id); } } $itemid++; echo "<div class='cutenews_search_item'>{$itemid} <b><a href='{$url}'>{$title}</a></b> (" . date("d F, Y", $id) . ")</div>"; $_number--; if ($_number == 0) { $_next_link = TRUE;
function cn_modify_bb_com_link($e, $t, $bb) { $id = intval($e['id']); $id = cn_put_alias($id); list(, $anchor) = cn_helper_bb_decode($bb); if (getoption('comments_popup')) { return '<a href="#" onclick="window.open(\'' . getoption('http_script_dir') . '/print.php?id=' . $id . $anchor . '&popup=comment\', \'Comment news\', \'' . getoption('comments_popup_string') . '\'); return false;">' . $t . '</a>'; } else { if (NULL === ($url = cn_rewrite('comments', $id))) { $url = cn_url_modify("id=" . $id); } return '<a href="' . $url . $anchor . '">' . $t . '</a>'; } }