• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用


Commit MetaInfo

Revisiona7219e2bd3fb3a39fd174419e0499a72fdb63302 (tree)
Time2009-04-22 23:50:03
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk/utf8@1006 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/nucleus/plugins/NP_Ping.php
+++ b/nucleus/plugins/NP_Ping.php
@@ -9,6 +9,7 @@
99 v1.3 - pinged variable support
1010 v1.4 - language file support
1111 v1.5 - remove arg1 in exec() call
12+ v1.6 - move send update ping override option to plugin
1213 */
1314
1415 class NP_Ping extends NucleusPlugin {
@@ -17,7 +18,7 @@ class NP_Ping extends NucleusPlugin {
1718
1819 function getAuthor() { return 'admun (Edmond Hui)'; }
1920 function getURL() { return 'http://edmondhui.homeip.net/nudn'; }
20- function getVersion() { return '1.5'; }
21+ function getVersion() { return '1.6'; }
2122
2223 function getMinNucleusVersion() { return '330'; }
2324
@@ -56,7 +57,11 @@ class NP_Ping extends NucleusPlugin {
5657 }
5758
5859 function getEventList() {
59- return array('SendPing', 'JustPosted');
60+ return array(
61+ 'SendPing',
62+ 'JustPosted'
63+ 'AddItemFormExtras',
64+ 'EditItemFormExtras');
6065 }
6166
6267 function event_JustPosted($data) {
@@ -83,6 +88,26 @@ class NP_Ping extends NucleusPlugin {
8388 $this->sendPings($data);
8489 }
8590
91+ function DisplayFormOptions($sendping) {
92+ if ($sendping) {
93+ $check = 'checked="checked"';
94+ } else {
95+ $check = '';
96+ }
97+ $output = '<h3>' . _PING_EXTRA_PLUGIN_OPTION . '</h3>
98+ <p><input id="dosendping" name="dosendping" value="1" type="checkbox" ' . $check . '><label for="dosendping">' . _UPDATEDPING_GOSENDPING . '</label> </p>';
99+ echo $output;
100+ }
101+
102+ function event_AddItemFormExtras($data){
103+ $this->DisplayFormOptions($data['blog']->sendPing());
104+ }
105+
106+ function event_EditItemFormExtras($data){
107+ // we are not sending ping by default after edit an item
108+ $this->DisplayFormOptions(0);
109+ }
110+
86111 function sendPings($data) {
87112 if (!class_exists('xmlrpcmsg')) {
88113 global $DIR_LIBS;
--- a/nucleus/plugins/ping/english.php
+++ b/nucleus/plugins/ping/english.php
@@ -13,4 +13,6 @@
1313 define('_PING_PHP_ERROR', 'PHP Error: ');
1414 define('_PING_PHP_PING_ERROR', 'Error while trying to send ping. Sorry about that.');
1515 define('_PING_SUCCESS', 'Success');
16+ define('_UPDATEDPING_GOSENDPING', 'Send Update ping');
17+ define('_PING_EXTRA_PLUGIN_OPTION', 'Blog Tracking Ping Service');
1618 ?>
--- a/nucleus/plugins/ping/japanese-euc.php
+++ b/nucleus/plugins/ping/japanese-euc.php
@@ -13,4 +13,6 @@
1313 define('_PING_PHP_ERROR', 'PHP エラー: ');
1414 define('_PING_PHP_PING_ERROR', '申し訳ありません。ping を送信中にエラーが発生しました。');
1515 define('_PING_SUCCESS', '成功');
16+ define('_UPDATEDPING_GOSENDPING', 'pingを送信する');
17+ define('_PING_EXTRA_PLUGIN_OPTION', '更新ping');
1618 ?>
--- a/nucleus/plugins/ping/japanese-utf8.php
+++ b/nucleus/plugins/ping/japanese-utf8.php
@@ -13,4 +13,6 @@
1313 define('_PING_PHP_ERROR', 'PHP エラー: ');
1414 define('_PING_PHP_PING_ERROR', '申し訳ありません。ping を送信中にエラーが発生しました。');
1515 define('_PING_SUCCESS', '成功');
16+ define('_UPDATEDPING_GOSENDPING', 'pingを送信する');
17+ define('_PING_EXTRA_PLUGIN_OPTION', '更新ping');
1618 ?>
Show on old repository browser