diff -bBaur b2e.old/blogs/admin/edit_actions.php b2e/blogs/admin/edit_actions.php
--- b2e.old/blogs/admin/edit_actions.php Tue Sep 13 16:11:02 2005
+++ b2e/blogs/admin/edit_actions.php Thu Mar 2 03:55:24 2006
@@ -131,6 +131,30 @@
$pingsdone, $post_urltitle, $post_url, $post_comments,
$post_renderers );
+ $postitem = Item_get_by_ID( $post_ID );
+?>
+
: ID;?>
+
+ :
+ permalink()?>
+
+
+ :
+ title('', '', false)?>
+
+
+ :
+ get( 'urltitle', 'htmlbody' )?>
+
+ :
+
+ : locale();?>
+
+ :
+ trackback_url()?>
+
+ 0)
{
echo '', T_('Sleeping...'), "
\n";
@@ -157,6 +181,7 @@
pingWeblogs($blogparams);
pingBlogs($blogparams);
pingTechnorati($blogparams);
+ pinggoogle($blogparams);
}
echo '', T_('Posting Done...'), "
\n";
break;
@@ -375,6 +400,7 @@
pingWeblogs($blogparams);
pingBlogs($blogparams);
pingTechnorati($blogparams);
+ pinggoogle($blogparams);
}
}
diff -bBaur b2e.old/blogs/b2evocore/_functions_pings.php b2e/blogs/b2evocore/_functions_pings.php
--- b2e.old/blogs/b2evocore/_functions_pings.php Tue Sep 13 16:11:02 2005
+++ b2e/blogs/b2evocore/_functions_pings.php Thu Mar 2 20:37:06 2006
@@ -11,6 +11,51 @@
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
+require_once dirname(__FILE__).'/_google_sitemap.php'; // Isn't 'once' a hack?
+
+/**
+ * pinggoogle(-)
+ *
+ * pings Google search engine
+ */
+function pinggoogle( & $blogparams, $display = true )
+{
+ global $baseurl;
+
+ // There are never a reason to not ping Google.
+ // So I'm lazy to add a config option to disable pinging Google
+ /*if( !get_bloginfo('pinggoogle',$blogparams) )
+ {
+ return false;
+ }*/
+ if( $display )
+ {
+ echo "\n";
+ echo '
', T_('Pinging google.com...'), "
\n";
+ }
+ if( !preg_match( '#^http://localhost[/:]#', $baseurl) )
+ { // Local install can only ping to local test server
+ $sitemap = sitemap_link( 'blogs', 'blog='.$blogparams->blog_ID );
+ $pingurl = 'http://www.google.com/webmasters/sitemaps/ping?sitemap=' .
+ urlencode($sitemap);
+ flush(); // Why this is needed?
+ $fp = fopen($pingurl, 'r');
+ $result = fread($fp, 1/*4096*/);
+ fclose($fp);
+ //if( $display )
+ // echo "
", T_('Response:'), " $result
\n";
+ if( $display ) echo '
', T_('Done').T_(' (hopefully)'), "
\n
\n";
+ return($ret);
+ }
+ else
+ {
+ if( $display ) echo "", T_('Aborted (Running on localhost).'), "
\n\n";
+ return(false);
+ }
+}
+
+
+
/**
* pingb2evonet(-)
*
diff -bBaur b2e.old/blogs/htsrv/getmail.php b2e/blogs/htsrv/getmail.php
--- b2e.old/blogs/htsrv/getmail.php Tue Sep 13 16:11:02 2005
+++ b2e/blogs/htsrv/getmail.php Tue Feb 28 23:12:12 2006
@@ -266,6 +266,7 @@
pingWeblogs($blogparams);
pingBlogs($blogparams);
pingTechnorati($blogparams);
+ pinggoogle($blogparams);
}
echo "\n", T_('Posted title'), ': ', $post_title, '
';
echo "\n", T_('Posted content'), ':
', $content, '';
diff -bBaur b2e.old/blogs/mms.php b2e/blogs/mms.php
--- b2e.old/blogs/mms.php Wed Jun 16 01:35:18 2004
+++ b2e/blogs/mms.php Thu Mar 2 20:37:29 2006
@@ -717,6 +717,7 @@
pingWeblogs( $blogparams, false );
pingBlogs( $blogparams );
pingTechnorati($blogparams);
+pinggoogle( $blogparams );
*/
exit;
diff -bBaur b2e.old/blogs/xmlsrv/xmlrpc.php b2e/blogs/xmlsrv/xmlrpc.php
--- b2e.old/blogs/xmlsrv/xmlrpc.php Tue Sep 13 16:11:10 2005
+++ b2e/blogs/xmlsrv/xmlrpc.php Thu Mar 2 20:33:04 2006
@@ -161,6 +161,8 @@
pingBlogs( $blogparams, false );
logIO("O","Pinging Technorati...");
pingTechnorati( $blogparams, false );
+ logIO("O","Pinging Google...");
+ pinggoogle( $blogparams, false );
return new xmlrpcresp(new xmlrpcval($post_ID));
@@ -421,6 +423,8 @@
pingBlogs( $blogparams, false );
logIO("O","Pinging Technorati...");
pingTechnorati( $blogparams, false );
+ logIO("O","Pinging Google...");
+ pinggoogle( $blogparams, false );
}
logIO("O","All done.");
@@ -596,6 +600,8 @@
pingBlogs( $blogparams, false );
logIO("O","Pinging Technorati...");
pingTechnorati( $blogparams, false );
+ logIO("O","Pinging Technorati...");
+ pinggoogle( $blogparams, false );
}
}