Skip to content
Permalink
Browse files

ocprop hack for search result list

  • Loading branch information...
following5 committed May 10, 2013
1 parent 0c5261f commit 8103cea9e6143816d31191ac77a0ed180099b6d2
Showing with 3 additions and 2 deletions.
  1. +1 −1 htdocs/lang/de/ocstyle/search.result.caches.row.tpl.php
  2. +2 −1 htdocs/lib/search.html.inc.php
@@ -4,7 +4,7 @@
<td width="45" class="{bgcolor}" style="{line_style}">{distance}&nbsp;</td>
<td width="32" class="{bgcolor}" rowspan="2"><img src='lang/de/ocstyle/images/{icon_large}' alt='{cachetype}' title='{cachetype}'></td>
<td width="46" class="{bgcolor}" rowspan="2" nowrap="nowarp">{diffpic}{terrpic}</td>
<td width="448" class="{bgcolor}">{new} <!-- Ocprop >> --><a href="viewcache.php?cacheid={urlencode_cacheid}">{cachename}</a> <span style="{line_style}">{string_by}</span> <a href="viewprofile.php?userid={urlencode_userid}" style="{line_style}">{username}</a><!-- << --></td>
<td width="448" class="{bgcolor}">{new} <a href="viewcache.php?cacheid={urlencode_cacheid}"><span style="{status_style}">{cachename}</span></a> <span style="{line_style}">{string_by}</span> <a href="viewprofile.php?userid={urlencode_userid}" style="{line_style}">{username}</a><!-- Ocprop: <a href="viewcache.php?cacheid={urlencode_cacheid}">{cachename}</a> {string_by} <a href="viewprofile.php?userid={urlencode_userid}">{username}</a> --></td>
<td width="74" class="{bgcolor}" rowspan="2" style="padding: 0px">{oconly}</td>
<td width="110" valign="top" class="{bgcolor}">{logimage1} {logdate1}&nbsp;</td>
</tr>
@@ -249,8 +249,9 @@
}
$tmpline = mb_ereg_replace('{line_style}', $line_style, $tmpline);
$tmpline = mb_ereg_replace('{status_style}', $status_style, $tmpline);
$tmpline = mb_ereg_replace('{desclangs}', $desclangs, $tmpline);
$tmpline = mb_ereg_replace('{cachename}', '<span style="'.$status_style.'">' . htmlspecialchars($caches_record['name'], ENT_COMPAT, 'UTF-8') . '</span>', $tmpline);
$tmpline = mb_ereg_replace('{cachename}', htmlspecialchars($caches_record['name'], ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{urlencode_cacheid}', htmlspecialchars(urlencode($caches_record['cache_id']), ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{urlencode_userid}', htmlspecialchars(urlencode($caches_record['user_id']), ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{username}', htmlspecialchars($caches_record['username'], ENT_COMPAT, 'UTF-8'), $tmpline);

0 comments on commit 8103cea

Please sign in to comment.
You can’t perform that action at this time.