return $content;
}
+// Template helper function to create a deferrer code if URL is not empty
+function doTemplateDereferrerUrl ($templateName, $clear = FALSE, $url = NULL) {
+ // Is the URL not NULL and not empty?
+ if ((!is_null($url)) && (!empty($url))) {
+ // Set HTML with EL code
+ $url = '<a href="{%pipe,generateDereferrerUrl=' . $url . '%}" rel="external" target="_blank">{--ADMIN_TEST_URL--}</a>';
+ } // END - if
+
+ // Return URL (or content) or dashes if empty
+ return fixEmptyContentToDashes($url);
+}
+
// Tries to anonymize some sensitive data (e.g. IP address, user agent, referrer, etc.)
function anonymizeSensitiveData ($data) {
// Trim it
<td class="right" align="center">$content[id]</td>
<td class="right" align="center">$content[subject]</td>
<td class="right" align="center">
- <a href="{%pipe,generateDereferrerUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a>
+ {%template,DereferrerUrl=$content[url]%}
</td>
<td class="right" align="center">$content[timestamp]</td>
<td align="center">$content[count]</td>
<td class="top right" align="center">{%pipe,generateUserProfileLink=$content[sender]%}</td>
<td class="top right" align="center">$content[subject]</td>
<td class="top right" align="center">
- <a href="{%pipe,generateDereferrerUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a>
+ {%template,DereferrerUrl=$content[url]%}
</td>
<td class="top" align="center">$content[timestamp]</td>
</tr>
<tr>
<td class="right" align="center">$content[id]</td>
<td class="right" align="center">$content[subject]</td>
- <td class="right" align="center"><a href="{%pipe,generateDereferrerUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a></td>
+ <td class="right" align="center">{%template,DereferrerUrl=$content[url]%}</td>
<td class="right" align="center">$content[timestamp]</td>
<td align="center">$content[count]</td>
</tr>
{%pipe,fixEmptyContentToDashes=$content[server_name_ua]%}
</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">
- {%pipe,generateDereferrerUrl,fixEmptyContentToDashes=$content[server_name_referrer]%}
+ {%template,DereferrerUrl=$content[server_name_referrer]%}
</td>
<td align="center" class="bottom {%template,ColorSwitch%}">
$content[server_name_added]
</tr>
<tr>
<td align="right" class="bottom right">{--SPONSOR_ENTER_URL--}:</td>
- <td class="bottom">[<a href="{%pipe,generateDereferrerUrl=$content[url]%}" target="_blank"><strong>{--ADMIN_TEST_URL--}</strong></a>]</td>
+ <td class="bottom">[{%template,DereferrerUrl=$content[url]%}]</td>
</tr>
<tr>
<td colspan="2" align="center" class="table_header bottom">