<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: init.php,v 1.18 2002/11/29 00:09:00 panda Exp $
+// $Id: init.php,v 1.19 2002/11/29 00:11:12 panda Exp $
/////////////////////////////////////////////////
// ÀßÄê¥Õ¥¡¥¤¥ë¤Î¾ì½ê
if($script == "") {
$script = (getenv('SERVER_PORT')==443?'https://':('http://')).getenv('SERVER_NAME').(getenv('SERVER_PORT')==80?'':(':'.getenv('SERVER_PORT'))).getenv('SCRIPT_NAME');
}
- $script =
- ($_SERVER['SERVER_PORT'] == 443 ? 'https://' : 'http://')
- . $_SERVER['SERVER_NAME']
- .($_SERVER['SERVER_PORT'] == 80 ? '' : ':'.$_SERVER['SERVER_PORT'])
- . $_SERVER['SCRIPT_NAME'];
$WikiName = '[A-Z][a-z]+(?:[A-Z][a-z]+)+';
//$BracketName = '\[\[(:?[^\s\]#&<>":]+:?)\]\]';
-<?
+<?php
///////////////////////////////////////
// PukiWiki message file (japanese/EUC)
$_btn_insert = 'ÄɲÃ';
///////////////////////////////////////
+// memo
+$_btn_memo_update = '¥á¥â¹¹¿·';
+
+///////////////////////////////////////
// recent
$_recent_plugin_frame = '<h5 class="side_label">ºÇ¿·¤Î%d·ï</h5><span class="small">%s</span>';
$_recent_plugin_li = '¡¦';
-<?
+<?php
// Last-Update:2002-09-24 rev.1
// ¥ê¥ó¥¯¤òÉղ乤ë
}
class link_url extends link
{
- var $is_image;
+ var $is_image,$image;
function link_url($name,$alias)
{
parent::link($name,'url',($alias == '') ? $name : $alias);
- $this->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 = "<img src=\"$name\" border=\"0\" alt=\"$alias\">";
+ } else if (preg_match("/\.(gif|png|jpeg|jpg)$/i",$alias)) {
+ $this->is_image = TRUE;
+ $this->image = "<img src=\"$alias\" border=\"0\" alt=\"$name\">";
+ } else {
+ $this->is_image = FALSE;
+ $this->image = '';
+ }
}
function toString()
{
global $link_target;
- $body = $this->is_image ?
- "<img src=\"{$this->name}\" border=\"0\" alt=\"{$this->alias}\">" : $this->alias;
-
- return "<a href=\"{$this->name}\" target=\"$link_target\">$body</a>";
+ return "<a href=\"{$this->name}\" target=\"$link_target\">"
+ .($this->is_image ? $this->image : $this->alias)
+ .'</a>';
}
}
class link_mailto 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)))] = "<a href=\"$script?{$this->rawname}\">{$this->special}</a>".$this->passage();
}
-<?
+<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: plugin.php,v 1.1 2002/06/21 05:21:46 masui Exp $
+// $Id: plugin.php,v 1.2 2002/11/29 00:09:00 panda Exp $
/////////////////////////////////////////////////
// ¥×¥é¥°¥¤¥óÍѤË̤ÄêµÁ¤ÎÊÑ¿ô¤òÀßÄê
-<?
-// $Id: aname.inc.php,v 1.4 2002/08/21 17:32:04 masui Exp $
+<?php
+// $Id: aname.inc.php,v 1.5 2002/11/29 00:09:01 panda Exp $
function plugin_aname_convert()
{
-<?
-// $Id: anchor.inc.php,v 1.2 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: anchor.inc.php,v 1.3 2002/11/29 00:09:01 panda Exp $
function plugin_anchor_convert()
{
-<?
+<?php
/*
PukiWiki BBSÉ÷¥×¥é¥°¥¤¥ó
-Åê¹ÆÆâÍƤΥ᡼¥ë¼«Æ°ÇÛ¿®Àè
¤òÀßÄê¤Î¾å¡¢¤´»ÈÍѤ¯¤À¤µ¤¤¡£
- $Id: article.inc.php,v 1.5 2002/07/02 04:20:20 masui Exp $
+ $Id: article.inc.php,v 1.6 2002/11/29 00:09:01 panda Exp $
*/
-<?
+<?php
// ¥×¥é¥°¥¤¥ó attach
// changed by Y.MASUI <masui@hisec.co.jp> 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");
-<?
-// $Id: calendar.inc.php,v 1.8 2002/09/15 07:05:52 masui Exp $
+<?php
+// $Id: calendar.inc.php,v 1.9 2002/11/29 00:09:01 panda Exp $
function plugin_calendar_convert()
{
{
for($i=0;$i<$wday;$i++)
{ // Blank
- $ret .= " <td align=\"center\" class=\"style_td_blank\">&nobr;</td>\n";
+ $ret .= " <td align=\"center\" class=\"style_td_blank\"> </td>\n";
}
$fweek=false;
}
{
while($wday < 7)
{ // Blank
- $ret .= " <td align=\"center\" class=\"style_td_blank\">&nobr;</td>\n";
+ $ret .= " <td align=\"center\" class=\"style_td_blank\"> </td>\n";
$wday++;
}
}
-<?
-// $Id: calendar2.inc.php,v 1.10 2002/09/04 06:49:13 masui Exp $
+<?php
+// $Id: calendar2.inc.php,v 1.11 2002/11/29 00:09:01 panda Exp $
function plugin_calendar2_convert()
{
-<?
-// $Id: calendar_edit.inc.php,v 1.3 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: calendar_edit.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
function plugin_calendar_edit_convert()
{
-<?
-// $Id: calendar_read.inc.php,v 1.3 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: calendar_read.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
function plugin_calendar_read_convert()
{
-<?
-// $Id: comment.inc.php,v 1.8 2002/07/16 11:26:55 masui Exp $
+<?php
+// $Id: comment.inc.php,v 1.9 2002/11/29 00:09:01 panda Exp $
global $name_cols, $comment_cols, $msg_format, $name_format;
global $msg_format, $now_format, $comment_format;
-<?
+<?php
/*
* PukiWiki ¥«¥¦¥ó¥¿¡¼¥×¥é¥°¥¤¥ó
*
* CopyRight 2002 Y.MASUI GPL2
* http://masui.net/pukiwiki/ masui@masui.net
*
- * $Id: counter.inc.php,v 1.3 2002/07/01 07:08:57 masui Exp $
+ * $Id: counter.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
*/
// counter file
-<?
-// $Id: img.inc.php,v 1.4 2002/07/02 05:38:17 masui Exp $
+<?php
+// $Id: img.inc.php,v 1.5 2002/11/29 00:09:01 panda Exp $
function plugin_img_convert()
{
if(func_num_args()!=2) {
-<?
-// $Id: insert.inc.php,v 1.4 2002/07/18 16:28:33 masui Exp $
+<?php
+// $Id: insert.inc.php,v 1.5 2002/11/29 00:09:01 panda Exp $
/////////////////////////////////////////////////
// ¥Æ¥¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô
if((arg_check("read")||$vars["cmd"] == ""||arg_check("unfreeze")||arg_check("freeze")||$vars["write"]||$vars["insert"]))
$button = "<input type=\"submit\" name=\"insert\" value=\"$_btn_insert\" />\n";
+ $s_page = htmlspecialchars($vars['page']);
+
$string = "<form action=\"$script\" method=\"post\">\n"
."<div>\n"
."<input type=\"hidden\" name=\"insert_no\" value=\"$insert_no\" />\n"
- ."<input type=\"hidden\" name=\"refer\" value=\"$vars[page]\" />\n"
+ ."<input type=\"hidden\" name=\"refer\" value=\"$s_page\" />\n"
."<input type=\"hidden\" name=\"plugin\" value=\"insert\" />\n"
."<input type=\"hidden\" name=\"digest\" value=\"$digest\" />\n"
."<textarea name=\"msg\" rows=\"".INSERT_ROWS."\" cols=\"".INSERT_COLS."\">\n</textarea><br />\n"
-<?
-// $Id: lookup.inc.php,v 1.5 2002/07/12 11:53:56 masui Exp $
+<?php
+// $Id: lookup.inc.php,v 1.6 2002/11/29 00:09:01 panda Exp $
function plugin_lookup_convert()
{
-<?
+<?php
/*
* PukiWiki ls¥×¥é¥°¥¤¥ó
*
* CopyRight 2002 Y.MASUI GPL2
* http://masui.net/pukiwiki/ masui@masui.net
*
- * $Id: ls.inc.php,v 1.3 2002/06/26 06:23:57 masui Exp $
+ * $Id: ls.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
*/
function plugin_ls_convert()
-<?
-// $Id: memo.inc.php,v 1.3 2002/07/01 07:08:57 masui Exp $
+<?php
+// $Id: memo.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
/////////////////////////////////////////////////
// ¥Æ¥¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô
if((arg_check("read")||$vars["cmd"] == ""||arg_check("unfreeze")||arg_check("freeze")||$vars["write"]||$vars["memo"]))
$button = "<input type=\"submit\" name=\"memo\" value=\"$_btn_memo_update\" />\n";
+ $s_page = htmlspecialchars($vars['page']);
+
$string = "<form action=\"$script\" method=\"post\" class=\"memo\">\n"
."<div>\n"
."<input type=\"hidden\" name=\"memo_no\" value=\"$memo_no\" />\n"
- ."<input type=\"hidden\" name=\"refer\" value=\"$vars[page]\" />\n"
+ ."<input type=\"hidden\" name=\"refer\" value=\"$s_page\" />\n"
."<input type=\"hidden\" name=\"plugin\" value=\"memo\" />\n"
."<input type=\"hidden\" name=\"digest\" value=\"$digest\" />\n"
."<textarea name=\"msg\" rows=\"".MEMO_ROWS."\" cols=\"".MEMO_COLS."\">\n$data</textarea><br />\n"
-<?
-// ¥×¥é¥°¥¤¥ó navi
+<?php
+/*
+Last-Update:2002-10-15 rev.2
-// http://home.arino.jp/index.php?%5B%5Bnavi.inc.php%5D%5D
+*¥×¥é¥°¥¤¥ó navi
-// DobBookÉ÷¤Î¥Ê¥Ó¥²¡¼¥·¥ç¥ó¥Ð¡¼¤òɽ¼¨¤¹¤ë
+http://home.arino.jp/index.php?%5B%5Bnavi.inc.php%5D%5D
-// Usage
-// #navi(page)
-//
-// page : HOME¤È¤Ê¤ë¥Ú¡¼¥¸¡£¾Êά¤¹¤ë¤È¼«¥Ú¡¼¥¸¤òÌܼ¡¤È¤¹¤ë¡£
+DobBookÉ÷¤Î¥Ê¥Ó¥²¡¼¥·¥ç¥ó¥Ð¡¼¤òɽ¼¨¤¹¤ë
-// 1²óÌܤλ²¾È(HOME) : ¥Ú¡¼¥¸°ìÍ÷¤òls.inc.phpÉ÷¤Ëɽ¼¨¤¹¤ë
-//
-// 1²óÌܤλ²¾È(HOME°Ê³°)
-// header : ¥Ø¥Ã¥ÀÉ÷
-// prev next
-// -----------------
+*Usage
+ #navi(page)
-// 2²óÌܤλ²¾È
-// footer : ¥Õ¥Ã¥¿É÷
-// ------------------
-// prev home next
-// title up title
+*¥Ñ¥é¥á¡¼¥¿
+-page~
+ HOME¤È¤Ê¤ë¥Ú¡¼¥¸¡£¾Êά¤¹¤ë¤È¼«¥Ú¡¼¥¸¤òHOME¤È¤¹¤ë¡£
-// 1¥Ú¡¼¥¸¤Ç2²ó¸Æ¤Ð¤ì¤ë¤³¤È¤ò¹Íθ¤·¤Æ¡¢´ØÏ¢ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ë¤Ë»ý¤Ä¡£
+*Æ°ºî
+1¥Ú¡¼¥¸¤Ç2²ó¸Æ¤Ð¤ì¤ë¤³¤È¤ò¹Íθ¤·¤Æ¡¢´ØÏ¢ÊÑ¿ô¤Ï¥°¥í¡¼¥Ð¥ë¤Ë»ý¤Ä¡£
+
+-1²óÌܤλ²¾È(HOME)~
+ ¥Ú¡¼¥¸°ìÍ÷¤òls.inc.phpÉ÷¤Ëɽ¼¨¤¹¤ë
+-1²óÌܤλ²¾È(HOME°Ê³°)
+ header : ¥Ø¥Ã¥ÀÉ÷
+ prev next
+ -----------------
+-2²óÌܤλ²¾È
+ footer : ¥Õ¥Ã¥¿É÷
+ ------------------
+ prev home next
+ title up title
+
+*/
function plugin_navi_convert() {
global $vars, $script;
global $_navi_pages;
$ret .= "<ul>";
foreach ($pages as $page) {
if (strip_bracket($page) == strip_bracket($home)) { continue; }
- $ret .= "<li>".make_link("[[$page]]");
+ $ret .= "<li>".make_link("[[$page]]")."</li>";
}
$ret .= "</ul>";
} else {
-<?
-// $Id: newpage.inc.php,v 1.3 2002/07/01 07:08:57 masui Exp $
+<?php
+// $Id: newpage.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
function plugin_newpage_init()
{
-<?
-// $Id: online.inc.php,v 1.3 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: online.inc.php,v 1.4 2002/11/29 00:09:01 panda Exp $
// user list file
define(USR_LST, "counter/user.dat");
-<?
+<?php
/*
Last-Update:2002-09-12 rev.15
-<?
+<?php
/*
* PukiWiki ºÇ¿·¤Î?·ï¤òɽ¼¨¤¹¤ë¥×¥é¥°¥¤¥ó
*
-<?
-// $Id: source.inc.php,v 1.2 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: source.inc.php,v 1.3 2002/11/29 00:09:01 panda Exp $
function plugin_source_action()
{
-<?
-// $Id: template.inc.php,v 1.4 2002/07/01 07:08:57 masui Exp $
+<?php
+// $Id: template.inc.php,v 1.5 2002/11/29 00:09:01 panda Exp $
define("MAX_LEN",60);
function plugin_template_action()
-<?
-// $Id: update.inc.php,v 1.2 2002/06/26 06:23:57 masui Exp $
+<?php
+// $Id: update.inc.php,v 1.3 2002/11/29 00:09:01 panda Exp $
///////////////////////
//
-<?
-// $Id: version.inc.php,v 1.4 2002/07/01 07:08:57 masui Exp $
+<?php
+// $Id: version.inc.php,v 1.5 2002/11/29 00:09:01 panda Exp $
function plugin_version_convert()
{
-<?
-// $Id: vote.inc.php,v 1.7 2002/07/02 05:02:51 masui Exp $
+<?php
+// $Id: vote.inc.php,v 1.8 2002/11/29 00:09:01 panda Exp $
function plugin_vote_init()
{
. "<input type=\"hidden\" name=\"vote_no\" value=\"".htmlspecialchars($vote_no)."\" />\n"
. "<input type=\"hidden\" name=\"digest\" value=\"".htmlspecialchars($digest)."\" />\n"
. "</td>\n"
- . "<td align=\"center\" class=\"vote_label\"><strong>$_votes_plugin_votes</strong></td>\n"
+ . "<td align=\"center\" class=\"vote_label\"><strong>$_vote_plugin_votes</strong></td>\n"
. "</tr>\n";
$tdcnt = 0;
else $cls = "vote_td2";
$string .= "<tr>"
- . "<td align=\"left\" class=\"$cls\" style=\"padding-left:1em;padding-right:1em;nowrap=\"nowrap\">$link</td>"
+ . "<td align=\"left\" class=\"$cls\" style=\"padding-left:1em;padding-right:1em;\" nowrap=\"nowrap\">$link</td>"
. "<td align=\"right\" class=\"$cls\" nowrap=\"nowrap\">$cnt <input type=\"submit\" name=\"vote_".htmlspecialchars($arg)."\" value=\"$_vote_plugin_votes\" class=\"submit\" /></td>"
. "</tr>\n";
}
-<?
-// $Id: yetlist.inc.php,v 1.6 2002/10/15 05:28:09 masui Exp $
+<?php
+// $Id: yetlist.inc.php,v 1.7 2002/11/29 00:09:01 panda Exp $
// modified by PANDA <panda@arino.jp> http://home.arino.jp/
// Last-Update:2002-09-12 rev.1
-<?\r
+<?php\r
/////////////////////////////////////////////////\r
// PukiWiki - Yet another WikiWikiWeb clone.\r
//\r
-// $Id: pukiwiki.ini.php,v 1.13 2002/09/15 07:05:51 masui Exp $\r
+// $Id: pukiwiki.ini.php,v 1.14 2002/11/29 00:09:00 panda Exp $\r
//\r
// PukiWiki setting file\r
\r
define("PLUGIN_DIR","./plugin/");\r
\r
/////////////////////////////////////////////////\r
+// Language\r
+define("LANG","ja");\r
+\r
+/////////////////////////////////////////////////\r
// ¥¹¥¥ó¥Õ¥¡¥¤¥ë¤Î¾ì½ê¡£\r
-define("SKIN_FILE","./skin/pukiwiki.skin.ja.php");\r
+define("SKIN_FILE","./skin/pukiwiki.skin.".LANG.".php");\r
\r
/////////////////////////////////////////////////\r
-// Language\r
-define("LANG","ja");\r
+// ¸À¸ì¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß(ÊÔ½¸¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤)\r
+require(LANG.".lng");\r
\r
/////////////////////////////////////////////////\r
// index.php ¤Ê¤É¤ËÊѹ¹¤·¤¿¾ì¹ç¤Î¥¹¥¯¥ê¥×¥È̾¤ÎÀßÄê\r
-<?
+<?php
// pukiwiki.php - Yet another WikiWikiWeb clone.
//
// PukiWiki 1.3.*
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
-// $Id: pukiwiki.php,v 1.15 2002/10/15 05:28:09 masui Exp $
+// $Id: pukiwiki.php,v 1.16 2002/11/29 00:09:00 panda Exp $
/////////////////////////////////////////////////
{
if($post["add_top"]) $checked_top = " checked=\"checked\"";
$addtag = '<input type="hidden" name="add" value="true" />';
- $add_top = '<input type="checkbox" name="add_top" value="true"'.$checked_top.' /><span class="small">¥Ú¡¼¥¸¤Î¾å¤ËÄɲÃ</span>';
+ $add_top = '<input type="checkbox" name="add_top" value="true"'.$checked_top.' /><span class="small">$_btn_addtop</span>';
}
if($post["notimestamp"]) $checked_time = "checked=\"checked\"";
// º¹Ê¬¤Îɽ¼¨
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
{
attach 777\r
counter 777\r
skin 755\r
- plug-in 755\r
+ plugin 755\r
\r
\83f\81[\83^\82Ì\83o\83b\83N\83A\83b\83v\95û\96@\r
\r
-<?
+<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: rss.php,v 1.4 2002/07/19 10:38:37 masui Exp $
+// $Id: rss.php,v 1.5 2002/11/29 00:09:00 panda Exp $
/////////////////////////////////////////////////
// RecentChanges ¤Î RSS ¤ò½ÐÎÏ
$url = $match[1];
}
+ $title = htmlspecialchars($title);
+
$desc = date("D, d M Y H:i:s T",filemtime(get_filename(encode($match[1]))));
if($rss==2)
if($rss==1)
{
?>
-<?='<?xml version="1.0" encoding="UTF-8"?>'?>
+<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
<rss version="0.91">
<channel>
-<title><?=$page_title_utf8?></title>
-<link><?="http://".SERVER_NAME.PHP_SELF."?$whatsnew"?></link>
+<title><?php echo $page_title_utf8 ?></title>
+<link><?php echo "http://".SERVER_NAME.PHP_SELF."?$whatsnew" ?></link>
<description>PukiWiki RecentChanges</description>
<language>ja</language>
-<?=$items?>
+<?php echo $items ?>
</channel>
</rss>
-<?
+<?php
}
else if($rss==2)
{
?>
-<?='<?xml version="1.0" encoding="utf-8"?>'?>
+<?php echo '<?xml version="1.0" encoding="utf-8"?>' ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xml:lang="ja">
- <channel rdf:about="<?="http://".SERVER_NAME.PHP_SELF."?rss"?>">
- <title><?=$page_title_utf8?></title>
- <link><?="http://".SERVER_NAME.PHP_SELF."?$whatsnew"?></link>
+ <channel rdf:about="<?php echo "http://".SERVER_NAME.PHP_SELF."?rss" ?>">
+ <title><?php echo $page_title_utf8 ?></title>
+ <link><?php echo "http://".SERVER_NAME.PHP_SELF."?$whatsnew" ?></link>
<description>PukiWiki RecentChanges</description>
<items>
<rdf:Seq>
-<?=$rdf_li?>
+<?php echo $rdf_li ?>
</rdf:Seq>
</items>
</channel>
-<?=$items?>
+<?php echo $items ?>
</rdf:RDF>
-<?
+<?php
}
}
?>
-<? global $page_title; header("Content-Type: text/html; charset=iso-8859-1") ?>
+<?php global $page_title; header("Content-Type: text/html; charset=iso-8859-1") ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-style-type" content="text/css">
-<?if (! ( ($vars['cmd']==''||$vars['cmd']=='read') && $is_page) ) { ?>
+ <meta http-equiv="content-script-type" content="text/javascript">
+<?php if (! ( ($vars['cmd']==''||$vars['cmd']=='read') && $is_page) ) { ?>
<meta name="robots" content="noindex,nofollow" />
-<? } ?>
- <title><?=$page_title ?> - <?=$title?></title>
+<?php } ?>
+ <title><?php echo $page_title ?> - <?php echo $title ?></title>
<link rel="stylesheet" href="skin/default.en.css" type="text/css" media="screen" charset="iso-8859-1">
- <script type="text/javascript">
- <!--
- function open_mini(URL,width,height){
- aWindow = window.open(URL, "mini", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width="+width+",height="+height);
- }
- //-->
- </script>
+ <script language=javascript src="skin/default.js"></script>
</head>
<body>
<div>
<td rowspan="2" style="width:20px">
</td>
<td valign="bottom">
- <strong style="font-size:30px"><?=$page?></strong><br />
+ <strong style="font-size:30px"><?php echo $page ?></strong><br />
</td></tr>
<tr><td valign="top">
- <? if($is_page) { ?>
- <a style="font-size:8px" href="<?=$script?>?<?=rawurlencode($vars["page"])?>"><?=$script?>?<?=rawurlencode($vars["page"])?></a><br />
- <? } ?>
+ <?php if($is_page) { ?>
+ <a style="font-size:8px" href="<?php echo $script ?>?<?php echo rawurlencode($vars["page"]) ?>"><?php echo $script ?>?<?php echo rawurlencode($vars["page"]) ?></a><br />
+ <?php } ?>
</td></tr>
</table>
<br />
- <? if($is_page) { ?>
- [ <a href="<?=$script?>?<?=rawurlencode($vars[page])?>">Reload</a> ]
+ <?php if($is_page) { ?>
+ [ <a href="<?php echo $script ?>?<?php echo rawurlencode($vars[page]) ?>">Reload</a> ]
- [ <a href="<?=$script?>?plugin=newpage">New</a>
- | <a href="<?=$link_edit?>">Edit</a>
- | <a href="<?=$link_diff?>">Diff</a>
- | <a href="<?=$script?>?plugin=attach&pcmd=upload&page=<?=rawurlencode($vars[page])?>">Upload</a>
+ [ <a href="<?php echo $script ?>?plugin=newpage">New</a>
+ | <a href="<?php echo $link_edit ?>">Edit</a>
+ | <a href="<?php echo $link_diff ?>">Diff</a>
+ | <a href="<?php echo $script ?>?plugin=attach&pcmd=upload&page=<?php echo rawurlencode($vars[page]) ?>">Upload</a>
]
- <? } ?>
- [ <a href="<?=$link_top?>">Front page</a>
- | <a href="<?=$link_list?>">List of pages</a>
- <? if(arg_check("list")) { ?>
- | <a href="<?=$link_filelist?>">List of page files</a>
- <? } ?>
- | <a href="<?=$link_search?>">Search</a>
- | <a href="<?=$link_whatsnew?>">Recent changes</a>
- <? if($do_backup) { ?>
- | <a href="<?=$link_backup?>">Backup</a>
- <? } ?>
- | <a href="<?="$script?".rawurlencode("[[Help]]")?>">Help</a>
+ <?php } ?>
+ [ <a href="<?php echo $link_top ?>">Front page</a>
+ | <a href="<?php echo $link_list ?>">List of pages</a>
+ <?php if(arg_check("list")) { ?>
+ | <a href="<?php echo $link_filelist ?>">List of page files</a>
+ <?php } ?>
+ | <a href="<?php echo $link_search ?>">Search</a>
+ | <a href="<?php echo $link_whatsnew ?>">Recent changes</a>
+ <?php if($do_backup) { ?>
+ | <a href="<?php echo $link_backup ?>">Backup</a>
+ <?php } ?>
+ | <a href="<?php echo "$script?".rawurlencode("[[Help]]") ?>">Help</a>
]<br />
- <?=$hr?>
- <?if($is_page){ ?>
+ <?php echo $hr ?>
+ <?php if($is_page){ ?>
<table cellspacing="1" cellpadding="0" border="0" width="100%">
<tr>
<td valign="top" style="width:120px;word-break:break-all;">
- <? echo convert_html(@join("",@file(get_filename(encode("MenuBar"))))); ?>
+ <?php echo convert_html(@join("",@file(get_filename(encode("MenuBar"))))) ?>
</td>
<td style="width:10px">
</td>
<td valign="top">
- <? } ?>
- <?=$body?>
- <?if($is_page){ ?>
+ <?php } ?>
+ <?php echo $body ?>
+ <?php if($is_page){ ?>
</td>
</tr>
</table>
- <? } ?>
- <?=$hr?>
- <?
+ <?php } ?>
+ <?php echo $hr ?>
+ <?php
if(file_exists(PLUGIN_DIR."attach.inc.php") && $is_read)
{
require_once(PLUGIN_DIR."attach.inc.php");
}
?>
<div style="text-align:right">
- <? if($is_page) { ?>
- <a href="<?=$script?>?<?=rawurlencode($vars[page])?>"><img src="./image/reload.gif" width="20" height="20" border="0" alt="Reload" /></a>
+ <?php if($is_page) { ?>
+ <a href="<?php echo $script;?>?<?php echo rawurlencode($vars[page]) ?>"><img src="./image/reload.gif" width="20" height="20" border="0" alt="Reload" /></a>
- <a href="<?=$script?>?plugin=newpage"><img src="./image/new.gif" width="20" height="20" border="0" alt="New" /></a>
- <a href="<?=$link_edit?>"><img src="./image/edit.gif" width="20" height="20" border="0" alt="Edit" /></a>
- <a href="<?=$link_diff?>"><img src="./image/diff.gif" width="20" height="20" border="0" alt="Diff" /></a>
+ <a href="<?php echo $script ?>?plugin=newpage"><img src="./image/new.gif" width="20" height="20" border="0" alt="New" /></a>
+ <a href="<?php echo $link_edit ?>"><img src="./image/edit.gif" width="20" height="20" border="0" alt="Edit" /></a>
+ <a href="<?php echo $link_diff ?>"><img src="./image/diff.gif" width="20" height="20" border="0" alt="Diff" /></a>
- <? } ?>
- <a href="<?=$link_top?>"><img src="./image/top.gif" width="20" height="20" border="0" alt="Front page" /></a>
- <a href="<?=$link_list?>"><img src="./image/list.gif" width="20" height="20" border="0" alt="List of pages" /></a>
- <a href="<?=$link_search?>"><img src="./image/search.gif" width="20" height="20" border="0" alt="Search" /></a>
- <a href="<?=$link_whatsnew?>"><img src="./image/recentchanges.gif" width="20" height="20" border="0" alt="Recent changes" /></a>
- <? if($do_backup) { ?>
- <a href="<?=$link_backup?>"><img src="./image/backup.gif" width="20" height="20" border="0" alt="Backup" /></a>
- <? } ?>
+ <?php } ?>
+ <a href="<?php echo $link_top ?>"><img src="./image/top.gif" width="20" height="20" border="0" alt="Front page" /></a>
+ <a href="<?php echo link_list ?>"><img src="./image/list.gif" width="20" height="20" border="0" alt="List of pages" /></a>
+ <a href="<?php echo $link_search ?>"><img src="./image/search.gif" width="20" height="20" border="0" alt="Search" /></a>
+ <a href="<?php echo $link_whatsnew ?>"><img src="./image/recentchanges.gif" width="20" height="20" border="0" alt="Recent changes" /></a>
+ <?php if($do_backup) { ?>
+ <a href="<?php echo $link_backup ?>"><img src="./image/backup.gif" width="20" height="20" border="0" alt="Backup" /></a>
+ <?php } ?>
- <a href="<?="$script?".rawurlencode("[[Help]]")?>"><img src="./image/help.gif" width="20" height="20" border="0" alt="Help" /></a>
+ <a href="<?php echo "$script?".rawurlencode("[[Help]]") ?>"><img src="./image/help.gif" width="20" height="20" border="0" alt="Help" /></a>
- <a href="<?=$script?>?cmd=rss"><img src="./image/rss.gif" width="36" height="14" border="0" alt="RSS of recent changes" /></a>
+ <a href="<?php echo $script ?>?cmd=rss"><img src="./image/rss.gif" width="36" height="14" border="0" alt="RSS of recent changes" /></a>
</div>
- <? if($fmt) { ?>
- <span class="small">Last-modified: <?=date("D, d M Y H:i:s T",$fmt)?></span> <?=get_pg_passage($vars["page"])?><br />
- <? } ?>
- <? if($related) { ?>
- <span class="small">Link: <?=$related?></span><br />
- <? } ?>
+ <?php if($fmt) { ?>
+ <span class="small">Last-modified: <?php echo date("D, d M Y H:i:s T",$fmt) ?></span> <?php echo get_pg_passage($vars["page"]) ?><br />
+ <?php } ?>
+ <?php if($related) { ?>
+ <span class="small">Link: <?php echo $related ?></span><br />
+ <?php } ?>
<br />
<address>
- Modified by <a href="<?=$modifierlink?>"><?=$modifier?></a><br /><br />
- <?=S_COPYRIGHT?><br />
- Powered by PHP <?=PHP_VERSION?><br /><br />
- HTML convert time to <?=$taketime?> sec.
+ Modified by <a href="<?php echo $modifierlink ?>"><?php echo $modifier ?></a><br /><br />
+ <?php echo S_COPYRIGHT ?><br />
+ Powered by PHP <?php echo PHP_VERSION ?><br /><br />
+ HTML convert time to <?php echo $taketime ?> sec.
</address>
</div>
</body>
-<? global $page_title; header("Content-Type: text/html; charset=euc-jp") ?>\r
+<?php global $page_title; header("Content-Type: text/html; charset=euc-jp") ?>\r
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
<html>\r
<head>\r
<meta http-equiv="content-type" content="text/html; charset=euc-jp">\r
<meta http-equiv="content-style-type" content="text/css">\r
-<?if (! ( ($vars['cmd']==''||$vars['cmd']=='read') && $is_page) ) { ?>\r
+ <meta http-equiv="content-script-type" content="text/javascript">\r
+<?php if (! ( ($vars['cmd']==''||$vars['cmd']=='read') && $is_page) ) { ?>\r
<meta name="robots" content="noindex,nofollow" />\r
-<? } ?>\r
+<?php } ?>\r
\r
- <title><?=$page_title ?> - <?=$title?></title>\r
+ <title><?php echo $page_title ?> - <?php echo $title?></title>\r
<link rel="stylesheet" href="skin/default.ja.css" type="text/css" media="screen" charset="shift_jis">\r
- <script type="text/javascript">\r
- <!--\r
- function open_mini(URL,width,height){\r
- aWindow = window.open(URL, "mini", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width="+width+",height="+height);\r
- }\r
- //-->\r
- </script>\r
+ <script language=javascript src="skin/default.js"></script>\r
</head>\r
<body>\r
<div>\r
<td rowspan="2" style="width:20px">\r
</td>\r
<td valign="bottom">\r
- <strong style="font-size:30px"><?=$page?></strong><br />\r
+ <strong style="font-size:30px"><?php echo $page ?></strong><br />\r
</td></tr>\r
<tr><td valign="top">\r
- <? if($is_page) { ?>\r
- <a style="font-size:8px" href="<?=$script?>?<?=rawurlencode($vars["page"])?>"><?=$script?>?<?=rawurlencode($vars["page"])?></a><br />\r
- <? } ?>\r
+ <?php if($is_page) { ?>\r
+ <a style="font-size:8px" href="<?php echo $script ?>?<?php echo rawurlencode($vars["page"]) ?>"><?php echo $script ?>?<?php echo rawurlencode($vars["page"]) ?></a><br />\r
+ <?php } ?>\r
</td></tr>\r
</table>\r
<br />\r
- <? if($is_page) { ?>\r
- [ <a href="<?=$script?>?<?=rawurlencode($vars[page])?>">¥ê¥í¡¼¥É</a> ]\r
+ <?php if($is_page) { ?>\r
+ [ <a href="<?php echo "$script?".rawurlencode($vars[page]) ?>">¥ê¥í¡¼¥É</a> ]\r
\r
- [ <a href="<?=$script?>?plugin=newpage">¿·µ¬</a>\r
- | <a href="<?=$link_edit?>">ÊÔ½¸</a>\r
- | <a href="<?=$link_diff?>">º¹Ê¬</a>\r
- | <a href="<?=$script?>?plugin=attach&pcmd=upload&page=<?=rawurlencode($vars[page])?>">źÉÕ</a>\r
+ [ <a href="<?php echo $script ?>?plugin=newpage">¿·µ¬</a>\r
+ | <a href="<?php echo $link_edit ?>">ÊÔ½¸</a>\r
+ | <a href="<?php echo $link_diff ?>">º¹Ê¬</a>\r
+ | <a href="<?php echo $script ?>?plugin=attach&pcmd=upload&page=<?php echo rawurlencode($vars[page]) ?>">źÉÕ</a>\r
]\r
\r
- <? } ?>\r
- [ <a href="<?=$link_top?>">¥È¥Ã¥×</a>\r
- | <a href="<?=$link_list?>">°ìÍ÷</a>\r
- <? if(arg_check("list")) { ?>\r
- | <a href="<?=$link_filelist?>">¥Õ¥¡¥¤¥ë̾°ìÍ÷</a>\r
- <? } ?>\r
- | <a href="<?=$link_search?>">ñ¸ì¸¡º÷</a>\r
- | <a href="<?=$link_whatsnew?>">ºÇ½ª¹¹¿·</a>\r
- <? if($do_backup) { ?>\r
- | <a href="<?=$link_backup?>">¥Ð¥Ã¥¯¥¢¥Ã¥×</a>\r
- <? } ?>\r
- | <a href="<?="$script?".rawurlencode("[[¥Ø¥ë¥×]]")?>">¥Ø¥ë¥×</a>\r
+ <?php } ?>\r
+ [ <a href="<?php echo $link_top ?>">¥È¥Ã¥×</a>\r
+ | <a href="<?php echo $link_list ?>">°ìÍ÷</a>\r
+ <?php if(arg_check("list")) { ?>\r
+ | <a href="<?php echo $link_filelist ?>">¥Õ¥¡¥¤¥ë̾°ìÍ÷</a>\r
+ <?php } ?>\r
+ | <a href="<?php echo $link_search ?>">ñ¸ì¸¡º÷</a>\r
+ | <a href="<?php echo $link_whatsnew ?>">ºÇ½ª¹¹¿·</a>\r
+ <?php if($do_backup) { ?>\r
+ | <a href="<?php echo $link_backup ?>">¥Ð¥Ã¥¯¥¢¥Ã¥×</a>\r
+ <?php } ?>\r
+ | <a href="<?php echo "$script?".rawurlencode("[[¥Ø¥ë¥×]]") ?>">¥Ø¥ë¥×</a>\r
]<br />\r
- <?=$hr?>\r
- <?if($is_page){ ?>\r
+ <?php echo $hr ?>\r
+ <?php if($is_page) { ?>\r
<table cellspacing="1" cellpadding="0" border="0" width="100%">\r
<tr>\r
<td valign="top" style="width:120px;word-break:break-all;">\r
- <? echo convert_html(@join("",@file(get_filename(encode("MenuBar"))))); ?>\r
+ <?php echo convert_html(@join("",@file(get_filename(encode("MenuBar"))))) ?>\r
</td>\r
<td style="width:10px">\r
</td>\r
<td valign="top">\r
- <? } ?>\r
- <?=$body?>\r
- <?if($is_page){ ?>\r
+ <?php } ?>\r
+ <?php echo $body ?>\r
+ <?php if($is_page) { ?>\r
</td>\r
</tr>\r
</table>\r
- <? } ?>\r
- <?=$hr?>\r
- <?\r
+ <?php } ?>\r
+ <?php echo $hr ?>\r
+ <?php\r
if(file_exists(PLUGIN_DIR."attach.inc.php") && $is_read)\r
{\r
require_once(PLUGIN_DIR."attach.inc.php");\r
}\r
?>\r
<div style="text-align:right">\r
- <? if($is_page) { ?>\r
- <a href="<?=$script?>?<?=rawurlencode($vars[page])?>"><img src="./image/reload.gif" width="20" height="20" border="0" alt="¥ê¥í¡¼¥É" /></a>\r
+ <?php if($is_page) { ?>\r
+ <a href="<?php echo "$script?".rawurlencode($vars[page]) ?>"><img src="./image/reload.gif" width="20" height="20" border="0" alt="¥ê¥í¡¼¥É" /></a>\r
\r
- <a href="<?=$script?>?plugin=newpage"><img src="./image/new.gif" width="20" height="20" border="0" alt="¿·µ¬" /></a>\r
- <a href="<?=$link_edit?>"><img src="./image/edit.gif" width="20" height="20" border="0" alt="ÊÔ½¸" /></a>\r
- <a href="<?=$link_diff?>"><img src="./image/diff.gif" width="20" height="20" border="0" alt="º¹Ê¬" /></a>\r
+ <a href="<?php echo $script ?>?plugin=newpage"><img src="./image/new.gif" width="20" height="20" border="0" alt="¿·µ¬" /></a>\r
+ <a href="<?php echo $link_edit ?>"><img src="./image/edit.gif" width="20" height="20" border="0" alt="ÊÔ½¸" /></a>\r
+ <a href="<?php echo $link_diff ?>"><img src="./image/diff.gif" width="20" height="20" border="0" alt="º¹Ê¬" /></a>\r
\r
- <? } ?>\r
- <a href="<?=$link_top?>"><img src="./image/top.gif" width="20" height="20" border="0" alt="¥È¥Ã¥×" /></a>\r
- <a href="<?=$link_list?>"><img src="./image/list.gif" width="20" height="20" border="0" alt="°ìÍ÷" /></a>\r
- <a href="<?=$link_search?>"><img src="./image/search.gif" width="20" height="20" border="0" alt="¸¡º÷" /></a>\r
- <a href="<?=$link_whatsnew?>"><img src="./image/recentchanges.gif" width="20" height="20" border="0" alt="ºÇ½ª¹¹¿·" /></a>\r
- <? if($do_backup) { ?>\r
- <a href="<?=$link_backup?>"><img src="./image/backup.gif" width="20" height="20" border="0" alt="¥Ð¥Ã¥¯¥¢¥Ã¥×" /></a>\r
- <? } ?>\r
+ <?php } ?>\r
+ <a href="<?php echo $link_top ?>"><img src="./image/top.gif" width="20" height="20" border="0" alt="¥È¥Ã¥×" /></a>\r
+ <a href="<?php echo $link_list ?>"><img src="./image/list.gif" width="20" height="20" border="0" alt="°ìÍ÷" /></a>\r
+ <a href="<?php echo $link_search ?>"><img src="./image/search.gif" width="20" height="20" border="0" alt="¸¡º÷" /></a>\r
+ <a href="<?php echo $link_whatsnew ?>"><img src="./image/recentchanges.gif" width="20" height="20" border="0" alt="ºÇ½ª¹¹¿·" /></a>\r
+ <?php if($do_backup) { ?>\r
+ <a href="<?php echo $link_backup ?>"><img src="./image/backup.gif" width="20" height="20" border="0" alt="¥Ð¥Ã¥¯¥¢¥Ã¥×" /></a>\r
+ <?php } ?>\r
\r
- <a href="<?="$script?".rawurlencode("[[¥Ø¥ë¥×]]")?>"><img src="./image/help.gif" width="20" height="20" border="0" alt="¥Ø¥ë¥×" /></a>\r
+ <a href="<?php echo "$script?".rawurlencode("[[¥Ø¥ë¥×]]") ?>"><img src="./image/help.gif" width="20" height="20" border="0" alt="¥Ø¥ë¥×" /></a>\r
\r
- <a href="<?=$script?>?cmd=rss"><img src="./image/rss.gif" width="36" height="14" border="0" alt="ºÇ½ª¹¹¿·¤ÎRSS" /></a>\r
+ <a href="<?php echo $script ?>?cmd=rss"><img src="./image/rss.gif" width="36" height="14" border="0" alt="ºÇ½ª¹¹¿·¤ÎRSS" /></a>\r
</div>\r
- <? if($fmt) { ?>\r
- <span class="small">Last-modified: <?=date("D, d M Y H:i:s T",$fmt)?></span> <?=get_pg_passage($vars["page"])?><br />\r
- <? } ?>\r
- <? if($related) { ?>\r
- <span class="small">Link: <?=$related?></span><br />\r
- <? } ?>\r
+ <?php if($fmt) { ?>\r
+ <span class="small">Last-modified: <?php echo date("D, d M Y H:i:s T",$fmt) ?></span> <?php echo get_pg_passage($vars["page"]) ?><br />\r
+ <?php } ?>\r
+ <?php if($related) { ?>\r
+ <span class="small">Link: <?php echo $related ?></span><br />\r
+ <?php } ?>\r
<br />\r
<address>\r
- Modified by <a href="<?=$modifierlink?>"><?=$modifier?></a><br /><br />\r
- <?=S_COPYRIGHT?><br />\r
- Powered by PHP <?=PHP_VERSION?><br /><br />\r
- HTML convert time to <?=$taketime?> sec.\r
+ Modified by <a href="<?php echo $modifierlink ?>"><?php echo $modifier ?></a><br /><br />\r
+ <?php echo S_COPYRIGHT ?><br />\r
+ Powered by PHP <?php echo PHP_VERSION ?><br /><br />\r
+ HTML convert time to <?php echo $taketime ?> sec.\r
</address>\r
</div>\r
</body>\r
-<?
+<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: template.php,v 1.1 2002/06/21 05:21:46 masui Exp $
+// $Id: template.php,v 1.2 2002/11/29 00:09:00 panda Exp $
/////////////////////////////////////////////////
function auto_template($page)