[geeklog-cvs] geeklog-1.3/system lib-pingback.php,1.2,1.3 lib-story.php,1.19,1.20

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun Jan 30 08:51:11 EST 2005


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv9195/system

Modified Files:
lib-pingback.php lib-story.php
Log Message:
Hooked up sending of Pingbacks


Index: lib-pingback.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-pingback.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** lib-pingback.php 29 Jan 2005 11:25:06 -0000 1.2
--- lib-pingback.php 30 Jan 2005 13:51:09 -0000 1.3
***************
*** 119,127 ****
function PNB_sendPingback ($sourceURI, $targetURI)
{
$retval = '';

$pingback = PNB_getPingbackUrl ($targetURI);
if (empty ($pingback)) {
! return 'No pingback URL found.';
}

--- 119,129 ----
function PNB_sendPingback ($sourceURI, $targetURI)
{
+ global $LANG_TRB;
+
$retval = '';

$pingback = PNB_getPingbackUrl ($targetURI);
if (empty ($pingback)) {
! return $LANG_TRB['no_pingback_url'];
}


Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** lib-story.php 29 Jan 2005 18:03:13 -0000 1.19
--- lib-story.php 30 Jan 2005 13:51:09 -0000 1.20
***************
*** 207,214 ****
$article->set_var( 'story_bodytext_only', $bodytext );

! if( $_CONF['trackback_enabled'] && SEC_hasRights( 'story.ping' ))
{
! $url = $_CONF['site_admin_url'] . '/trackback.php?mode=new&id='
! . $A['sid'];
$article->set_var( 'send_trackback_link', '<a href="' . $url . '">'
. $LANG_TRB['send_trackback'] . '</a>' );
--- 207,215 ----
$article->set_var( 'story_bodytext_only', $bodytext );

! if(( $_CONF['trackback_enabled'] || $_CONF['pingback_enabled'] ) &&
! SEC_hasRights( 'story.ping' ))
{
! $url = $_CONF['site_admin_url']
! . '/trackback.php?mode=sendall&amp;id=' . $A['sid'];
$article->set_var( 'send_trackback_link', '<a href="' . $url . '">'
. $LANG_TRB['send_trackback'] . '</a>' );




More information about the geeklog-cvs mailing list