<define-tag logbook>logbook</define-tag>
<?
-function add_social ($url, $title)
-{
- $urlenc = urlencode ($url);
- $titleenc = urlencode ($title);
- $ret = '';
-
- $ret .= '<div class="soclink">';
- $ret .= sprintf('<a href="http://digg.com/submit?phase=2&url=%s&title=%s" target="_blank">', $urlenc, $titleenc);
- $ret .= '<img border="0" src="/Pics/link_digg.gif" alt="Digg this" title="Digg This"></a>';
- $ret .= '</div>';
-
- $ret .= '<div class="soclink">';
- $ret .= sprintf('<a href="http://del.icio.us/post?url=%s&title=%s" target="_blank">', $urlenc, $titleenc);
- $ret .= '<img border="0" src="/Pics/link_delicious.gif" alt="del.icio.us" title="del.icio.us"></a>';
- $ret .= '</div>';
-
- $ret .= '<div class="soclink">';
- $ret .= sprintf('<a href="http://technorati.com/faves?add=%s" target="_blank">', $urlenc);
- $ret .= '<img border="0" src="/Pics/link_technorati.gif" alt="Technorati" title="Technorati"></a>';
- $ret .= '</div>';
-
- return $ret;
-}
-
function teaserlink($teaser)
{
return preg_replace('/[^a-zA-Z0-9-]/', '-', $teaser);
for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
$row = pg_fetch_array ($sth, $nr);
- $body = ereg_replace ("<", "<",
- ereg_replace (">", ">",
- ereg_replace ("&", "&",
- str_replace ("\\\n", "",
- str_replace ("\r", "",
- $row['body'])))));
+ $body = str_replace(array('<','>','&',"\\\n","\r"),
+ array('<', '>', '&', '', ''),
+ $row['body']);
$date = explode (" ", $row['created']);
$time = explode (":", $date[1]);
$tz = substr($time[2], 2);
}
<protect>
- $adv_index = '<div align="center"><script type="text/javascript"><!--
-google_ad_client = "pub-3134552371074068";
-/* InfoCon Log Index */
-google_ad_slot = "0940423249";
-google_ad_width = 728;
-google_ad_height = 90;
-//-->
-</script>
-<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
-</script></div>';
-
- $adv_entry = '<div align="center"><script type="text/javascript"><!--
-google_ad_client = "pub-3134552371074068";
-/* InfoCon Log Entry */
-google_ad_slot = "7571618571";
-google_ad_width = 728;
-google_ad_height = 90;
-//-->
-</script>
-<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
-</script></div>';
-
$kontaktlink = '<p style="margin-left: -20px;"><strong><a href="../kontaktform.html">Zum Kontakformular</a></strong></p>';
</protect>
printf ("<div id=\"logcontent\">%s</div>", str_replace ("\\\n", "", str_replace ("\r", "", $row['body'])));
echo ("\n<div class=\"logfoot\">");
echo ("<div class=\"logfootleft\">");
-# echo add_social ("http://infocon.infodrom.org/logbook/".$url, $row['teaser']);
echo ("</div>");
echo ("<div class=\"logfootright\">");
printf ("%s | %s | <a href=\"%s\">permanent link</a>", $date, $row['category'], $url);