[geeklog-cvs] geeklog: Added "Send Pings" to the Story Options block (if enabl...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Jan 7 03:53:19 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/1b88a2104e51
changeset: 6653:1b88a2104e51
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Jan 04 10:47:34 2009 +0100
description:
Added "Send Pings" to the Story Options block (if enabled and allowed for the current user)

diffstat:

1 file changed, 11 insertions(+), 4 deletions(-)
public_html/article.php |   15 +++++++++++----

diffs (45 lines):

diff -r 8a1973c71aba -r 1b88a2104e51 public_html/article.php
--- a/public_html/article.php	Sun Jan 04 09:23:47 2009 +0100
+++ b/public_html/article.php	Sun Jan 04 10:47:34 2009 +0100
@@ -8,7 +8,7 @@
 // |                                                                           |
 // | Shows articles in various formats.                                        |
 // +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors:                         |
+// | Copyright (C) 2000-2009 by the following authors:                         |
 // |                                                                           |
 // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
 // |          Jason Whittenburg - jwhitten AT securitygeeks DOT com            |
@@ -31,15 +31,13 @@
 // | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
 // |                                                                           |
 // +---------------------------------------------------------------------------+
-//
-// $Id: article.php,v 1.99 2008/07/27 09:11:29 dhaun Exp $
 
 /**
 * This page is responsible for showing a single article in different modes which
 * may, or may not, include the comments attached
 *
 * @author   Jason Whittenburg
-* @author   Tony Bibbbs <tony at tonybibbs.com>
+* @author   Tony Bibbbs <tony AT tonybibbs DOT com>
 * @author   Vincent Furia <vinny01 AT users DOT sourceforge DOT net>
 */
 
@@ -284,6 +282,15 @@
                                                         'class' => $feedClass));
             }
         }
+        if ($_CONF['trackback_enabled'] &&
+                ($story->displayElements('trackbackcode') >= 0) &&
+                SEC_hasRights('story.ping') &&
+                ($story->displayElements('draft_flag') == 0) &&
+                ($story->displayElements('day') < time ())) {
+            $url = $_CONF['site_admin_url']
+                 . '/trackback.php?mode=sendall&id=' . $story->getSid();
+            $story_options[] = COM_createLink($LANG_TRB['send_trackback'], $url);
+        }
         $related = STORY_whatsRelated($story->displayElements('related'),
                                       $story->displayElements('uid'),
                                       $story->displayElements('tid'));



More information about the geeklog-cvs mailing list