OSDN Git Service

Now this trunk equal 3.62 without documentation. We need to test for install and...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / plugins / ping / ping.php
1 <?php
2 require(dirname(__FILE__).'/../../../config.php');
3
4 include_libs('PLUGINADMIN.php');
5
6 // create a object of the plugin via Plugin Admin
7 $oPluginAdmin = new PluginAdmin('Ping');
8 ACTIONLOG::add(INFO, 'NP_Ping: Sending ping (from background)');
9
10 $blogid = intval($argv[1]);
11 if ($blogid > 0) {
12         $oPluginAdmin->plugin->sendPings($blogid);
13 } else {
14         ACTIONLOG::add(WARNING, 'NP_Ping: invalid blogid, background ping abort');
15 }
16 ?>