From fe9c434b2170e7bfd6f852c91c04eb769c75fb67 Mon Sep 17 00:00:00 2001 From: panda Date: Fri, 29 Nov 2002 09:11:12 +0900 Subject: [PATCH] =?utf8?q?=E3=81=B1=E3=82=93=E3=81=A0:=E9=96=8B=E7=99=BA?= =?utf8?q?=E6=97=A5=E8=A8=98/2002-11-29=E5=8F=82=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- init.php | 7 +-- ja.lng | 6 +- make_link.php | 24 +++++--- plugin.php | 4 +- plugin/aname.inc.php | 4 +- plugin/anchor.inc.php | 4 +- plugin/article.inc.php | 4 +- plugin/attach.inc.php | 4 +- plugin/calendar.inc.php | 8 +-- plugin/calendar2.inc.php | 4 +- plugin/calendar_edit.inc.php | 4 +- plugin/calendar_read.inc.php | 4 +- plugin/comment.inc.php | 4 +- plugin/counter.inc.php | 4 +- plugin/img.inc.php | 4 +- plugin/insert.inc.php | 8 ++- plugin/lookup.inc.php | 4 +- plugin/ls.inc.php | 4 +- plugin/memo.inc.php | 8 ++- plugin/navi.inc.php | 49 +++++++++------- plugin/newpage.inc.php | 4 +- plugin/online.inc.php | 4 +- plugin/pcomment.inc.php | 2 +- plugin/recent.inc.php | 2 +- plugin/source.inc.php | 4 +- plugin/template.inc.php | 4 +- plugin/update.inc.php | 4 +- plugin/version.inc.php | 4 +- plugin/vote.inc.php | 8 +-- plugin/yetlist.inc.php | 4 +- pukiwiki.ini.php | 14 +++-- pukiwiki.php | 10 ++-- readme.txt | 2 +- rss.php | 30 +++++----- skin/pukiwiki.skin.en.php | 129 +++++++++++++++++++++---------------------- skin/pukiwiki.skin.ja.php | 129 +++++++++++++++++++++---------------------- template.php | 4 +- 37 files changed, 267 insertions(+), 253 deletions(-) diff --git a/init.php b/init.php index 8774a35..f17928c 100644 --- a/init.php +++ b/init.php @@ -1,6 +1,6 @@ ":]+:?)\]\]'; diff --git a/ja.lng b/ja.lng index 78d725e..3e818a0 100644 --- a/ja.lng +++ b/ja.lng @@ -1,4 +1,4 @@ -ºÇ¿·¤Î%d·ï%s'; $_recent_plugin_li = '¡¦'; diff --git a/make_link.php b/make_link.php index 92b0a5a..6be64e1 100644 --- a/make_link.php +++ b/make_link.php @@ -1,4 +1,4 @@ -is_image = preg_match("/\.(gif|png|jpeg|jpg)$/i",$name); + if ($alias == '' and preg_match("/\.(gif|png|jpeg|jpg)$/i",$name)) { + $this->is_image = TRUE; + $this->image = "\"$alias\""; + } else if (preg_match("/\.(gif|png|jpeg|jpg)$/i",$alias)) { + $this->is_image = TRUE; + $this->image = "\"$name\""; + } else { + $this->is_image = FALSE; + $this->image = ''; + } } function toString() { global $link_target; - $body = $this->is_image ? - "name}\" border=\"0\" alt=\"{$this->alias}\">" : $this->alias; - - return "name}\" target=\"$link_target\">$body"; + return "name}\" target=\"$link_target\">" + .($this->is_image ? $this->image : $this->alias) + .''; } } class link_mailto extends link @@ -212,7 +220,7 @@ class link_wikiname extends link $this->rawname = rawurlencode($name); $this->rawrefer = rawurlencode($refer); - if ($vars['page'] != $name) + if ($vars['page'] != $name and is_page($name)) $related['t'.filemtime(get_filename(encode($name)))] = "rawname}\">{$this->special}".$this->passage(); } diff --git a/plugin.php b/plugin.php index 2bb1849..5ad1b77 100644 --- a/plugin.php +++ b/plugin.php @@ -1,6 +1,6 @@ - http://masui.net/pukiwiki/ -// $Id: attach.inc.php,v 1.9 2002/08/21 17:22:34 masui Exp $ +// $Id: attach.inc.php,v 1.10 2002/11/29 00:09:01 panda Exp $ // set PHP value to enable file upload ini_set("file_uploads","1"); diff --git a/plugin/calendar.inc.php b/plugin/calendar.inc.php index 5c9d84b..6c7920f 100644 --- a/plugin/calendar.inc.php +++ b/plugin/calendar.inc.php @@ -1,5 +1,5 @@ -&nobr;\n"; + $ret .= "  \n"; } $fweek=false; } @@ -164,7 +164,7 @@ function plugin_calendar_convert() { while($wday < 7) { // Blank - $ret .= " &nobr;\n"; + $ret .= "  \n"; $wday++; } } diff --git a/plugin/calendar2.inc.php b/plugin/calendar2.inc.php index 69fdcfd..505dc28 100644 --- a/plugin/calendar2.inc.php +++ b/plugin/calendar2.inc.php @@ -1,5 +1,5 @@ -\n"; + $s_page = htmlspecialchars($vars['page']); + $string = "
\n" ."
\n" ."\n" - ."\n" + ."\n" ."\n" ."\n" ."
\n" diff --git a/plugin/lookup.inc.php b/plugin/lookup.inc.php index bfbd93e..cfe108a 100644 --- a/plugin/lookup.inc.php +++ b/plugin/lookup.inc.php @@ -1,5 +1,5 @@ -\n"; + $s_page = htmlspecialchars($vars['page']); + $string = "\n" ."
\n" ."\n" - ."\n" + ."\n" ."\n" ."\n" ."
\n" diff --git a/plugin/navi.inc.php b/plugin/navi.inc.php index 07bcec6..9b930ee 100644 --- a/plugin/navi.inc.php +++ b/plugin/navi.inc.php @@ -1,30 +1,37 @@ -"; foreach ($pages as $page) { if (strip_bracket($page) == strip_bracket($home)) { continue; } - $ret .= "
  • ".make_link("[[$page]]"); + $ret .= "
  • ".make_link("[[$page]]")."
  • "; } $ret .= ""; } else { diff --git a/plugin/newpage.inc.php b/plugin/newpage.inc.php index 2924102..500bca6 100644 --- a/plugin/newpage.inc.php +++ b/plugin/newpage.inc.php @@ -1,5 +1,5 @@ -\n" . "\n" . "\n" - . "$_votes_plugin_votes\n" + . "$_vote_plugin_votes\n" . "\n"; $tdcnt = 0; @@ -143,7 +143,7 @@ function plugin_vote_convert() else $cls = "vote_td2"; $string .= "" - . "$link" + . "$link" . "$cnt  " . "\n"; } diff --git a/plugin/yetlist.inc.php b/plugin/yetlist.inc.php index ac5cccb..c0649a9 100644 --- a/plugin/yetlist.inc.php +++ b/plugin/yetlist.inc.php @@ -1,5 +1,5 @@ - http://home.arino.jp/ // Last-Update:2002-09-12 rev.1 diff --git a/pukiwiki.ini.php b/pukiwiki.ini.php index c12ea9e..7b7a60b 100644 --- a/pukiwiki.ini.php +++ b/pukiwiki.ini.php @@ -1,8 +1,8 @@ -'; - $add_top = '¥Ú¡¼¥¸¤Î¾å¤ËÄɲÃ'; + $add_top = '$_btn_addtop'; } if($post["notimestamp"]) $checked_time = "checked=\"checked\""; @@ -384,12 +384,12 @@ else if(arg_check("unfreeze") && $vars["page"] && $function_freeze) // º¹Ê¬¤Îɽ¼¨ else if(arg_check("diff")) { - $pagename = strip_bracket($get["page"]); + $pagename = htmlspecialchars(strip_bracket($get["page"])); if(!is_page($get["page"])) { $title = htmlspecialchars($pagename); $page = make_search($vars["page"]); - $body = "»ØÄꤵ¤ì¤¿¥Ú¡¼¥¸¤Ï¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£"; + $body = $_msg_notfound; } else { diff --git a/readme.txt b/readme.txt index 15aea94..9cc083c 100644 --- a/readme.txt +++ b/readme.txt @@ -87,7 +87,7 @@ DESCRIPTION attach 777 counter 777 skin 755 - plug-in 755 + plugin 755 ƒf[ƒ^‚̃oƒbƒNƒAƒbƒv•û–@ diff --git a/rss.php b/rss.php index 2e3fed0..4e37fbf 100644 --- a/rss.php +++ b/rss.php @@ -1,6 +1,6 @@ - -'?> +' ?> -<?=$page_title_utf8?> - +<?php echo $page_title_utf8 ?> + PukiWiki RecentChanges ja - + - -'?> +' ?> - "> - <?=$page_title_utf8?> - + "> + <?php echo $page_title_utf8 ?> + PukiWiki RecentChanges - + - + - diff --git a/skin/pukiwiki.skin.en.php b/skin/pukiwiki.skin.en.php index d44ac68..738cdfe 100644 --- a/skin/pukiwiki.skin.en.php +++ b/skin/pukiwiki.skin.en.php @@ -1,21 +1,16 @@ - + - + + - - <?=$page_title ?> - <?=$title?> + + <?php echo $page_title ?> - <?php echo $title ?> - +
    @@ -27,56 +22,56 @@ -
    +
    - - ">?
    - + + ">?
    +
    - - [ Reload ] + + [ Reload ]   - [ New - | Edit - | Diff - | Upload + [ New + | Edit + | Diff + | Upload ]   - - [ Front page - | List of pages - - | List of page files - - | Search - | Recent changes - - | Backup - - | ">Help + + [ Front page + | List of pages + + | List of page files + + | Search + | Recent changes + + | Backup + + | ">Help ]
    - - + +
    - + - - - + + +
    - - - + +
    - - Reload + + Reload   - New - Edit - Diff + New + Edit + Diff   - - Front page - List of pages - Search - Recent changes - - Backup - + + Front page + List of pages + Search + Recent changes + + Backup +   - ">Help + ">Help   - RSS of recent changes + RSS of recent changes
    - - Last-modified:
    - - - Link:
    - + + Last-modified:
    + + + Link:
    +
    - Modified by

    -
    - Powered by PHP

    - HTML convert time to sec. + Modified by

    +
    + Powered by PHP

    + HTML convert time to sec.
    diff --git a/skin/pukiwiki.skin.ja.php b/skin/pukiwiki.skin.ja.php index e75a703..cb6b023 100644 --- a/skin/pukiwiki.skin.ja.php +++ b/skin/pukiwiki.skin.ja.php @@ -1,22 +1,17 @@ - + - + + - + - <?=$page_title ?> - <?=$title?> + <?php echo $page_title ?> - <?php echo $title?> - +
    @@ -28,56 +23,56 @@ -
    +
    - - ">?
    - + + ">?
    +
    - - [ ¥ê¥í¡¼¥É ] + + [ ">¥ê¥í¡¼¥É ]   - [ ¿·µ¬ - | ÊÔ½¸ - | º¹Ê¬ - | źÉÕ + [ ¿·µ¬ + | ÊÔ½¸ + | º¹Ê¬ + | źÉÕ ]   - - [ ¥È¥Ã¥× - | °ìÍ÷ - - | ¥Õ¥¡¥¤¥ë̾°ìÍ÷ - - | ñ¸ì¸¡º÷ - | ºÇ½ª¹¹¿· - - | ¥Ð¥Ã¥¯¥¢¥Ã¥× - - | ">¥Ø¥ë¥× + + [ ¥È¥Ã¥× + | °ìÍ÷ + + | ¥Õ¥¡¥¤¥ë̾°ìÍ÷ + + | ñ¸ì¸¡º÷ + | ºÇ½ª¹¹¿· + + | ¥Ð¥Ã¥¯¥¢¥Ã¥× + + | ">¥Ø¥ë¥× ]
    - - + +
    - + - - - + + +
    - - - + +
    - - ¥ê¥í¡¼¥É + + ">¥ê¥í¡¼¥É   - ¿·µ¬ - ÊÔ½¸ - º¹Ê¬ + ¿·µ¬ + ÊÔ½¸ + º¹Ê¬   - - ¥È¥Ã¥× - °ìÍ÷ - ¸¡º÷ - ºÇ½ª¹¹¿· - - ¥Ð¥Ã¥¯¥¢¥Ã¥× - + + ¥È¥Ã¥× + °ìÍ÷ + ¸¡º÷ + ºÇ½ª¹¹¿· + + ¥Ð¥Ã¥¯¥¢¥Ã¥× +   - ">¥Ø¥ë¥× + ">¥Ø¥ë¥×   - ºÇ½ª¹¹¿·¤ÎRSS + ºÇ½ª¹¹¿·¤ÎRSS
    - - Last-modified:
    - - - Link:
    - + + Last-modified:
    + + + Link:
    +
    - Modified by

    -
    - Powered by PHP

    - HTML convert time to sec. + Modified by

    +
    + Powered by PHP

    + HTML convert time to sec.
    diff --git a/template.php b/template.php index 8be55c1..f39aa55 100644 --- a/template.php +++ b/template.php @@ -1,6 +1,6 @@ -