• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision3503f85f41c5a5bcecccb63b0876150fa02d2c87 (tree)
Time2003-02-14 16:28:34
Authorpanda <panda>
Commiterpanda

Log Message

add 'plugin_freeze_conevrt()'.

Change Summary

Incremental Difference

--- a/plugin/freeze.inc.php
+++ b/plugin/freeze.inc.php
@@ -2,28 +2,33 @@
22 /////////////////////////////////////////////////
33 // PukiWiki - Yet another WikiWikiWeb clone.
44 //
5-// $Id: freeze.inc.php,v 1.1 2003-01-27 05:38:46 panda Exp $
5+// $Id: freeze.inc.php,v 1.2 2003-02-14 07:28:34 panda Exp $
66 //
77 // 凍結
8+function plugin_freeze_convert()
9+{
10+ return '';
11+}
12+
813 function plugin_freeze_action()
914 {
1015 global $script,$post,$vars,$function_freeze,$adminpass;
11- global $_title_isfreezed,$_title_freezed,$_title_freeze,$_msg_invalidpass,$_msg_freezing,$_btn_freeze;
16+ global $_title_isfreezed,$_title_freezed,$_title_freeze;
17+ global $_msg_invalidpass,$_msg_freezing,$_btn_freeze;
1218
1319 $msg = $body = '';
1420
15- if (!$function_freeze or !is_page($vars['page']))
21+ if (!$function_freeze or !is_page($vars['page'])) {
1622 return array('msg'=>$msg,'body'=>$body);
23+ }
1724
1825 $pass = array_key_exists('pass',$post) ? $post['pass'] : NULL;
1926
20- if (is_freeze($vars['page']))
21- {
27+ if (is_freeze($vars['page'])) {
2228 $msg = $_title_isfreezed;
2329 $body = str_replace('$1',htmlspecialchars(strip_bracket($vars['page'])),$_title_isfreezed);
2430 }
25- else if (md5($pass) == $adminpass)
26- {
31+ else if (md5($pass) == $adminpass) {
2732 $postdata = get_source($post['page']);
2833 array_unshift($postdata,"#freeze\n");
2934 $postdata = join('',$postdata);
@@ -37,14 +42,14 @@ function plugin_freeze_action()
3742 $msg = $_title_freezed;
3843 $body = '';
3944 }
40- else
41- {
45+ else {
4246 $msg = $_title_freeze;
4347
4448 $body = "<br />\n";
4549
46- if ($pass !== NULL)
50+ if ($pass !== NULL) {
4751 $body .= "<strong>$_msg_invalidpass</strong><br />\n";
52+ }
4853
4954 $body.= "$_msg_freezing<br />\n";
5055