ping.php

Go to the documentation of this file.
00001 <?php
00002 require(dirname(__FILE__).'/../../../config.php');
00003 
00004 include($DIR_LIBS . 'PLUGINADMIN.php');
00005 
00006 // create a object of the plugin via Plugin Admin
00007 $oPluginAdmin = new PluginAdmin('Ping');
00008 ACTIONLOG::add(INFO, 'NP_Ping: Sending ping (from background)');
00009 
00010 $blogid = intval($argv[1]);
00011 if ($blogid > 0) {
00012         $oPluginAdmin->plugin->sendPings($blogid);
00013 } else {
00014         ACTIONLOG::add(WARNING, 'NP_Ping: invalid blogid, background ping abort');
00015 }
00016 ?>



Generated on Wed Jun 25 17:25:59 2008 by  doxygen 1.5.5