From 31a53903e635ae84ae1551d52772e75f2380b416 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Nov 2010 00:47:02 +0300 Subject: add article forwarding by email (closes #271) --- functions.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index a11d9e59c..18e7b23f1 100644 --- a/functions.php +++ b/functions.php @@ -4787,7 +4787,7 @@ print "
"; - print "
"; $entry_author = $line["author"]; @@ -4819,7 +4819,7 @@ if (!$zoom_mode) { print "$tags_str (+)"; + href=\"#\" onclick=\"editArticleTags($id, $feed_id)\">(+)"; print "PubNote"; + if (DIGEST_ENABLE) { + print "Zoom"; + } + } else { $tags_str = strip_tags($tags_str); print "$tags_str"; @@ -6838,4 +6845,14 @@ print ""; } + + function save_email_address($link, $email) { + // FIXME: implement persistent storage of emails + + if (!$_SESSION['stored_emails']) + $_SESSION['stored_emails'] = array(); + + if (!in_array($email, $_SESSION['stored_emails'])) + array_push($_SESSION['stored_emails'], $email); + } ?> -- cgit v1.2.3-54-g00ecf