} } } } //Email tag $html = str_replace('[Email]', $email, $html); //set web version links $html = str_replace('<webversion', '<a href="' . APP_PATH . '/w/' . short($subscriber_id) . '/' . short($subscriber_list) . '/' . short($campaign_id) . '" ', $html); $html = str_replace('</webversion>', '</a>', $html); $html = str_replace('[webversion]', APP_PATH . '/w/' . short($subscriber_id) . '/' . short($subscriber_list) . '/' . short($campaign_id), $html); //set unsubscribe links $html = str_replace('<unsubscribe', '<a href="' . APP_PATH . '/unsubscribe/' . short($email) . '/' . short($subscriber_list) . '/' . short($campaign_id) . '" ', $html); $html = str_replace('</unsubscribe>', '</a>', $html); $html = str_replace('[unsubscribe]', APP_PATH . '/unsubscribe/' . short($email) . '/' . short($subscriber_list) . '/' . short($campaign_id), $html); //convert date tags convert_date_tags(); //convert date tags function convert_date_tags() { global $timezone; global $html; global $sent; global $send_date; if ($timezone != '') { date_default_timezone_set($timezone); } $today = $sent == '' ? time() : $sent; $today = $send_date != '' && $send_date != 0 ? $send_date : $today; $currentdaynumber = strftime('%d', $today); $currentday = strftime('%A', $today); $currentmonthnumber = strftime('%m', $today);
require_once 'includes/user.php'; define("MAX_TITLE_LENGTH", 70); if ($bookmarks != null) { foreach ($bookmarks as $row) { if (!$anyBooks) { $anyBooks = true; require_once 'includes/convert_date.php'; if ($displayDivs) { echo "<div class=\"tags_content\">\n"; echo "<div class=\"inner\">\n"; include 'includes/searchform.php'; } } $rec_date = "{$row["formatted_time"]}"; $time_between = get_formatted_timediff($rec_date); $date_added = convert_date_tags($rec_date); $rec_id = "{$row["id"]}"; $rec_title = "{$row["title"]}"; $rec_url = "{$row["url"]}"; $rec_desc = "{$row["description"]}"; // Strip title if too long! if (strlen($rec_title) > MAX_TITLE_LENGTH) { $rec_title = substr($rec_title, 0, MAX_TITLE_LENGTH) . ".."; } if ($current_page != "") { $allTagsLinks = returnAllTagsLinks($rec_id, $current_page); } else { $allTagsLinks = returnAllTagsLinks($rec_id); } //no follow so that search engines don't increment the count echo "<div class=\"tagtitle\"><a href=\"redirect.php?id=" . $rec_id . "\" rel=\"nofollow\">" . $rec_title . "</a></div>\n";