OSDN Git Service

EUCのインストールファイル削除
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 18 Mar 2009 07:10:37 +0000 (07:10 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 18 Mar 2009 07:10:37 +0000 (07:10 +0000)
プラグインリストのリダイレクト問題修正
スキンの読み込み/書き出し改良
デフォルトスキンのインクルードファイルをスキンパーツ化

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

utf8/install-EUC.php [deleted file]
utf8/install_lang_japanese-euc.php [deleted file]
utf8/nucleus/libs/ADMIN.php
utf8/nucleus/libs/skinie.php
utf8/skins/default/inc/show_benchmark.inc
utf8/skins/default/skinbackup.xml
utf8/skins/default/skinbackup.xml.org [new file with mode: 0644]

diff --git a/utf8/install-EUC.php b/utf8/install-EUC.php
deleted file mode 100644 (file)
index 6dd54fc..0000000
+++ /dev/null
@@ -1,1112 +0,0 @@
-<?php\r
-/*\r
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
- * Copyright (C) 2002-2009 The Nucleus Group\r
- *\r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License\r
- * as published by the Free Software Foundation; either version 2\r
- * of the License, or (at your option) any later version.\r
- * (see nucleus/documentation/index.html#license for more info)\r
- * This script will install the Nucleus tables in your SQL-database, and initialize the data in\r
- * those tables.\r
- *\r
- * Below is a friendly way of letting users on non-php systems know that Nucleus won't run there.\r
- * ?><div style="font-size: xx-large;">If you see this text in your browser when you open <i>install.php</i>, your web server is not able to run PHP-scripts, and therefor Nucleus will not be able to run there. </div><div style="display: none"><?php\r
- */\r
-\r
-/**\r
- * @license http://nucleuscms.org/license.txt GNU General Public License\r
- * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
- * @version $Id$\r
- * $NucleusJP: install.php,v 1.7 2007/02/04 06:28:44 kimitake Exp $\r
- */\r
-\r
-/*\r
-       This part of the install.php code allows for customization of the install process.\r
-       When distributing plugins or skins together with a Nucleus installation, the\r
-       configuration below will instruct to install them\r
-\r
-       -- Start Of Configurable Part --\r
-*/\r
-\r
-include('./install_lang_japanese-euc.php');\r
-\r
-// array with names of plugins to install. Plugin files must be present in the nucleus/plugin/\r
-// directory.\r
-//\r
-// example:\r
-//     array('NP_TrackBack', 'NP_MemberGoodies')\r
-$aConfPlugsToInstall = array('NP_SkinFiles');\r
-\r
-\r
-// array with skins to install. skins must be present under the skins/ directory with\r
-// a subdirectory having the same name that contains a skinbackup.xml file\r
-//\r
-// example:\r
-//     array('base','rsd')\r
-$aConfSkinsToImport = array('default');\r
-\r
-/*\r
-       -- End Of Configurable Part --\r
-*/\r
-\r
-// don't give warnings for uninitialized vars\r
-error_reporting(E_ERROR | E_WARNING | E_PARSE);\r
-\r
-// make sure there's no unnecessary escaping:\r
-set_magic_quotes_runtime(0);\r
-\r
-// if there are some plugins or skins to import, do not include vars\r
-// in globalfunctions.php again... so set a flag\r
-if ((count($aConfPlugsToInstall) > 0) || (count($aConfSkinsToImport) > 0) ) {\r
-       global $CONF;\r
-       $CONF['installscript'] = 1;\r
-}\r
-\r
-if (phpversion() >= '4.1.0') {\r
-       include_once('nucleus/libs/vars4.1.0.php');\r
-} else {\r
-       include_once('nucleus/libs/vars4.0.6.php');\r
-}\r
-\r
-include_once('nucleus/libs/mysql.php');\r
-\r
-// check if mysql support is installed\r
-       if (!function_exists('mysql_query') ) {\r
-               _doError(_ERROR1);\r
-       }\r
-\r
-       if (postVar('action') == 'go') {\r
-               doInstall();\r
-       } else {\r
-               showInstallForm();\r
-       }\r
-\r
-exit;\r
-\r
-function showInstallForm() {\r
-       // 0. pre check if all necessary files exist\r
-       doCheckFiles();\r
-\r
-       ?>\r
-       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-       <html xmlns="http://www.w3.org/1999/xhtml">\r
-       <head>\r
-               <meta http-equiv="content-type" content="application/xhtml+xml; charset=<?php echo _CHARSET; ?>" />\r
-               <title><?php echo _TITLE; ?></title>\r
-               <style type="text/css"><!--\r
-                       @import url('nucleus/documentation/styles/manual.css');\r
-               --></style>\r
-               <script type="text/javascript"><!--\r
-                       var submitcount = 0;\r
-\r
-                       // function to make sure the submit button only gets pressed once\r
-                       function checkSubmit() {\r
-                               if (submitcount == 0) {\r
-                                       submitcount++;\r
-                                       return true;\r
-                               } else {\r
-                                       return false;\r
-                               }\r
-                       }\r
-               --></script>\r
-       </head>\r
-       <body>\r
-               <div style="text-align:center"><img src="./nucleus/styles/logo.gif" /></div> <!-- Nucleus logo -->\r
-               <form method="post" action="install.php">\r
-\r
-               <h1><?php echo _HEADER1; ?></h1>\r
-\r
-               <?php echo _TEXT1; ?>\r
-\r
-               <h1><?php echo _HEADER2; ?></h1>\r
-\r
-               <?php echo _TEXT2; ?>\r
-\r
-               <ul>\r
-                       <li>PHP:\r
-\r
-<?php\r
-       echo phpversion();\r
-       $minVersion = '4.0.6';\r
-\r
-       if (phpversion() < $minVersion) {\r
-               echo ' <span class="warning" style="display:block">' . sprintf(_TEXT2_WARN, $minVersion) . '</span>';\r
-       } elseif (phpversion() < '5') {\r
-               echo ' <span class="warning" style="display:block">' . _TEXT2_WARN3 . '</span>';\r
-       }\r
-?>\r
-\r
-                       </li>\r
-                       <li>MySQL:\r
-\r
-<?php\r
-       // note: this piece of code is taken from phpMyAdmin\r
-       $result = @mysql_query('SELECT VERSION() AS version');\r
-\r
-       if ($result != FALSE && @mysql_num_rows($result) > 0) {\r
-               $row   = mysql_fetch_array($result);\r
-               $match = explode('.', $row['version']);\r
-       } else {\r
-               $result = @mysql_query('SHOW VARIABLES LIKE \'version\'');\r
-\r
-               if ($result != FALSE && @mysql_num_rows($result) > 0) {\r
-                       $row   = mysql_fetch_row($result);\r
-                       $match = explode('.', $row[1]);\r
-               } else {\r
-                       $output = shell_exec('mysql -V');\r
-                       preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version);\r
-                       $match = explode('.', $version[0]);\r
-\r
-                       if ($match[0] == '') {\r
-                               $match[0] = '0';\r
-                               $match[1] = '0';\r
-                               $match[2] = '0';\r
-                       }\r
-               }\r
-       }\r
-\r
-       $mysqlVersion = implode($match, '.');\r
-       $minVersion = '3.23';\r
-\r
-       if ($mysqlVersion == '0.0.0') {\r
-               echo _NOTIFICATION1;\r
-       }\r
-       else {\r
-               echo $mysqlVersion;\r
-       }\r
-\r
-       if ($mysqlVersion < $minVersion) {\r
-               echo ' <span class="warning" style="display:block">' . sprintf(_TEXT2_WARN2, $minVersion) . '</span>';\r
-       }\r
-?>\r
-\r
-                       </li>\r
-               </ul>\r
-\r
-<?php\r
-       // tell people how they can have their config file filled out automatically\r
-       if (@file_exists('config.php') && @!is_writable('config.php')) {\r
-?>\r
-\r
-               <h1><?php echo _HEADER3; ?></h1>\r
-\r
-               <?php echo _TEXT3;\r
-\r
-} ?>\r
-\r
-               <h1><?php echo _HEADER4; ?></h1>\r
-\r
-               <?php echo _TEXT4; ?>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT4_TAB_HEAD; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT4_TAB_FIELD1; ?></td>\r
-                                       <td><input name="mySQL_host" value="<?php echo htmlspecialchars(@ini_get('mysql.default_host') )?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT4_TAB_FIELD2; ?></td>\r
-                                       <td><input name="mySQL_user" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT4_TAB_FIELD3; ?></td>\r
-                                       <td><input name="mySQL_password" type="password" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT4_TAB_FIELD4; ?></td>\r
-                                       <td><input name="mySQL_database" /> (<input name="mySQL_create" value="1" type="checkbox" id="mySQL_create" /><label for="mySQL_create"><?php echo _TEXT4_TAB_FIELD4_ADD; ?></label>)</td>\r
-                               </tr>\r
-                       </table>\r
-               </fieldset>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT4_TAB2_HEAD; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><input name="mySQL_usePrefix" value="1" type="checkbox" id="mySQL_usePrefix" /><label for="mySQL_usePrefix"><?php echo _TEXT4_TAB2_FIELD; ?></label></td>\r
-                                       <td><input name="mySQL_tablePrefix" value="" /></td>\r
-                               </tr>\r
-                       </table>\r
-\r
-                       <?php echo _TEXT4_TAB2_ADD; ?>\r
-\r
-               </fieldset>\r
-\r
-       <h1><?php echo _HEADER5; ?></h1>\r
-\r
-       <?php echo _TEXT5; ?>\r
-\r
-<?php\r
-\r
-       // no need to this all! dirname(__FILE__) is all we need -- moraes\r
-       /*\r
-       // discover full path\r
-       $fullPath = serverVar('PATH_TRANSLATED');\r
-\r
-       if ($fullPath == '') {\r
-               $fullPath = serverVar('SCRIPT_FILENAME');\r
-       }\r
-\r
-       $basePath = str_replace('install.php', '', $fullPath);\r
-       $basePath = replaceDoubleBackslash($basePath);\r
-       $basePath = replaceDoubleBackslash($basePath);\r
-\r
-       // add slash at end if necessary\r
-       if (!endsWithSlash($basePath) ) {\r
-               $basePath .= '/';\r
-       }\r
-       */\r
-\r
-       $basePath = dirname(__FILE__) . '/';\r
-?>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT5_TAB_HEAD; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD1; ?></td>\r
-                                       <td><input name="IndexURL" size="60" value="<?php\r
-                                               $url = 'http://' . serverVar('HTTP_HOST') . serverVar('PHP_SELF');\r
-                                               $url = str_replace('install.php', '', $url);\r
-                                               $url = replaceDoubleBackslash($url);\r
-\r
-                                               // add slash at end if necessary\r
-                                               if (!endsWithSlash($url) ) {\r
-                                                       $url .= '/';\r
-                                               }\r
-\r
-                                               echo $url; ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD2; ?></td>\r
-                                       <td><input name="AdminURL" size="60" value="<?php\r
-                                               if ($url) {\r
-                                                       echo $url . 'nucleus/';\r
-                                               } ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD3; ?></td>\r
-                                       <td><input name="AdminPath" size="60" value="<?php\r
-                                               if($basePath) {\r
-                                                       echo $basePath . 'nucleus/';\r
-                                               } ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD4; ?></td>\r
-                                       <td><input name="MediaURL" size="60" value="<?php\r
-                                               if ($url) {\r
-                                                       echo $url . 'media/';\r
-                                               } ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD5; ?></td>\r
-                                       <td><input name="MediaPath" size="60" value="<?php\r
-                                               if ($basePath) {\r
-                                                       echo $basePath . 'media/';\r
-                                               } ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD6; ?></td>\r
-                                       <td><input name="SkinsURL" size="60" value="<?php\r
-                                               if ($url) {\r
-                                                       echo $url . 'skins/';\r
-                                               } ?>" />\r
-                                               <br />(<?php echo _TEXT5_TAB_FIELD7_2; ?>)\r
-                                       </td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD7; ?></td>\r
-                                       <td><input name="SkinsPath" size="60" value="<?php\r
-                                               if ($basePath) {\r
-                                                       echo $basePath . 'skins/';\r
-                                               } ?>" />\r
-                                               <br />(<?php echo _TEXT5_TAB_FIELD7_2; ?>)\r
-                                       </td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD8; ?></td>\r
-                                       <td><input name="PluginURL" size="60" value="<?php\r
-                                               if ($url) {\r
-                                                       echo $url . 'nucleus/plugins/';\r
-                                               } ?>" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT5_TAB_FIELD9; ?></td>\r
-                                       <td><input name="ActionURL" size="60" value="<?php\r
-                                               if ($url) {\r
-                                                       echo $url . 'action.php';\r
-                                               } ?>" />\r
-                                               <br />(<?php echo _TEXT5_TAB_FIELD9_2;?>)\r
-                                       </td>\r
-                               </tr>\r
-                       </table>\r
-               </fieldset>\r
-\r
-               <?php echo _TEXT5_2; ?>\r
-\r
-               <h1><? echo _HEADER6; ?></h1>\r
-\r
-               <?php echo _TEXT6; ?>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT6_TAB_HEAD; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT6_TAB_FIELD1; ?></td>\r
-                                       <td><input name="User_name" value="" /> <small>(<?php echo _TEXT6_TAB_FIELD1_2; ?>)</small></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT6_TAB_FIELD2; ?></td>\r
-                                       <td><input name="User_realname" value="" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT6_TAB_FIELD3; ?></td>\r
-                                       <td><input name="User_password" type="password" value="" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT6_TAB_FIELD4; ?></td>\r
-                                       <td><input name="User_password2" type="password" value="" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT6_TAB_FIELD5; ?></td>\r
-                                       <td><input name="User_email" value="" /> <small>(<?php echo _TEXT6_TAB_FIELD5_2; ?>)</small></td>\r
-                               </tr>\r
-                       </table>\r
-               </fieldset>\r
-\r
-               <h1><?php echo _HEADER7; ?></h1>\r
-\r
-               <?php echo _TEXT7; ?>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT7_TAB_HEAD; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT7_TAB_FIELD1; ?></td>\r
-                                       <td><input name="Blog_name" size="60" value="My Nucleus CMS" /></td>\r
-                               </tr>\r
-                               <tr>\r
-                                       <td><?php echo _TEXT7_TAB_FIELD2; ?></td>\r
-                                       <td><input name="Blog_shortname" value="mynucleuscms" /> <small>(<?php echo _TEXT7_TAB_FIELD2_2; ?>)</small></td>\r
-                               </tr>\r
-                       </table>\r
-               </fieldset>\r
-\r
-               <h1><?php echo _HEADER8; ?></h1>\r
-\r
-               <fieldset>\r
-                       <legend><?php echo _TEXT8_TAB_HEADER; ?></legend>\r
-                       <table>\r
-                               <tr>\r
-                                       <td><input name="Weblog_ping" value="1" type="checkbox" id="Weblog_ping" /><?php echo _TEXT8_TAB_FIELD1; ?></td>\r
-                               </tr>\r
-                       </table>\r
-               </fieldset>\r
-\r
-               <h1><?php echo _HEADER9; ?></h1>\r
-\r
-               <?php echo _TEXT9; ?>\r
-\r
-               <p><input name="action" value="go" type="hidden" /> <input type="submit" value="<?php echo _BUTTON1; ?>" onclick="return checkSubmit();" /></p>\r
-\r
-               </form>\r
-       </body>\r
-</html>\r
-\r
-<?php }\r
-\r
-function tableName($unPrefixed) {\r
-       global $mysql_usePrefix, $mysql_prefix;\r
-\r
-       if ($mysql_usePrefix == 1) {\r
-               return $mysql_prefix . $unPrefixed;\r
-       } else {\r
-               return $unPrefixed;\r
-       }\r
-}\r
-\r
-function doInstall() {\r
-       global $mysql_usePrefix, $mysql_prefix, $weblog_ping;\r
-\r
-       // 0. put all POST-vars into vars\r
-       $mysql_host        = postVar('mySQL_host');\r
-       $mysql_user        = postVar('mySQL_user');\r
-       $mysql_password    = postVar('mySQL_password');\r
-       $mysql_database    = postVar('mySQL_database');\r
-       $mysql_create      = postVar('mySQL_create');\r
-       $mysql_usePrefix   = postVar('mySQL_usePrefix');\r
-       $mysql_prefix      = postVar('mySQL_tablePrefix');\r
-       $config_indexurl   = postVar('IndexURL');\r
-       $config_adminurl   = postVar('AdminURL');\r
-       $config_adminpath  = postVar('AdminPath');\r
-       $config_mediaurl   = postVar('MediaURL');\r
-       $config_skinsurl   = postVar('SkinsURL');\r
-       $config_pluginurl  = postVar('PluginURL');\r
-       $config_actionurl  = postVar('ActionURL');\r
-       $config_mediapath  = postVar('MediaPath');\r
-       $config_skinspath  = postVar('SkinsPath');\r
-       $user_name         = postVar('User_name');\r
-       $user_realname     = postVar('User_realname');\r
-       $user_password     = postVar('User_password');\r
-       $user_password2    = postVar('User_password2');\r
-       $user_email        = postVar('User_email');\r
-       $blog_name         = postVar('Blog_name');\r
-       $blog_shortname    = postVar('Blog_shortname');\r
-       $config_adminemail = $user_email;\r
-       $config_sitename   = $blog_name;\r
-       $weblog_ping       = postVar('Weblog_ping');\r
-\r
-       $config_indexurl   = replaceDoubleBackslash($config_indexurl);\r
-       $config_adminurl   = replaceDoubleBackslash($config_adminurl);\r
-       $config_mediaurl   = replaceDoubleBackslash($config_mediaurl);\r
-       $config_skinsurl   = replaceDoubleBackslash($config_skinsurl);\r
-       $config_pluginurl  = replaceDoubleBackslash($config_pluginurl);\r
-       $config_actionurl  = replaceDoubleBackslash($config_actionurl);\r
-       $config_adminpath  = replaceDoubleBackslash($config_adminpath);\r
-       $config_skinspath  = replaceDoubleBackslash($config_skinspath);\r
-       $config_mediapath  = replaceDoubleBackslash($config_mediapath);\r
-\r
-       // 1. check all the data\r
-       $errors = array();\r
-\r
-       if (!$mysql_database) {\r
-               array_push($errors, _ERROR2);\r
-       }\r
-\r
-       if (($mysql_usePrefix == 1) && (strlen($mysql_prefix) == 0) ) {\r
-               array_push($errors, _ERROR3);\r
-       }\r
-\r
-       if (($mysql_usePrefix == 1) && (!eregi('^[a-zA-Z0-9_]+$', $mysql_prefix) ) ) {\r
-               array_push($errors, _ERROR4);\r
-       }\r
-\r
-       // TODO: add action.php check\r
-       if (!endsWithSlash($config_indexurl) || !endsWithSlash($config_adminurl) || !endsWithSlash($config_mediaurl) || !endsWithSlash($config_pluginurl) || !endsWithSlash($config_skinsurl) ) {\r
-               array_push($errors, _ERROR5);\r
-       }\r
-\r
-       if (!endsWithSlash($config_adminpath) ) {\r
-               array_push($errors, _ERROR6);\r
-       }\r
-\r
-       if (!endsWithSlash($config_mediapath) ) {\r
-               array_push($errors, _ERROR7);\r
-       }\r
-\r
-       if (!endsWithSlash($config_skinspath) ) {\r
-               array_push($errors, _ERROR8);\r
-       }\r
-\r
-       if (!is_dir($config_adminpath) ) {\r
-               array_push($errors, _ERROR9);\r
-       }\r
-\r
-       if (!_isValidMailAddress($user_email) ) {\r
-               array_push($errors, _ERROR10);\r
-       }\r
-\r
-       if (!_isValidDisplayName($user_name) ) {\r
-               array_push($errors, _ERROR11);\r
-       }\r
-\r
-       if (!$user_password || !$user_password2) {\r
-               array_push($errors, _ERROR12);\r
-       }\r
-\r
-       if ($user_password != $user_password2) {\r
-               array_push($errors, _ERROR13);\r
-       }\r
-\r
-       if (!_isValidShortName($blog_shortname) ) {\r
-               array_push($errors, _ERROR14);\r
-       }\r
-\r
-       if (sizeof($errors) > 0) {\r
-               showErrorMessages($errors);\r
-       }\r
-\r
-       // 2. try to log in to mySQL\r
-       global $MYSQL_CONN;\r
-       $MYSQL_CONN = @mysql_connect($mysql_host, $mysql_user, $mysql_password);\r
-\r
-       if ($MYSQL_CONN == false) {\r
-               _doError(_ERROR15 . ': ' . mysql_error() );\r
-       }\r
-\r
-       // 3. try to create database (if needed)\r
-       if ($mysql_create == 1) {\r
-               mysql_query('CREATE DATABASE ' . $mysql_database) or _doError(_ERROR16 . ': ' . mysql_error() );\r
-       }\r
-\r
-       // 4. try to select database\r
-       mysql_select_db($mysql_database) or _doError(_ERROR17);\r
-\r
-       // 5. execute queries\r
-       $filename = 'install.sql';\r
-       $fd = fopen($filename, 'r');\r
-       $queries = fread($fd, filesize($filename) );\r
-       fclose($fd);\r
-\r
-       $queries = split("(;\n|;\r)", $queries);\r
-\r
-       $aTableNames = array(\r
-               'nucleus_actionlog',\r
-               'nucleus_ban',\r
-               'nucleus_blog',\r
-               'nucleus_category',\r
-               'nucleus_comment',\r
-               'nucleus_config',\r
-               'nucleus_item',\r
-               'nucleus_karma',\r
-               'nucleus_member',\r
-               'nucleus_plugin',\r
-               'nucleus_skin',\r
-               'nucleus_template',\r
-               'nucleus_team',\r
-               'nucleus_activation',\r
-               'nucleus_tickets'\r
-       );\r
-// these are unneeded (one of the replacements above takes care of them)\r
-//                     'nucleus_plugin_event',\r
-//                     'nucleus_plugin_option',\r
-//                     'nucleus_plugin_option_desc',\r
-//                     'nucleus_skin_desc',\r
-//                     'nucleus_template_desc',\r
-\r
-       $aTableNamesPrefixed = array(\r
-               $mysql_prefix . 'nucleus_actionlog',\r
-               $mysql_prefix . 'nucleus_ban',\r
-               $mysql_prefix . 'nucleus_blog',\r
-               $mysql_prefix . 'nucleus_category',\r
-               $mysql_prefix . 'nucleus_comment',\r
-               $mysql_prefix . 'nucleus_config',\r
-               $mysql_prefix . 'nucleus_item',\r
-               $mysql_prefix . 'nucleus_karma',\r
-               $mysql_prefix . 'nucleus_member',\r
-               $mysql_prefix . 'nucleus_plugin',\r
-               $mysql_prefix . 'nucleus_skin',\r
-               $mysql_prefix . 'nucleus_template',\r
-               $mysql_prefix . 'nucleus_team',\r
-               $mysql_prefix . 'nucleus_activation',\r
-               $mysql_prefix . 'nucleus_tickets'\r
-       );\r
-// these are unneeded (one of the replacements above takes care of them)\r
-//                     $mysql_prefix . 'nucleus_plugin_event',\r
-//                     $mysql_prefix . 'nucleus_plugin_option',\r
-//                     $mysql_prefix . 'nucleus_plugin_option_desc',\r
-//                     $mysql_prefix . 'nucleus_skin_desc',\r
-//                     $mysql_prefix . 'nucleus_template_desc',\r
-\r
-       $count = count($queries);\r
-\r
-       for ($idx = 0; $idx < $count; $idx++) {\r
-               $query = trim($queries[$idx]);\r
-               // echo "QUERY = <small>" . htmlspecialchars($query) . "</small><p>";\r
-\r
-               if ($query) {\r
-\r
-                       if ($mysql_usePrefix == 1) {\r
-                                       $query = str_replace($aTableNames, $aTableNamesPrefixed, $query);\r
-                       }\r
-\r
-                       mysql_query($query) or _doError(_ERROR30 . ' (<small>' . htmlspecialchars($query) . '</small>): ' . mysql_error() );\r
-               }\r
-       }\r
-\r
-       // 5a make first post\r
-       $newpost = "INSERT INTO " . tableName('nucleus_item') . " VALUES (1, '" . _1ST_POST_TITLE . "', '" . _1ST_POST . "', '" . _1ST_POST2 . "', 1, 1, '2005-08-15 11:04:26', 0, 0, 0, 1, 0, 1);";\r
-       mysql_query($newpost) or _doError(_ERROR18 . ' (<small>' . htmlspecialchars($newpost) . '</small>): ' . mysql_error() );\r
-\r
-       // 6. update global settings\r
-       updateConfig('IndexURL',   $config_indexurl);\r
-       updateConfig('AdminURL',   $config_adminurl);\r
-       updateConfig('MediaURL',   $config_mediaurl);\r
-       updateConfig('SkinsURL',   $config_skinsurl);\r
-       updateConfig('PluginURL',  $config_pluginurl);\r
-       updateConfig('ActionURL',  $config_actionurl);\r
-       updateConfig('AdminEmail', $config_adminemail);\r
-       updateConfig('SiteName',   $config_sitename);\r
-\r
-       // 7. update GOD member\r
-       $query = 'UPDATE ' . tableName('nucleus_member')\r
-                  . " SET mname     = '" . addslashes($user_name) . "',"\r
-                  . " mrealname     = '" . addslashes($user_realname) . "',"\r
-                  . " mpassword     = '" . md5(addslashes($user_password) ) . "',"\r
-                  . " murl          = '" . addslashes($config_indexurl) . "',"\r
-                  . " memail        = '" . addslashes($user_email) . "',"\r
-                  . " madmin        = 1,"\r
-                  . " mcanlogin     = 1"\r
-                  . " WHERE"\r
-                  . " mnumber       = 1";\r
-\r
-       mysql_query($query) or _doError(_ERROR19 . ': ' . mysql_error() );\r
-\r
-       // 8. update weblog settings\r
-       $query = 'UPDATE ' . tableName('nucleus_blog')\r
-                  . " SET bname  = '" . addslashes($blog_name) . "',"\r
-                  . " bshortname = '" . addslashes($blog_shortname) . "',"\r
-                  . " burl       = '" . addslashes($config_indexurl) . "'"\r
-                  . " WHERE"\r
-                  . " bnumber    = 1";\r
-\r
-       mysql_query($query) or _doError(_ERROR20 . ': ' . mysql_error() );\r
-\r
-       // 8-2. update category settings\r
-       $query = 'UPDATE ' . tableName('nucleus_category')\r
-                  . " SET cname  = '" . addslashes(_GENERALCAT_NAME) . "',"\r
-                  . " cdesc      = '" . addslashes(_GENERALCAT_DESC) . "'"\r
-                  . " WHERE"\r
-                  . " catid      = 1";\r
-\r
-       mysql_query($query) or _doError(_ERROR20 . ': ' . mysql_error() );\r
-\r
-       // 9. update item date\r
-       $query = 'UPDATE ' . tableName('nucleus_item')\r
-                  . " SET   itime   = '" . date('Y-m-d H:i:s', time() ) ."'"\r
-                  . " WHERE inumber = 1";\r
-\r
-       mysql_query($query) or _doError(_ERROR21 . ': ' . mysql_error() );\r
-\r
-       global $aConfPlugsToInstall, $aConfSkinsToImport;\r
-       $aSkinErrors = array();\r
-       $aPlugErrors = array();\r
-\r
-       if ((count($aConfPlugsToInstall) > 0) || (count($aConfSkinsToImport) > 0) ) {\r
-               // 10. set global variables\r
-               global $MYSQL_HOST, $MYSQL_USER, $MYSQL_PASSWORD, $MYSQL_DATABASE, $MYSQL_PREFIX;\r
-\r
-               $MYSQL_HOST     = $mysql_host;\r
-               $MYSQL_USER     = $mysql_user;\r
-               $MYSQL_PASSWORD = $mysql_password;\r
-               $MYSQL_DATABASE = $mysql_database;\r
-               $MYSQL_PREFIX   = ($mysql_usePrefix == 1) ? $mysql_prefix : '';\r
-\r
-               global $DIR_NUCLEUS, $DIR_MEDIA, $DIR_SKINS, $DIR_PLUGINS, $DIR_LANG, $DIR_LIBS;\r
-\r
-               $DIR_NUCLEUS = $config_adminpath;\r
-               $DIR_MEDIA   = $config_mediapath;\r
-               $DIR_SKINS   = $config_skinspath;\r
-               $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';\r
-               $DIR_LANG    = $DIR_NUCLEUS . 'language/';\r
-               $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';\r
-\r
-               // close database connection (needs to be closed if we want to include globalfunctions.php)\r
-               mysql_close();\r
-\r
-               $manager = '';\r
-               include_once($DIR_LIBS . 'globalfunctions.php');\r
-\r
-               // 11. install custom skins\r
-               $aSkinErrors = installCustomSkins($manager);\r
-\r
-               // 12. install NP_Ping, if decided\r
-               if ($weblog_ping == 1) {\r
-                       global $aConfPlugsToInstall;\r
-                       array_push($aConfPlugsToInstall, "NP_Ping");\r
-               }\r
-\r
-               // 13. install custom plugins\r
-               $aPlugErrors = installCustomPlugs($manager);\r
-       }\r
-\r
-       // 14. Write config file ourselves (if possible)\r
-       $bConfigWritten = 0;\r
-\r
-       if (@file_exists('config.php') && is_writable('config.php') && $fp = @fopen('config.php', 'w') ) {\r
-               $config_data = '<' . '?php' . "\n\n";\r
-               //$config_data .= "\n"; (extraneous, just added extra \n to previous line\r
-               $config_data .= "       // mySQL connection information\n";\r
-               $config_data .= "       \$MYSQL_HOST     = '" . $mysql_host . "';\n";\r
-               $config_data .= "       \$MYSQL_USER     = '" . $mysql_user . "';\n";\r
-               $config_data .= "       \$MYSQL_PASSWORD = '" . $mysql_password . "';\n";\r
-               $config_data .= "       \$MYSQL_DATABASE = '" . $mysql_database . "';\n";\r
-               $config_data .= "       \$MYSQL_PREFIX   = '" . (($mysql_usePrefix == 1) ? $mysql_prefix : '') . "';\n";\r
-               $config_data .= "\n";\r
-               $config_data .= "       // main nucleus directory\n";\r
-               $config_data .= "       \$DIR_NUCLEUS = '" . $config_adminpath . "';\n";\r
-               $config_data .= "\n";\r
-               $config_data .= "       // path to media dir\n";\r
-               $config_data .= "       \$DIR_MEDIA   = '" . $config_mediapath . "';\n";\r
-               $config_data .= "\n";\r
-               $config_data .= "       // extra skin files for imported skins\n";\r
-               $config_data .= "       \$DIR_SKINS   = '" . $config_skinspath . "';\n";\r
-               $config_data .= "\n";\r
-               $config_data .= "       // these dirs are normally sub dirs of the nucleus dir, but \n";\r
-               $config_data .= "       // you can redefine them if you wish\n";\r
-               $config_data .= "       \$DIR_PLUGINS = \$DIR_NUCLEUS . 'plugins/';\n";\r
-               $config_data .= "       \$DIR_LANG    = \$DIR_NUCLEUS . 'language/';\n";\r
-               $config_data .= "       \$DIR_LIBS    = \$DIR_NUCLEUS . 'libs/';\n";\r
-               $config_data .= "\n";\r
-               $config_data .= "       // include libs\n";\r
-               $config_data .= "       include(\$DIR_LIBS . 'globalfunctions.php');\n";\r
-               $config_data .= "       if (!extension_loaded('mbstring')) {\n";\r
-               $config_data .= "               include(\$DIR_LIBS . 'mb_emulator/mb-emulator.php');\n";\r
-               $config_data .= "       }\n";\r
-               $config_data .= "?" . ">";\r
-\r
-               $result = @fputs($fp, $config_data, strlen($config_data) );\r
-               fclose($fp);\r
-\r
-               if ($result) {\r
-                       $bConfigWritten = 1;\r
-               }\r
-       }\r
-\r
-?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" />\r
-       <title><?php echo _TITLE; ?></title>\r
-       <style>@import url('nucleus/styles/manual.css');</style>\r
-</head>\r
-<body>\r
-       <div style='text-align:center'><img src='./nucleus/styles/logo.gif' /></div> <!-- Nucleus logo -->\r
-\r
-<?php\r
-       $aAllErrors = array_merge($aSkinErrors, $aPlugErrors);\r
-\r
-       if (count($aAllErrors) > 0) {\r
-               echo '<h1>' . _TITLE2 . '</h1>';\r
-               echo '<ul><li>' . implode('</li><li>', $aAllErrors) . '</li></ul>';\r
-       }\r
-\r
-       if (!$bConfigWritten) { ?>\r
-               <h1><?php echo _TITLE3; ?></h1>\r
-\r
-               <? echo _TEXT10; ?>\r
-\r
-               <pre><code>&lt;?php\r
-       // mySQL connection information\r
-       $MYSQL_HOST     = '<b><?php echo $mysql_host?></b>';\r
-       $MYSQL_USER     = '<b><?php echo $mysql_user?></b>';\r
-       $MYSQL_PASSWORD = '<i><b>xxxxxxxxxxx</b></i>';\r
-       $MYSQL_DATABASE = '<b><?php echo $mysql_database?></b>';\r
-       $MYSQL_PREFIX   = '<b><?php echo ($mysql_usePrefix == 1)?$mysql_prefix:''?></b>';\r
-\r
-       // main nucleus directory\r
-       $DIR_NUCLEUS = '<b><?php echo $config_adminpath?></b>';\r
-\r
-       // path to media dir\r
-       $DIR_MEDIA   = '<b><?php echo $config_mediapath?></b>';\r
-\r
-       // extra skin files for imported skins\r
-       $DIR_SKINS   = '<b><?php echo $config_skinspath?></b>';\r
-\r
-       // these dirs are normally sub dirs of the nucleus dir, but\r
-       // you can redefine them if you wish\r
-       $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';\r
-       $DIR_LANG    = $DIR_NUCLEUS . 'language/';\r
-       $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';\r
-\r
-       // include libs\r
-       include($DIR_LIBS . 'globalfunctions.php');\r
-       if (!extension_loaded('mbstring')) {\r
-               include($DIR_LIBS . 'mb_emulator/mb-emulator.php');\r
-       }\r
-?&gt;</code></pre>\r
-\r
-       <?php echo _TEXT11; ?>\r
-\r
-       <div class="note">\r
-       <?php echo _TEXT12; ?>\r
-       </div>\r
-\r
-<?php } else { ?>\r
-\r
-       <h1><?php echo _TITLE4; ?></h1>\r
-\r
-       <?php echo _TEXT13; ?>\r
-\r
-<?php } ?>\r
-\r
-       <h1><?php echo _TITLE5; ?></h1>\r
-\r
-       <?php echo _TEXT14; ?>\r
-\r
-       <ul>\r
-               <li><?php echo _TEXT14_L1; ?></li>\r
-               <li><?php echo _TEXT14_L2; ?></li>\r
-       </ul>\r
-\r
-       <h1><?php echo _HEADER10; ?></h1>\r
-\r
-       <?php echo _TEXT15; ?>\r
-\r
-               <ul>\r
-               <li><?php echo _TEXT15_L1; ?></li>\r
-               <li><?php echo _TEXT15_L2; ?></li>\r
-               </ul>\r
-\r
-       <?php echo _TEXT15_EX; ?>\r
-\r
-       <h1><?php echo _HEADER11; ?></h1>\r
-\r
-       <p><?php echo _TEXT16; ?>\r
-               <ul>\r
-                       <li><a href="<?php echo $config_adminurl?>"><?php echo _TEXT16_L1; ?></a></li>\r
-                       <li><a href="<?php echo $config_indexurl?>"><?php echo _TEXT16_L2; ?></a></li>\r
-               </ul>\r
-       </p>\r
-\r
-</body>\r
-</html>\r
-\r
-<?php\r
-}\r
-\r
-function installCustomPlugs(&$manager) {\r
-       global $aConfPlugsToInstall, $DIR_LIBS;\r
-\r
-       $aErrors = array();\r
-\r
-       if (count($aConfPlugsToInstall) == 0) {\r
-               return $aErrors;\r
-       }\r
-\r
-       $res = sql_query('SELECT * FROM ' . sql_table('plugin') );\r
-       $numCurrent = mysql_num_rows($res);\r
-\r
-       foreach ($aConfPlugsToInstall as $plugName) {\r
-               // do this before calling getPlugin (in case the plugin id is used there)\r
-               $query = 'INSERT INTO ' . sql_table('plugin') . ' (porder, pfile) VALUES (' . (++$numCurrent) . ', "' . addslashes($plugName) . '")';\r
-               sql_query($query);\r
-\r
-               // get and install the plugin\r
-               $manager->clearCachedInfo('installedPlugins');\r
-               $plugin =& $manager->getPlugin($plugName);\r
-               $plugin->plugid = $numCurrent;\r
-\r
-               if (!$plugin) {\r
-                       sql_query('DELETE FROM ' . sql_table('plugin') . ' WHERE pfile=\'' . addslashes($plugName) . '\'');\r
-                       $numCurrent--;\r
-                       array_push($aErrors, _ERROR22 . $plugName);\r
-                       continue;\r
-               }\r
-\r
-               $plugin->install();\r
-       }\r
-\r
-       // SYNC PLUGIN EVENT LIST\r
-       sql_query('DELETE FROM ' . sql_table('plugin_event') );\r
-\r
-       // loop over all installed plugins\r
-       $res = sql_query('SELECT pid, pfile FROM ' . sql_table('plugin') );\r
-\r
-       while($o = mysql_fetch_object($res) ) {\r
-               $pid  =  $o->pid;\r
-               $plug =& $manager->getPlugin($o->pfile);\r
-\r
-               if ($plug) {\r
-                       $eventList = $plug->getEventList();\r
-\r
-                       foreach ($eventList as $eventName) {\r
-                               sql_query('INSERT INTO ' . sql_table('plugin_event') . ' (pid, event) VALUES (' . $pid . ', \'' . $eventName . '\')');\r
-                       }\r
-               }\r
-       }\r
-\r
-       return $aErrors;\r
-}\r
-\r
-function installCustomSkins(&$manager) {\r
-       global $aConfSkinsToImport, $DIR_LIBS, $DIR_SKINS;\r
-\r
-       $aErrors = array();\r
-\r
-       if (count($aConfSkinsToImport) == 0) {\r
-               return $aErrors;\r
-       }\r
-\r
-       // load skinie class\r
-       include_once($DIR_LIBS . 'skinie.php');\r
-\r
-       $importer = new SKINIMPORT();\r
-\r
-       foreach ($aConfSkinsToImport as $skinName) {\r
-               $importer->reset();\r
-               $skinFile = $DIR_SKINS . $skinName . '/skinbackup.xml';\r
-\r
-               if (!@file_exists($skinFile) ) {\r
-                       array_push($aErrors, _ERROR23_1 . $skinFile . ' : ' . _ERROR23_2);\r
-                       continue;\r
-               }\r
-\r
-               $error = $importer->readFile($skinFile);\r
-\r
-               if ($error) {\r
-                       array_push($aErrors, _ERROR24 . $skinName . ' : ' . $error);\r
-                       continue;\r
-               }\r
-\r
-               $error = $importer->writeToDatabase(1);\r
-\r
-               if ($error) {\r
-                       array_push($aErrors, _ERROR24 . $skinName . ' : ' . $error);\r
-                       continue;\r
-               }\r
-       }\r
-\r
-       return $aErrors;\r
-}\r
-\r
-// give an error if one or more nucleus are not accessible\r
-function doCheckFiles() {\r
-       $missingfiles = array();\r
-       $files = array(\r
-               'install.sql',\r
-               'index.php',\r
-               'action.php',\r
-               'nucleus/index.php',\r
-               'nucleus/libs/globalfunctions.php',\r
-               'nucleus/libs/ADMIN.php',\r
-               'nucleus/libs/BLOG.php',\r
-               'nucleus/libs/COMMENT.php',\r
-               'nucleus/libs/COMMENTS.php',\r
-               'nucleus/libs/ITEM.php',\r
-               'nucleus/libs/MEMBER.php',\r
-               'nucleus/libs/SKIN.php',\r
-               'nucleus/libs/TEMPLATE.php',\r
-               'nucleus/libs/MEDIA.php',\r
-               'nucleus/libs/ACTIONLOG.php',\r
-               'nucleus/media.php'\r
-       );\r
-\r
-       $count = count($files);\r
-\r
-       for ($i = 0; $i < $count; $i++) {\r
-               if (!is_readable($files[$i]) ) {\r
-                       array_push($missingfiles, _ERROR25_1 . $files[$i] . _ERROR25_2);\r
-               }\r
-       }\r
-\r
-// The above code replaces several if statements of the form:\r
-\r
-//     if (!is_readable('install.sql') ) {\r
-//             array_push($missingfiles, 'File <b>install.sql</b> is missing or not readable');\r
-//     }\r
-\r
-       if (count($missingfiles) > 0) {\r
-               showErrorMessages($missingfiles);\r
-       }\r
-}\r
-\r
-function updateConfig($name, $val) {\r
-       $name = addslashes($name);\r
-       $val  = trim(addslashes($val) );\r
-\r
-       $query = 'UPDATE ' . tableName('nucleus_config')\r
-                  . " SET   value = '$val'"\r
-                  . " WHERE name  = '$name'";\r
-\r
-       mysql_query($query) or _doError(_ERROR26 . ': ' . mysql_error() );\r
-       return mysql_insert_id();\r
-}\r
-\r
-function replaceDoubleBackslash($input) {\r
-       return str_replace('\\', '/', $input);\r
-}\r
-\r
-function endsWithSlash($s) {\r
-       return (strrpos($s, '/') == strlen($s) - 1);\r
-}\r
-\r
-/**\r
- * Checks if email address is valid\r
- */\r
-function _isValidMailAddress($address) {\r
-       if (preg_match("/^[a-zA-Z0-9\._-]+@+[A-Za-z0-9\._-]+\.+[A-Za-z]{2,4}$/", $address) ) {\r
-               return 1;\r
-       } else {\r
-               return 0;\r
-       }\r
-}\r
-\r
-// returns true if the given string is a valid shortname\r
-// (to check short blog names and nicknames)\r
-// logic: starts and ends with a non space, can contain spaces in between\r
-//        min 2 chars\r
-function _isValidShortName($name) {\r
-       if (eregi("^[a-z0-9]+$", $name) ) {\r
-               return 1;\r
-       } else {\r
-               return 0;\r
-       }\r
-}\r
-\r
-\r
-\r
-// returns true if the given string is a valid display name\r
-// (to check nicknames)\r
-function _isValidDisplayName($name) {\r
-       if (eregi("^[a-z0-9]+[a-z0-9 ]*[a-z0-9]+$", $name) ) {\r
-               return 1;\r
-       } else {\r
-               return 0;\r
-       }\r
-}\r
-\r
-function _doError($msg) {\r
-       ?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET ?>" />\r
-       <title><?php echo _TITLE; ?></title>\r
-       <style>@import url('nucleus/styles/manual.css');</style>\r
-</head>\r
-<body>\r
-       <div style='text-align:center'><img src='./nucleus/styles/logo.gif' /></div> <!-- Nucleus logo -->\r
-       <h1><?php echo _ERROR27; ?></h1>\r
-\r
-       <p><?php echo _ERROR28; ?>: "<?php echo $msg?>";</p>\r
-\r
-       <p><a href="install.php" onclick="history.back();"><?php echo _TEXT17; ?></a></p>\r
-</body>\r
-</html>\r
-\r
-<?php\r
-       exit;\r
-}\r
-\r
-function showErrorMessages($errors) {\r
-       ?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET ?>" />\r
-       <title><?php echo _TITLE; ?></title>\r
-       <style>@import url('nucleus/styles/manual.css');</style>\r
-</head>\r
-<body>\r
-       <div style='text-align:center'><img src='./nucleus/styles/logo.gif' /></div> <!-- Nucleus logo -->\r
-       <h1><?php echo _ERROR27; ?></h1>\r
-\r
-       <p><?php echo _ERROR29; ?>:</p>\r
-\r
-       <ul>\r
-\r
-<?php\r
-       while($msg = array_shift($errors) ) {\r
-               echo '<li>' . $msg . '</li>';\r
-       }\r
-?>\r
-\r
-       </ul>\r
-\r
-       <p><a href="install.php" onclick="history.back();return false;"><?php echo _TEXT17; ?></a></p>\r
-</body>\r
-</html>\r
-\r
-<?php\r
-       exit;\r
-}\r
-\r
-/* for the non-php systems that decide to show the contents:\r
-?></div><?php  */\r
-\r
-?>
\ No newline at end of file
diff --git a/utf8/install_lang_japanese-euc.php b/utf8/install_lang_japanese-euc.php
deleted file mode 100644 (file)
index 1e8988e..0000000
+++ /dev/null
@@ -1,346 +0,0 @@
-<?php\r
-/*\r
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
- * Copyright (C) 2002-2009 The Nucleus Group\r
- *\r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License\r
- * as published by the Free Software Foundation; either version 2\r
- * of the License, or (at your option) any later version.\r
- * (see nucleus/documentation/index.html#license for more info)\r
- */\r
-\r
-/**\r
- * @license http://nucleuscms.org/license.txt GNU General Public License\r
- * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
- * @version $Id$\r
- */\r
-define('_CHARSET',                             'EUC-JP');\r
-\r
-define('_ERROR1',                              '»ÈÍÑÃæ¤ÎPHP¤ÏMySQL¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó :(');\r
-define('_ERROR2',                              '¥Ç¡¼¥¿¥Ù¡¼¥¹Ì¾¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó');\r
-define('_ERROR3',                              '\8e¢¥Ç¡¼¥¿¥Ù¡¼¥¹¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤ò»ÈÍѤ¹¤ë\8e£¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR4',                              '¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤Ë»ÈÍѤǤ­¤ëʸ»ú¤Ï A-Z¡¢a-z¡¢0-9 ¤È _(¥¢¥ó¥À¡¼¥Ð¡¼)¤Î¤ß¤Ç¤¹¡£');\r
-define('_ERROR5',                              'URL¤Î¤¤¤Å¤ì¤«¤¬\8e¢/(¥¹¥é¥Ã¥·¥å)\8e£¤Ç½ª¤ï¤Ã¤Æ¤¤¤Ê¤¤¤«¡¢¤Þ¤¿¤Ïµ¡Ç½·èÄê¥Õ¥¡¥¤¥ë¤ÎURL¤¬\8e¢action.php\8e£¤Ç½ª¤ï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR6',                              '´ÉÍý¥¨¥ê¥¢¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹¤¬\8e¢/(¥¹¥é¥Ã¥·¥å)\8e£¤Ç½ª¤ï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR7',                              '¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤¬³ÊǼ¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹¤¬\8e¢/(¥¹¥é¥Ã¥·¥å)\8e£¤Ç½ª¤ï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR8',                              '¥Æ¡¼¥Þ¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹¤¬\8e¢/(¥¹¥é¥Ã¥·¥å)\8e£¤Ç½ª¤ï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR9',                              '´ÉÍý¥¨¥ê¥¢¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ñ¥¹¤¬¥µ¡¼¥Ð¾å¤Ë¸ºß¤·¤Þ¤»¤ó¡£');\r
-define('_ERROR9_2',                            '<tt>action.php</tt>¥Õ¥¡¥¤¥ë¤Ø¤ÎURL¤¬Ê̤Υµ¡¼¥Ð¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£');\r
-define('_ERROR9_3',                            '<tt>action.php</tt>¥Õ¥¡¥¤¥ë¤Ø¤ÎURL¤Ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£');\r
-define('_ERROR10',                             '¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÉÔÀµ¤Ç¤¹¡£');\r
-define('_ERROR11',                             '\8e¢É½¼¨¤µ¤ì¤ë̾Á°\8e£¤Ë»ÈÍѤǤ­¤Ê¤¤Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£(»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢ºÇ½é¤ÈºÇ¸å°Ê³°¤Î¶õÇò)');\r
-define('_ERROR12',                             '¥Ñ¥¹¥ï¡¼¥É¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£');\r
-define('_ERROR13',                             'ÆþÎϤµ¤ì¤¿Æó¤Ä¤Î¥Ñ¥¹¥ï¡¼¥É¤¬°ìÃפ·¤Þ¤»¤ó¤Ç¤·¤¿¡£');\r
-define('_ERROR14',                             '\8e¢¥Ö¥í¥°¤Îû½Ì̾(ά¾Î)\8e£¤Ë»ÈÍѤǤ­¤Ê¤¤Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£(»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡£¶õÇò¤Ï»ÈÍѤǤ­¤Þ¤»¤ó)');\r
-define('_ERROR15',                             'mySQL server¤ËÀܳ¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£');\r
-define('_ERROR16',                             '¥Ç¡¼¥¿¥Ù¡¼¥¹¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£ºîÀ®¤Î¸¢¸Â¤¬¤¢¤ë¤«¤É¤¦¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£SQL ¥¨¥é¡¼¤ÎÆâÍÆ¡§');\r
-define('_ERROR17',                             '¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò¸«¤Ä¤±¤é¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Â¸ºß¤¹¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£');\r
-define('_ERROR18',                             '¼¡¤Î¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§');\r
-define('_ERROR19',                             '\8e¢¥á¥ó¥Ð¡¼ÀßÄê\8e£¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§');\r
-define('_ERROR20',                             '\8e¢blogÀßÄê\8e£¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§');\r
-define('_ERROR21',                             '¼¡¤Î¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§');\r
-define('_ERROR22',                             '¥×¥é¥°¥¤¥ó¡Ö%s¡×¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£');\r
-define('_ERROR23_1',                   '¥Æ¡¼¥Þ¥Õ¥¡¥¤¥ë\8e¢%s\8e£¤¬Æɤ߹þ¤á¤Þ¤»¤ó¤Ç¤·¤¿¡£');\r
-define('_ERROR23_2',                   '¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¡£');\r
-define('_ERROR24',                             '¥Æ¡¼¥Þ\8e¢%s\8e£¤ò¥¤¥ó¥Ý¡¼¥È½ÐÍè¤Þ¤»¤ó¤Ç¤·¤¿¡£');\r
-define('_ERROR25_1',                   '¥×¥í¥°¥é¥à¤Î¥³¥¢¥Õ¥¡¥¤¥ë <b>');\r
-define('_ERROR25_2',                   '</b> ¤¬¸«¤Ä¤«¤é¤Ê¤¤¡¢¤â¤·¤¯¤ÏÆɤ߽Ф·¶Ø»ß¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£');\r
-define('_ERROR26',                             'ÀßÄê¤Î¹¹¿·Ãæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£¼Â¹Ô¤·¤¿¥¯¥¨¥ê¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡§');\r
-define('_ERROR27',                             '¥¨¥é¡¼¡ª');\r
-define('_ERROR28',                             '¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡§');\r
-define('_ERROR29',                             'Ê£¿ô¤Î¥¨¥é¡¼¤òȯ¸«¤·¤Þ¤·¤¿');\r
-define('_ERROR30',                             '¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§');\r
-\r
-define('_NOTIFICATION1',               'ȽÊÌÉÔǽ');\r
-\r
-define('_TITLE',                               'Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë');\r
-define('_TITLE2',                              '¥Æ¡¼¥Þ¡¦¥×¥é¥°¥¤¥ó¤Î¥¤¥ó¥¹¥È¡¼¥ë¥¨¥é¡¼');\r
-define('_TITLE3',                              '¥¤¥ó¥¹¥È¡¼¥ë¤Ï¤Û¤Ü´°Î»¤·¤Þ¤·¤¿¡ª');\r
-define('_TITLE4',                              '¥¤¥ó¥¹¥È¡¼¥ë¤Ï´°Î»¤·¤Þ¤·¤¿¡ª');\r
-define('_TITLE5',                              '¥¹¥Ñ¥à¤È¤ÎÀ襤');\r
-\r
-define('_HEADER1',                             'Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë');\r
-define('_TEXT1',                               '<p>¤³¤Î¥¹¥¯¥ê¥×¥È¤ÏNucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¼ê½õ¤±¤·¤Þ¤¹¡£MySQL¥Æ¡¼¥Ö¥ë¤Î¥»¥Ã¥È¥¢¥Ã¥×¤È¡¢<i>config.php</i>¤ËÆþÎϤ¹¤ë¤¿¤á¤Î¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡Êconfig.php¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò0666¤Ë¤·¤Æ¤ª¤±¤Ð¡¢¸å¼Ô¤Îºî¶È¤Ï¼«Æ°Åª¤Ë¹Ô¤ï¤ì¤Þ¤¹¡Ë¡£¤³¤ì¤ò¤Ê¤¹°Ù¤Ë¡¢¤¤¤¯¤Ä¤«¤Î¾ðÊó¤òÆþÎϤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£</p><p>¤¹¤Ù¤Æ¤ÎÍó¤ÎÆþÎϤ¬É¬ÍפǤ¹¡£¥ª¥×¥·¥ç¥ó¾ðÊó¤Ï¡¢¥¤¥ó¥¹¥È¡¼¥ë¤¬´°Î»¸åNucleus¤Î´ÉÍýÎΰ褫¤éÀßÄê²Äǽ¤Ç¤¹¡£</p>');\r
-\r
-define('_HEADER2',                             'PHP ¤È MySQL ¤Î¥Ð¡¼¥¸¥ç¥ó');\r
-define('_TEXT2',                               '<p>°Ê²¼¤Ï¤¢¤Ê¤¿¤Î¥¦¥§¥Ö¥Û¥¹¥È¤Ë¤ª¤±¤ëPHP¤ÈMySQL¥µ¡¼¥Ð¡¼¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤¹¡£Nucleus¤Î¥µ¥Ý¡¼¥È¥Õ¥©¡¼¥é¥à¤ËÌäÂê¤òÊó¹ð¤¹¤ë»þ¤Ï¡¢¤³¤Î¾ðÊó¤ò½ñ¤­Åº¤¨¤Æ¤¯¤À¤µ¤¤¡£</p>');\r
-define('_TEXT2_WARN',                  ' Ãí°Õ: Nucleus¤ÎÆ°ºî¤Ë¤Ï¾¯¤Ê¤¯¤È¤â¥Ð¡¼¥¸¥ç¥ó %s ¤¬É¬ÍפǤ¹');\r
-define('_TEXT2_WARN2',                 ' Ãí°Õ: Nucleus¤ÎÆ°ºî¤Ë¤Ï¾¯¤Ê¤¯¤È¤â¥Ð¡¼¥¸¥ç¥ó %s ¤¬É¬ÍפǤ¹');\r
-define('_TEXT2_WARN3',                 '·Ù¹ð¡ª Æ°ºî¤·¤Æ¤¤¤ëPHP¤Î¥Ð¡¼¥¸¥ç¥ó¤¬¸Å¤¤¤è¤¦¤Ç¤¹¡ª¼¡¤Ë¥ê¥ê¡¼¥¹¤µ¤ì¤ëNucleusCMS¤Ç¤ÏPHP4¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡ªÁáµÞ¤ËPHP5¤Ë¥¢¥Ã¥×¥°¥ì¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡ª');\r
-\r
-define('_HEADER3',                             '<i>config.php</i>¤Î¼«Æ°ÀßÄê');\r
-define('_TEXT3',                               '<em>config.php</em>¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò<strong>666</strong>¤Ë¤·¤Æ¤ª¤±¤Ð¡¢¥¹¥¯¥ê¥×¥È¤¬¼«Æ°¤ÇÀßÄê¾ðÊó¤ò½ñ¤­¹þ¤ß¤Þ¤¹¡£¤¿¤À¤·¡¢Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë´°Î»¸å¡¢<strong><em style="font-color:#f00;">ɬ¤º</em></strong>¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò<strong>444</strong>¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤(<a href="nucleus/documentation/tips.html#filepermissions">¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÊѹ¹¤Î´Ê°×¥¬¥¤¥É</a>)¡£</p><p>¥¹¥¯¥ê¥×¥È¤Ë½ñ¤­¹þ¤ß¸¢¸Â¤òÍ¿¤¨¤Ê¤¯¤Æ¤â¡¢¥¤¥ó¥¹¥È¡¼¥ëÃæ¤Ë<em>config.php</em>¤Ë½ñ¤­¹þ¤à¤Ù¤­ÆâÍƤ¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¡¢ÆâÍƤò½ñ¤­´¹¤¨¤ÆFTPÅù¤Ç¥¢¥Ã¥×¥í¡¼¥É¤¹¤ì¤ÐÌäÂꤢ¤ê¤Þ¤»¤ó¡£');\r
-\r
-define('_HEADER4',                             'MySQL¤Î¥í¥°¥¤¥ó¥Ç¡¼¥¿');\r
-define('_TEXT4',                               '<p>MySQL¤Î¥Ç¡¼¥¿¤ò°Ê²¼¤ËÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤é¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¡¦¥Æ¡¼¥Ö¥ë¤òºîÀ®¤·¾ðÊó¤òÆþÎϤ¹¤ë¤¿¤á¤ËɬÍפʤâ¤Î¤Ç¤¹¡£¸å¤Ç¡¢<i>config.php</i>¤Ë¤âµ­Æþ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡Ê¾åµ­¤Î¼«Æ°ÀßÄê¤òÍøÍѤ¹¤ë¾ì¹ç¡¢¤½¤Î¼ê½ç¤Ï¾Êά¤µ¤ì¤Þ¤¹¡Ë¡£</p><p>¤â¤·¤³¤Î¾ðÊ󤬤狼¤é¤Ê¤±¤ì¤Ð¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¥Û¥¹¥Æ¥£¥ó¥°¸µ¤ËÏ¢Íí¤ò¤È¤Ã¤Æ¤¯¤À¤µ¤¤¡£¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥Û¥¹¥È̾¤Ï\8e¢localhost\8e£¤Ç¤¹¡£¤â¤·Nucleus¤¬¤¢¤Ê¤¿¤Î¥µ¡¼¥Ð¤ÎPHPÀßÄ꤫¤é\8e¢default MySQL host\8e£¤ò¸¡ÃΤ·¤¿¤Ê¤é¡¢\8e¢¥Û¥¹¥È̾\8e£¤Ë´û¤Ëµ­Æþ¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£¤â¤Ã¤È¤â¡¢¤³¤Î¾ðÊó¤¬Àµ³Î¤Ç¤¢¤ë¤È¤¤¤¦ÊݾڤϤ¢¤ê¤Þ¤»¤ó¡£</p>');\r
-define('_TEXT4_TAB_HEAD',              '´ðËܤΥǡ¼¥¿¥Ù¡¼¥¹ÀßÄê');\r
-define('_TEXT4_TAB_FIELD1',            '¥Û¥¹¥È̾¡§');\r
-define('_TEXT4_TAB_FIELD2',            '¥æ¡¼¥¶¡¼Ì¾¡§');\r
-define('_TEXT4_TAB_FIELD3',            '¥Ñ¥¹¥ï¡¼¥É¡§');\r
-define('_TEXT4_TAB_FIELD4',            '¥Ç¡¼¥¿¥Ù¡¼¥¹Ì¾¡§');\r
-define('_TEXT4_TAB_FIELD4_ADD',        '¥Ç¡¼¥¿¥Ù¡¼¥¹¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ë');\r
-\r
-define('_TEXT4_TAB2_HEAD',             '¹âÅ٤ʥǡ¼¥¿¥Ù¡¼¥¹ÀßÄê');\r
-define('_TEXT4_TAB2_FIELD',            '¥Æ¡¼¥Ö¥ë¡¦¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤ò»ÈÍѤ¹¤ë¡§');\r
-define('_TEXT4_TAB2_ADD',              '<p>°ì¤Ä¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÊ£¿ô¤ÎNucleus¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¡¢¼«Ê¬¤¬²¿¤ò¤ä¤Ã¤Æ¤¤¤ë¤Î¤«Íý²ò¤·¤Æ¤¤¤ë¾ì¹ç¤ò½ü¤­¡¢<strong>¤³¤ì¤òÊѹ¹¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó</strong>¡£</p><p>Nucleus¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¥Æ¡¼¥Ö¥ë¤Ï¡¢¤³¤Î¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤¬Æ¬¤Ë¤Ä¤­¤Þ¤¹¡£</p>');\r
-\r
-define('_HEADER5',                             '¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL');\r
-define('_TEXT5',                               '<p>¤³¤Î¥¤¥ó¥¹¥È¡¼¥ë¥¹¥¯¥ê¥×¥È¤ÏNucleus¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL¤ò¸«¤Ä¤±¤è¤¦¤È¤·¤Þ¤·¤¿¡£²¼¤ÎÃͤò¥Á¥§¥Ã¥¯¤·¤ÆɬÍפʤéÄûÀµ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Õ¥¡¥¤¥ë¤Ø¤Î¥Ñ¥¹¤ÈURL¤Ï¥¹¥é¥Ã¥·¥å\'/\'¤Ç½ª¤ï¤é¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£</p>');\r
-\r
-define('_TEXT5_TAB_HEAD',              '¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL');\r
-define('_TEXT5_TAB_FIELD1',            '¥µ¥¤¥È¤Î<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD2',            '´ÉÍý¥¨¥ê¥¢¤Î<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD3',            '´ÉÍý¥¨¥ê¥¢¤Î<strong>¥Ç¥£¥ì¥¯¥È¥ê</strong>¡§');\r
-define('_TEXT5_TAB_FIELD4',            '¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤¬³ÊǼ¤µ¤ì¤ë<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD5',            '¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤¬³ÊǼ¤µ¤ì¤ë<strong>¥Ç¥£¥ì¥¯¥È¥ê</strong>¡§');\r
-define('_TEXT5_TAB_FIELD6',            '¥¹¥­¥ó¥Õ¥¡¥¤¥ë¤Î<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD7',            '¥¹¥­¥ó¥Õ¥¡¥¤¥ë¤Î<strong>¥Ç¥£¥ì¥¯¥È¥ê</strong>¡§');\r
-define('_TEXT5_TAB_FIELD7_2',  '¥¤¥ó¥Ý¡¼¥È¤·¤¿¥¹¥­¥ó¤Ç»ÈÍѤ¹¤ë¥Õ¥¡¥¤¥ë');\r
-define('_TEXT5_TAB_FIELD8',            '¥×¥é¥°¥¤¥ó¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ë<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD9',            'µ¡Ç½·èÄê¥Õ¥¡¥¤¥ë¤Î<strong>URL</strong>¡§');\r
-define('_TEXT5_TAB_FIELD9_2',  '<tt>action.php</tt>¥Õ¥¡¥¤¥ë¤Ø¤Îhttp://¤«¤é»Ï¤Þ¤ëURL¡§');\r
-define('_TEXT5_2',                             '<p class="note"><strong>ÉÕµ­:</strong> ÁêÂХѥ¹¤Ç¤Ï¤Ê¤¯<strong>ÀäÂХѥ¹¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤</strong>¡£ÀäÂХѥ¹¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢<tt>/home/username/public_html/</tt>¤Î¤è¤¦¤Ë¥¹¥é¥Ã¥·¥å¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£¤è¤¯²ò¤é¤Ê¤¤¾ì¹ç¤Ï¥µ¡¼¥Ð´ÉÍý¼Ô¤Ë¼ÁÌ䤷¤Æ¤¯¤À¤µ¤¤¡£</p>');\r
-\r
-define('_HEADER6',                             '´ÉÍý¸¢¸Â¤ò¤â¤Ä¥æ¡¼¥¶¡¼');\r
-define('_TEXT6',                               '<p>°Ê²¼¤Ë¡¢¥µ¥¤¥È¤ÎºÇ½é¤Î¥æ¡¼¥¶¡¼¤òºîÀ®¤¹¤ë¤¿¤á¤Î¾ðÊó¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£</p>');\r
-define('_TEXT6_TAB_HEAD',              '¥µ¥¤¥È¤Î´ÉÍý¼Ô¡§');\r
-define('_TEXT6_TAB_FIELD1',            'ɽ¼¨¤µ¤ì¤ë̾Á°(¥í¥°¥¤¥óID)¡§');\r
-define('_TEXT6_TAB_FIELD1_2',  '»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢ºÇ½é¤ÈºÇ¸å°Ê³°¤Î¶õÇò');\r
-define('_TEXT6_TAB_FIELD2',            'ËÜ̾(¥Ï¥ó¥É¥ë̾)¡§');\r
-define('_TEXT6_TAB_FIELD3',            '¥Ñ¥¹¥ï¡¼¥É¡§');\r
-define('_TEXT6_TAB_FIELD4',            '¥Ñ¥¹¥ï¡¼¥É(³Îǧ¤Î°Ù¤Ë¤â¤¦¤¤¤Á¤ÉÆþÎϤ·¤Æ¤¯¤À¤µ¤¤)¡§');\r
-define('_TEXT6_TAB_FIELD5',            '¥á¡¼¥ë¥¢¥É¥ì¥¹¡§');\r
-define('_TEXT6_TAB_FIELD5_2',  'ÍøÍѲÄǽ¤Ê¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤');\r
-\r
-define('_HEADER7',                             '¥Ö¥í¥°¤Î¥Ç¡¼¥¿');\r
-define('_TEXT7',                               '<p>°Ê²¼¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤ÎWeblog¤òºîÀ®¤¹¤ë¤¿¤á¤Î¾ðÊó¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎWeblog¤Î̾Á°¤Ï¡¢¥µ¥¤¥È̾¤È¤·¤Æ¤âÍøÍѤµ¤ì¤Þ¤¹¡£</p>');\r
-define('_TEXT7_TAB_HEAD',              '¥Ö¥í¥°¤Î¥Ç¡¼¥¿');\r
-define('_TEXT7_TAB_FIELD1',            '¥Ö¥í¥°¤Î̾Á°¡§');\r
-define('_TEXT7_TAB_FIELD2',            '¥Ö¥í¥°¤Îû½Ì̾(ά¾Î)¡§');\r
-define('_TEXT7_TAB_FIELD2_2',  '»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢¶õÇò¤ÏÉÔ²Ä');\r
-\r
-define('_HEADER8',                             '¹¹¿·Ping');\r
-//define('_HEADER8',                           '¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¥×¥é¥°¥¤¥ó¤È¥Æ¡¼¥Þ¤ÎÁªÂò');\r
-define('_TEXT8_TAB_HEADER',            '¹¹¿·Ping');\r
-define('_TEXT8_TAB_PLUGINDEP', '°Ê²¼¤Î¥×¥é¥°¥¤¥ó¤Ë°Í¸¤·¤Þ¤¹¡£%s'); //<addsatona date="2008-09-03" />\r
-//define('_TEXT8_TAB_HEADER',          '¥×¥é¥°¥¤¥ó¤ÎÁªÂò');\r
-define('_TEXT8_TAB_HEADER2',   '¥Æ¡¼¥Þ¤ÎÁªÂò');\r
-define('_TEXT8_TAB_FIELD1',            '¹¹¿·PingÁ÷¿®¤Î¤¿¤á¤Ë¡¢NP_Ping¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¤«¡©(¤³¤Î¥×¥é¥°¥¤¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤¯¤Æ¤â¡¢Â¾¤Î¥×¥é¥°¥¤¥ó¤Ç¹¹¿·Ping¤òÁ÷¿®¤¹¤ë»ö¤Ï½ÐÍè¤Þ¤¹)');\r
-\r
-define('_HEADER9',                             '¥Ç¡¼¥¿¤ÎÁ÷¿®');\r
-define('_TEXT9',                               '<p>¾å¤Ë½ñ¤¤¤Æ¤­¤¿¥Ç¡¼¥¿¤¬Àµ¤·¤¤¤«³Î¤«¤á¤Æ¤¯¤À¤µ¤¤¡£¤è¤±¤ì¤Ð¥Ç¡¼¥¿¥Ù¡¼¥¹¡¦¥Æ¡¼¥Ö¥ë¤ÈºÇ½é¤Î¥Ç¡¼¥¿¤òÀßÄꤹ¤ë¤¿¤á¤Ë²¼¤Î¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£¾¯¤·»þ´Ö¤¬¤«¤«¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¤´¿ÉÊú¤ò¡£<strong>¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤Î¤Ï°ì²ó¤À¤±¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£</strong></p>');\r
-\r
-define('_TEXT10',                              '<p>¥Ç¡¼¥¿¥Ù¡¼¥¹¥Æ¡¼¥Ö¥ë¤Î½é´üÃÍÆþÎϤ¬À®¸ù¤·¤Þ¤·¤¿¡£¸å¤Ï<i>config.php</i>¤ò½ñ¤­´¹¤¨¤ë¤À¤±¤Ç¤¹¡£°Ê²¼¤Ë½ñ¤­´¹¤¨¤ë¤Ù¤­ÆâÍƤòɽ¼¨¤·¤Þ¤¹¡Êmysql¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï¥Þ¥¹¥¯¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ï¼ÂºÝ¤Î¤â¤Î¤Ë½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡Ë</p>');\r
-define('_TEXT11',                              '<p>¤¢¤Ê¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿¾å¤Î¥Õ¥¡¥¤¥ë¤ò½ñ¤­´¹¤¨¤¿¤é¡¢FTP¤ò»È¤Ã¤Æ¥¦¥§¥Ö¥µ¡¼¥Ð¤Ë¥¢¥Ã¥×¥í¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡£ASCII¥â¡¼¥É¤ÇÁ÷¿®¤·¤Æ¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤·¤Þ¤¹¡£</p>');\r
-define('_TEXT12',                              '<b>ÉÕµ­:</b> <i>config.php</i>¤ÎºÇ½é¤ä½ª¤ï¤ê¤Ë¥¹¥Ú¡¼¥¹¤ò¶õ¤±¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£¼Â¹Ô»þ¤Ë¥¨¥é¡¼¤ò°ú¤­µ¯¤³¤¹¸¶°ø¤È¤Ê¤ê¤Þ¤¹¡£<br />¤·¤¿¤¬¤Ã¤Æ¡¢config.php¤ÎºÇ½é¤Îʸ»ú¤Ï "&lt;"¤ÇºÇ¸å¤Îʸ»ú¤Ï"&gt;"¤È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£');\r
-define('_TEXT13',                              '<p>Nucleus¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¡¢<code>config.php</code>¤Ï¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤Þ¤·¤¿¡£</p><p>¥»¥­¥å¥ê¥Æ¥£¤Î¤¿¤á<code>config.php</code>¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò444¤ËÌ᤹¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤(<a href="nucleus/documentation/tips.html#filepermissions">¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÊѹ¹¤Î´Ê°×¥¬¥¤¥É</a>)¡£</p>');\r
-define('_TEXT14',                              '<p>Nucleus¤Ïï¤Ç¤â¥Ö¥í¥°¤Ë¥³¥á¥ó¥È¤ò»Ä¤¹»ö¤¬½ÐÍè¤ëÍͤˤʤäƤ¤¤ë¤Î¤Ç¡¢¤³¤Î¤Þ¤Þ¤Ç¤Ï¥¹¥Ñ¥Þ¡¼¤Î²¹¾²¤Ë¤Ê¤ë´í¸±¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤ÎÊýË¡¤Î¤Ë¤è¤Ã¤Æ¥Ö¥í¥°¤òÊݸ¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡§</p>');\r
-define('_TEXT14_L1',                   '¤¢¤Ê¤¿¤¬¥³¥á¥ó¥È¤òɬÍפȤ·¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢´ÉÍý¥¨¥ê¥¢¤«¤é\8e¢¤¢¤Ê¤¿¤Î¥Ö¥í¥°\8e£ &gt; \8e¢¥Ö¥í¥°ÀßÄê\8e£ ¤È¤¿¤É¤ê¡¢ \8e¢¥³¥á¥ó¥È¤òµö²Ä¤·¤Þ¤¹¤«?\8e£ ¤ÎÀßÄê¤ò\8e¢¤¤¤¤¤¨\8e£¤Ë¤¹¤ë»ö¤Ç¡¢¥³¥á¥ó¥ÈÅê¹Æ¥Õ¥©¡¼¥à¤òÈóɽ¼¨¤Ë¤¹¤ë»ö¤¬½ÐÍè¤Þ¤¹¡£');\r
-define('_TEXT14_L2',                   '¥¹¥Ñ¥à¤ò·âÂࡦ´ÉÍý¤¹¤ë°Ù¤Î¥×¥é¥°¥¤¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡§<a href="http://japan.nucleuscms.org/wiki/plugins_by_category#section4">Nucleus Japan wiki</a> (¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ò¤ª´«¤á¤·¤Þ¤¹)');\r
-define('_HEADER10',                            '¥¤¥ó¥¹¥È¡¼¥ë¥Õ¥¡¥¤¥ë¤Îºï½ü');\r
-define('_TEXT15',                              '<p>¥¦¥§¥Ö¥µ¡¼¥Ð¤«¤é¼¡¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡§</p>');\r
-define('_TEXT15_L1',                   '<b>install.sql</b>¡§¥Æ¡¼¥Ö¥ë¤Î¹½Â¤¤òÆâÊñ¤¹¤ë¥Õ¥¡¥¤¥ë');\r
-define('_TEXT15_L2',                   '<b>install.php</b>¡§¤³¤Î¥Õ¥¡¥¤¥ë');\r
-\r
-define('_TEXT15_EX',                   '<p>¤â¤·¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢´ÉÍýÎΰè¤ò³«¤¯¤³¤È¤¬½ÐÍè¤Þ¤»¤ó¡£</p>');\r
-\r
-define('_HEADER11',                            '¥¦¥§¥Ö¥µ¥¤¥È¤Î³Îǧ');\r
-define('_TEXT16',                              '¥¦¥§¥Ö¥µ¥¤¥È¤ò»È¤¦½àÈ÷¤¬À°¤¤¤Þ¤·¤¿¡£');\r
-define('_TEXT16_L1',                   '´ÉÍýÎΰè¤Ë¥í¥°¥¤¥ó¤·¤Æ¥µ¥¤¥È¤ÎÀßÄê¤ò¹Ô¤¦');\r
-define('_TEXT16_L2',                   '¤¹¤°¤Ë¥µ¥¤¥È¤Ø¹Ô¤Ã¤Æ¤ß¤ë');\r
-\r
-define('_TEXT17',                              'Ìá¤ë');\r
-\r
-define('_BUTTON1',                             'Nucleus CMS¤Î¥¤¥ó¥¹¥È¡¼¥ë');\r
-\r
-// General category\r
-define('_GENERALCAT_NAME',             'Áí¹ç');\r
-define('_GENERALCAT_DESC',             'Åê¹Æ¤·¤¿µ­»ö¤Ë¹ç¤¦¥«¥Æ¥´¥ê¤¬Ìµ¤¤»þ¤Ë¤³¤Î¥«¥Æ¥´¥ê¤ò»ÈÍѤ¹¤ë¤ÈÎɤ¤¤Ç¤·¤ç¤¦');\r
-\r
-define('_1ST_POST_TITLE',              'Nucleus CMS ¥Ð¡¼¥¸¥ç¥ó3.4¤Ø¤è¤¦¤³¤½');\r
-define('_1ST_POST',                            '¥¦¥§¥Ö¥Ú¡¼¥¸¤ÎºîÀ®¤òÊä½õ¤¹¤ëÀѤßÌÚ¤¬¤³¤³¤Ë¤¢¤ê¤Þ¤¹¡£¤½¤ì¤Ï¿´Ìö¤ëblog¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢´Ñ¤ë¤â¤Î¤òϤޤ»¤ë²È²¤Î¥Ú¡¼¥¸¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢¼Â¤ê¿¤­¼ñÌ£¤Î¥µ¥¤¥È¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤¢¤ë¤¤¤Ï¸½ºß¤Î¤¢¤Ê¤¿¤Ë¤ÏÁÛÁü¤¬¤Ä¤«¤Ê¤¤¤â¤Î¤Ë¤Ê¤ë¤³¤È¤À¤Ã¤Æ¤¢¤ë¤Ç¤·¤ç¤¦¡£<br />\r
-<br />ÍÑÅÓ¤¬»×¤¤¤Ä¤­¤Þ¤»¤ó¤Ç¤·¤¿¤«¡©¡¡¤½¤ì¤Ê¤é¤³¤³¤ØÍè¤ÆÀµ²ò¤Ç¤¹¡£¤Ê¤¼¤Ê¤é¤¢¤Ê¤¿Æ±Íͻ䤿¤Á¤Ë¤â¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¤«¤é¡£');\r
-define('_1ST_POST2',                   '¤³¤ì¤Ï¥µ¥¤¥È¤Ë¤ª¤±¤ëºÇ½é¤Î¥¨¥ó¥È¥ê¡¼¤Ç¤¹¡£¥¹¥¿¡¼¥È¤òÀÚ¤ê¤ä¤¹¤¤¤è¤¦¤Ë¡¢¥ê¥ó¥¯¤È¾ðÊó¤òÆþ¤ì¤Æ¤ª¤­¤Þ¤·¤¿¡£<br />\r
-<br />\r
-¤³¤Îµ­»ö¤òºï½ü¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤¬¡¢¤É¤Á¤é¤Ë¤»¤èµ­»ö¤òÄɲ䷤Ƥ¤¤¯¤³¤È¤Ë¤è¤Ã¤Æ¤ä¤¬¤Æ¥á¥¤¥ó¥Ú¡¼¥¸¤«¤é¤Ï¸«¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£Nucleus¤ò°·¤¦¤¦¤Á¤ËÀ¸¤¸¤¿¥á¥â¤ò¥³¥á¥ó¥È¤È¤·¤ÆÄɲä·¡¢¾­Í襢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤³¤Î¥Ú¡¼¥¸¤ò¥Ö¥Ã¥¯¥Þ¡¼¥¯¤·¤Æ¤ª¤¯¤Î¤â¼ê¤Ç¤¹¡£<br />\r
-<br />\r
-<b>¥ê¥ó¥¯</b><br />\r
-<br />\r
-Nucleus CMS¤Î<a href="http://nucleuscms.org">ËܲÈ</a>¤È<a href="http://japan.nucleuscms.org">ÆüËܸì¸ø¼°</a>¥Ú¡¼¥¸¡£<br />\r
-<br />\r
-Nucleus CMS¤ÎSourceForge<a href="http://sourceforge.net/projects/nucleuscms/">¥×¥í¥¸¥§¥¯¥È</a>¡Ê<a href="http://sourceforge.jp/projects/nucleus-jp/">ÆüËÜÈÇ</a>¡Ë¥Ú¡¼¥¸¡£<br />\r
-<br />\r
-Nucleus CMS¤Î¥×¥é¥°¥¤¥ó<a href="http://wakka.xiffy.nl/Plugin/">ÁÒ¸Ë</a>¤È<a href="http://japan.nucleuscms.org/wiki/plugins">ÆüËܸì¤Î¥ê¥¹¥È</a>¥Ú¡¼¥¸¡£<br />\r
-<br />\r
-<b>¥É¥­¥å¥á¥ó¥È - <a href="http://docs.nucleuscms.org/">docs.nucleuscms.org</a></b><br />\r
-<br />\r
-Nucleus¤Î<a href="http://japan.nucleuscms.org/faq.php">FAQ¡Ê¤è¤¯¤¢¤ë¼ÁÌ佸¡Ë</a>¡Ê<a href="http://nucleuscms.org/faq.php">¸¶Ê¸</a>¡Ë¥Ú¡¼¥¸¡£<br />\r
-<br />\r
-¥¤¥ó¥¹¥È¡¼¥ëÊýË¡Åù¤Ï<a href="nucleus/documentation/">¥æ¡¼¥¶¡¼¸þ¤±</a>¤È<a href="nucleus/documentation/devdocs/">³«È¯¼Ô¸þ¤±</a>ʸ½ñ¤¬¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£<br />\r
-<br />\r
-¥Ý¥Ã¥×¥¢¥Ã¥×<a href="./nucleus/documentation/help.html">¥Ø¥ë¥×</a>¤¬´ÉÍý¥¨¥ê¥¢¤Î¤¤¤¿¤ë¤È¤³¤í¤Ë¤¢¤ê¡¢¥µ¥¤¥È¤Î¥«¥¹¥¿¥Þ¥¤¥º¤ä¥Ç¥¶¥¤¥ó¤ò¼ê½õ¤±¤·¤Æ¤¯¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦¡£<br />\r
-<br />\r
-°ìÅÙÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¥É¥­¥å¥á¥ó¥È¤ËÌܤòÄ̤·¤¿¤é¡¢<a href="http://wiki.nucleuscms.org/">Wiki</a>¡Ê<a href="http://japan.nucleuscms.org/wiki/">ÆüËÜÈÇ</a>¡Ë¤òˬ¤ì¤Æ¤¯¤À¤µ¤¤¡£¥æ¡¼¥¶¡¼¤Î½ñ¤¤¤¿¥Ï¥¦¥Ä¡¼¤ä¾®µ»¤¬·ÇºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£<br />\r
-<br />\r
-<b>¥µ¥Ý¡¼¥È</b><br />\r
-<br />\r
-<a href="http://forum.nucleuscms.org/">forum.nucleuscms.org</a>¡ÊËܲȡË<br />\r
-<a href="http://japan.nucleuscms.org/bb/">japan.nucleuscms.org/bb/</a>¡ÊÆüËÜÈÇ¡Ë<br />\r
-<br />\r
-<a href="http://forum.nucleuscms.org/groupcp.php?g=3">moderators</a>¤È¥µ¥Ý¡¼¥È¥Õ¥©¡¼¥é¥à¤Ç³èÆ°¤¹¤ëÁ´¤Æ¤Î¥Ü¥é¥ó¥Æ¥£¥¢¤Ë´¶¼Õ¤·¤Þ¤¹¡£<br />\r
-<br />\r
-- <a href="http://edmondhui.homeip.net/blog/">admun</a> - Ottawa, ON, Canada           <br />\r
-- <a href="http://www.tamizhan.com/">anand</a> - Bangalore, India<br />\r
-- <a href="http://hcgtv.com">hcgtv</a> - Miami, Florida, USA<br />\r
-- <a href="http://www.adrenalinsports.nl/">ikeizer</a> - Maastricht<br />\r
-- <a href="http://www.tipos.com.br/">moraes</a> - Brazil<br />\r
-- <a href="http://roelg.nl/">roel </a>- The Netherlands<br />\r
-- <a href="http://budts.be/weblog/">TeRanEX </a>- Ekeren, Antwerp, Belgium<br />\r
-- <a href="http://www.trentadams.com/">Trent </a>- Alberta, Canada<br />\r
-- <a href="http://xiffy.nl/weblog/">xiffy </a>- Deventer<br />\r
-<br />\r
-¤â¤·¼ê½õ¤±¤¬É¬Íפʤ顢1400¤òĶ¤¨¤ëÅÐÏ¿¥æ¡¼¥¶¡¼¤Î¤¤¤ë»ä¤¿¤Á¤Î¥Õ¥©¡¼¥é¥à¤Ë»²²Ã¤·¤Æ¤¯¤À¤µ¤¤¡£23,000¤òĶ¤¨¤ëÅê¹Æ¤µ¤ì¤¿µ­»ö¤ò¸¡º÷¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤ª¤ê¤Þ¤¹¤Î¤Ç¡¢µá¤á¤ëÅú¤¨¤Ë¿ô²ó¤Î¥¯¥ê¥Ã¥¯¤Ç¤¿¤É¤êÃ失¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£<br />\r
-<br />\r
-<b>Personalization - <a href="http://skins.nucleuscms.org/">skins.nucleuscms.org</a></b><br />\r
-<br />\r
-¥Þ¥ë¥Á¥¦¥§¥Ö¥í¥°¤È¥¹¥­¥ó/¥Æ¥ó¥×¥ì¡¼¥È¤ÎÁȤ߹ç¤ï¤»¤Ï¶¯ÎϤÊÁê¾è¸ú²Ì¤òÀ¸¤ß½Ð¤·¤Þ¤¹¡£¸Ä¿ÍŪ¤Ê¥µ¥¤¥ÈºîÀ®¡¢Í§¿Í¤ä¿ÆÀ̤¢¤ë¤¤¤Ï¥¯¥é¥¤¥¢¥ó¥È¤ËÂФ¹¤ë¥µ¥¤¥È¥Ç¥¶¥¤¥ó¤¤¤º¤ì¤ËÂФ·¤Æ¤â¤Ç¤¹¡£<br />\r
-<br />\r
-636¤ÎÅÐÏ¿¤µ¤ì¤¿<a href="http://nucleuscms.org/sites.php">Nucleus¤Ç±¿ÍѤµ¤ì¤Æ¤¤¤ë¥µ¥¤¥È</a>¡Ê<a href="http://japan.nucleuscms.org/sites.php">ÆüËÜÈÇ</a>¡Ë¤ÎÃ椫¤éÆÿ§¤¢¤ë¥µ¥¤¥È¤ò¥µ¥ó¥×¥ë¤È¤·¤Æ¤´¾Ò²ð¤·¤Þ¤¹¡£<br />\r
-<br />\r
-The Zen of Nucleus<br />\r
-- <a href="http://beefcake.nl/">beefcake.nl</a> - Beefcake | Nuke the whales!<br />\r
-- <a href="http://www.leng-lui.com//">leng-lui.com</a> - Leng-Lui.com - v7.0: "Memento"<br />\r
-<br />\r
-Personal blogs<br />\r
-- <a href="http://bloggard.com/">bloggard.com</a> - The Adventures of Bloggard<br />\r
-- <a href="http://battleangel.org/">battleangel.org</a> - Giving meaning to the meaningless<br />\r
-- <a href="http://www.yetanotherblog.de/">yetanotherblog.de</a> - Yet Another Blog<br />\r
-<br />\r
-Multi user blogs<br />\r
-- <a href="http://tipos.com.br/">tipos.com.br</a> - Blogging community<br />\r
-<br />\r
-Hobby, Travel and News sites<br />\r
-- <a href="http://adrenalinsports.nl/">adrenalinsports.nl</a> - Extreme sports<br />\r
-- <a href="http://hsbluebird.com/">hsbluebird.com</a> - Hot Springs, Montana\'\'s Online Resource <br />\r
-- <a href="http://groningen-info.de/">groningen-info.de</a> - Neues aus Groningen. Fr Leute aus Duitsland.<br />\r
-- <a href="http://www.americandaily.com/">americandaily.com</a> - American Daily - Home<br />\r
-<br />\r
-<b>Nucleus Developer Network - <a href="http://dev.nucleuscms.org/">dev.nucleuscms.org</a></b><br />\r
-<br />\r
-The NUDN is a hub for developer sites and programming resources.<br />\r
-<br />\r
-NUDN satellite sites, handles, location and UTC offset:<br />\r
-- <a href="http://karma.nucleuscms.org/">karma</a> - Izegem +02<br />\r
-- <a href="http://hcgtv.net/">hcgtv</a> - Miami -05<br />\r
-- <a href="http://edmondhui.homeip.net/blog/nudn.php">admun</a> - Ottawa -04<br />\r
-- <a href="http://dev.budts.be/nucleus/">TeRanEX</a> - Ekeren +02<br />\r
-<br />\r
-Sourceforge.net graciously hosts our <a href="http://sourceforge.net/projects/nucleuscms/">CVS repository</a>.<br />\r
-<br />\r
-Want to play around or test changes, visit our demo site at <a href="http://demo.nucleuscms.org/">demo.nucleuscms.org</a>.<br />\r
-<br />\r
-Not sure what plugins to use, visit the <a href="http://showcase.trentadams.com/">showcase site</a> where you can see plugins at play in their native habitat.<br />\r
-<br />\r
-Then visit the plugin repository at <a href="http://plugins.nucleuscms.org/">plugins.nucleuscms.org</a> for download and installation instructions.<br />\r
-<br />\r
-<b>´óÉÕ¼Ô°ìÍ÷</b><br />\r
-<br />\r
-°Ê²¼¤Î<a href="http://nucleuscms.org/donators.php">ÁÇÀ²¤é¤·¤¤¿Í¡¹</a>¤Ë¤è¤ë<a href="http://nucleuscms.org/donate.php">±ç½õ</a>´¶¼Õ¤òÊû¤²¤Þ¤¹¡£<em>¤¢¤ê¤¬¤È¤¦¡ª</em><br />\r
-<br />\r
-- <a href="http://reddustrec.net/">dkex</a><br />\r
-- <a href="http://www.uncoverthenet.com/">Uncover the Net</a><br />\r
-- <a href="http://www.webatlas.org/">Web Atlas</a><br />\r
-- <a href="http://www.ipnlighting.com/">IPN Lighting</a><br />\r
-- <a href="http://blog.datoka.jp/">Yu (blog.datoka.jp)</a><br />\r
-- <a href="http://www.thegadgetreview.com/">Sony Gadgets and Reviews</a><br />\r
-- <a href="http://sites.proliphus.com/blueZhift/blog/">Thomas McKibben</a><br />\r
-- <a href="http://cheapweb.us/">CheapWeb.us</a><br />\r
-- Robert Seyfriedsberger<br />\r
-- <a href="http://www.toxicologie.nl/">Toxicologie.nl</a><br />\r
-- Gordon Shum<br />\r
-- <a href="http://www.subsim.com/">Neal Stevens</a><br />\r
-- <a href="http://www.GamblingHelper.com/">GamblingHelper</a><br />\r
-- Oliver Kirstein<br />\r
-- <a href="http://www.dominiek.be/">Dominiek</a><br />\r
-- <a href="http://www.aardschok.net/">Aardschok</a><br />\r
-- <a href="http://www.nieuwevoordeur.be/">nieuwevoordeur.be</a><br />\r
-- <a href="http://www.scene24.net/">Scene24</a><br />\r
-- <a href="http://www.eug.be/">Eug\'\'s Weblog</a><br />\r
-- <a href="http://www.bloggard.com/">The Adventures of Bloggard</a><br />\r
-- <a href="http://www.voltos.com/">Arthur Cronos from Voltos</a><br />\r
-- <a href="http://www.webmaster-toolkit.com/">Free Webmaster Tools and Resources</a><br />\r
-- <a href="http://www.domilog.be/">Domi\'\'s Weblog</a><br />\r
-- Infodoma             <br />\r
-- <a href="http://carvingcode.com/">carvingCode.com</a><br />\r
-- <a href="http://www.traweb.com/">Traweb</a><br />\r
-- <a href="http://gene.mm2u.com/">Gene\'\'s MoBlog</a><br />\r
-- <a href="http://interfacethis.com/">InterfaceThis</a><br />\r
-- <a href="http://www.thefinsters.com/flog/">The Finster Log</a><br />\r
-- <a href="http://www.mrhop.com/">Hop Nguyen</a><br />\r
-- <a href="http://www.zwavel.com/~zwavelaars" title="Zwavelaars">Zwavelaars</a><br />\r
-- <a href="http://beefcake.nl/">Joaquin Scholten</a>   <br />\r
-- <a href="http://www.roelgroeneveld.com/">Roel Groeneveld</a><br />\r
-- <a href="http://lvb.net/">LVBlog</a><br />\r
-- <a href="http://xandermol.com/">Xander Mol</a><br />\r
-- Danilo Massa<br />\r
-- <a href="http://01FTP.com/">01FTP.com</a><br />\r
-- <a href="http://www.adrenalinsports.nl/">Irmo Keizer</a><br />\r
-- <a href="http://www.jasonkrogh.com/">Jason Krogh</a><br />\r
-- <a href="http://www.higuchi.com/">Osamu Higuchi</a><br />\r
-- <a href="http://www.trentadams.com/">Trent Adams</a><br />\r
-- <a href="http://www.ppcw.net/">Arne Hess</a><br />\r
-- <a href="http://hsbluebird.com/">The Bluebird</a><br />\r
-- Rainer Bickel<br />\r
-- Fritz Elfers<br />\r
-- <a href="http://www.european-wall-tapestries.com/">European Wall Tapestries</a><br />\r
-- <a href="http://www.jamier.net/">Jamie R. Rytlewski</a><br />\r
-- Madolyn Piper<br />\r
-- <a href="http://www.batteryvalues.com/">Battery Values</a><br />\r
-- <a href="http://www.mixburnrip.de/">Janko Roettgers</a><br />\r
-- Lukas Loesche<br />\r
-- <a href="http://www.seobook.com/">SEO Book</a><br />\r
-- <a href="http://www.brandweerdematen.nl/">Brandweer de Maten</a><br />\r
-- Andy Fuchs<br />\r
-- <a href="http://www.sumoforce.com/">Sumoforce</a><br />\r
-- <a href="http://love.silverindigo.com/">Al\'\'ky\'\'mie</a><br />\r
-- <a href="http://www.pejo.us/">Peter Johnson</a><br />\r
-- <a href="http://www.triv.nl/">TriV Internet Solutions</a><br />\r
-- <a href="http://www.torontomusicians.org/nucleus/">Margaret Stowe</a><br />\r
-- <a href="http://www.zenkey.org/">zenkey dot org</a><br />\r
-- <a href="http://www.golb.org/">Blots of Info</a><br />\r
-- <a href="http://www.zonderpartij.be/">Rudi De Kerpel</a><br />\r
-- <a href="http://staylorx.com/">Steve Taylor</a><br />\r
-- <a href="http://lmhcave.com/">Malcolm Farnsworth</a><br />\r
-- Birgit Kellner<br />\r
-- <a href="http://www.tobiasly.com/">Toby Johnson</a><br />\r
-- <a href="http://www.kapingamarangi.be/">Kapingamarangi</a><br />\r
-- <a href="http://www.pallalink.net/">Pallalink</a><br />\r
-- <a href="http://publiustx.net/">PubliusTX Weblog</a><br />\r
-- <a href="http://www.reductioadabsurdum.net/">Reductio Ad Absurdum</a><br />\r
-- <a href="http://www.gagaweb.org/">GagaWeb</a><br />\r
-- <a href="http://www.videokid.be/">Videokid</a><br />\r
-- Jon Marr<br />\r
-- <a href="http://www.docblog.org/">Luigi Cristiano</a><br />\r
-- J Keith Lehman<br />\r
-- Bohemian Cachet<br />\r
-- Jesus Mourazos<br />\r
-- <a href="http://ltp-design.com/">Stephen Jones</a><br />\r
-- <a href="http://oha.nu/">One-Handed Apps</a><br />\r
-- Alwin Hawkins<br />\r
-- <a href="http://jstigall.bloomington.in.us">Justin Stigall</a><br />\r
-- <a href="http://www.itismylife.com/">It is my life</a><br />\r
-- Greg Morrill<br />\r
-- <a href="http://www.dutchsubmarines.com/">Dutch Submarines</a><br />\r
-- <a href="http://www.7thwatch.com/">Seventh Watch Design Studios</a>          <br />\r
-- <a href="http://www.macnet2.com/">MacNetv2</a>       <br />\r
-- Richard Noordhof<br />\r
-- <a href="http://www.jamier.net/">Jamie Rytlewski</a><br />\r
-<br />\r
-Nucleus¤¬µ¤¤ËÆþ¤ê¤Þ¤·¤¿¤«¡©¡¡<a href="http://www.hotscripts.com/Detailed/13368.html?RID=nucleus@demuynck.org">HotScripts</a>¤ä<a href="http://www.opensourcecms.com/index.php?option=content&task=view&id=145">opensourceCMS</a>¤Ç¤ÎÅêɼ¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£<br />\r
-<br />\r
-<b>¥é¥¤¥»¥ó¥¹</b><br />\r
-<br />\r
-»ä¤¿¤Á¤¬¥Õ¥ê¡¼¡¦¥½¥Õ¥È¥¦¥§¥¢¤Ë¤Ä¤¤¤Æ¸ý¤Ë¤¹¤ë¾ì¹ç¤Ï¼«Í³¤Î¤³¤È¤Ë¸ÀµÚ¤·¤Æ¤¤¤ë¤Î¤Ç¤¢¤Ã¤Æ¡¢²Á³Ê¤Î¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£»ä¤¿¤Á¤Î<a href="http://www.gnu.org/licenses/gpl.html">°ìÈ̸øÍ­»ÈÍѵöÂú½ñ</a>¡Ê<a href="http://www.gnu.org/licenses/gpl.ja.html">ÆüËܸìÌõ</a>¤È<a href="http://www.atmarkit.co.jp/aig/03linux/gpl.html">³µÍ×</a>¡Ë¤Ï¡¢¥Õ¥ê¡¼¡¦¥½¥Õ¥È¥¦¥§¥¢¤ÎÊ£À½Êª¤ò¼«Í³¤ËÈÒÉۤǤ­¤ë¤³¤È(¤½¤·¤Æ¡¢Ë¾¤à¤Ê¤é¤³¤Î¥µ¡¼¥Ó¥¹¤ËÂФ·¤ÆÂвÁ¤òÀÁµá¤Ç¤­¤ë¤³¤È)¡¢¥½¡¼¥¹¡¦¥³¡¼¥É¤ò¼ÂºÝ¤Ë¼õ¤±¼è¤ë¤«´õ˾¤·¤µ¤¨¤¹¤ì¤ÐÆþ¼ê¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¤³¤È¡¢Æþ¼ê¤·¤¿¥½¥Õ¥È¥¦¥§¥¢¤òÊѹ¹¤·¤¿¤ê¿·¤·¤¤¥Õ¥ê¡¼¡¦¥×¥í¥°¥é¥à¤Î°ìÉô¤È¤·¤Æ»ÈÍѤǤ­¤ë¤³¤È¡¢°Ê¾å¤Î³ÆÆâÍƤò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­¤ë¤È¤¤¤¦¤³¤È¤ò¥æ¡¼¥¶¼«¿È¤¬ÃΤäƤ¤¤ë¤³¤È¤ò¼Â¸½¤Ç¤­¤ë¤è¤¦¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£');\r
-\r
-?>
\ No newline at end of file
index d7d9ec8..6666ecc 100755 (executable)
@@ -6190,7 +6190,7 @@ selector();
         * @todo document this\r
         */\r
        function action_pluginupdate() {\r
         * @todo document this\r
         */\r
        function action_pluginupdate() {\r
-               global $member, $manager;\r
+               global $member, $manager, $CONF;\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
@@ -6211,7 +6211,7 @@ selector();
                        }\r
                }\r
 \r
                        }\r
                }\r
 \r
-               redirect('?action=pluginlist');\r
+               redirect($CONF['AdminURL'] . '?action=pluginlist');\r
 //             $this->action_pluginlist();\r
        }\r
 \r
 //             $this->action_pluginlist();\r
        }\r
 \r
@@ -6241,14 +6241,15 @@ selector();
                        <input type="hidden" name="plugid" value="<?php echo $pid; ?>" />\r
                        <input type="submit" tabindex="10" value="<?php echo _DELETE_CONFIRM_BTN?>" />\r
                        </div></form>\r
                        <input type="hidden" name="plugid" value="<?php echo $pid; ?>" />\r
                        <input type="submit" tabindex="10" value="<?php echo _DELETE_CONFIRM_BTN?>" />\r
                        </div></form>\r
-               <?php           $this->pagefoot();\r
+               <?php\r
+               $this->pagefoot();\r
        }\r
 \r
        /**\r
         * @todo document this\r
         */\r
        function action_plugindeleteconfirm() {\r
        }\r
 \r
        /**\r
         * @todo document this\r
         */\r
        function action_plugindeleteconfirm() {\r
-               global $member, $manager;\r
+               global $member, $manager, $CONF;\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
@@ -6260,7 +6261,7 @@ selector();
                        $this->error($error);\r
                }\r
 \r
                        $this->error($error);\r
                }\r
 \r
-               redirect('?action=pluginlist');\r
+               redirect($CONF['AdminURL'] . '?action=pluginlist');\r
 //             $this->action_pluginlist();\r
        }\r
 \r
 //             $this->action_pluginlist();\r
        }\r
 \r
@@ -6342,7 +6343,7 @@ selector();
         * @todo document this\r
         */\r
        function action_pluginup() {\r
         * @todo document this\r
         */\r
        function action_pluginup() {\r
-               global $member, $manager;\r
+               global $member, $manager, $CONF;\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
@@ -6366,14 +6367,14 @@ selector();
 \r
                //$this->action_pluginlist();\r
                // To avoid showing ticket in the URL, redirect to pluginlist, instead.\r
 \r
                //$this->action_pluginlist();\r
                // To avoid showing ticket in the URL, redirect to pluginlist, instead.\r
-               redirect('?action=pluginlist');\r
+               redirect($CONF['AdminURL'] . '?action=pluginlist');\r
        }\r
 \r
        /**\r
         * @todo document this\r
         */\r
        function action_plugindown() {\r
        }\r
 \r
        /**\r
         * @todo document this\r
         */\r
        function action_plugindown() {\r
-               global $member, $manager;\r
+               global $member, $manager, $CONF;\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
 \r
                // check if allowed\r
                $member->isAdmin() or $this->disallow();\r
@@ -6399,7 +6400,7 @@ selector();
 \r
                //$this->action_pluginlist();\r
                // To avoid showing ticket in the URL, redirect to pluginlist, instead.\r
 \r
                //$this->action_pluginlist();\r
                // To avoid showing ticket in the URL, redirect to pluginlist, instead.\r
-               redirect('?action=pluginlist');\r
+               redirect($CONF['AdminURL'] . '?action=pluginlist');\r
        }\r
 \r
        /**\r
        }\r
 \r
        /**\r
index 301d06a..825f23c 100755 (executable)
  * @version $NucleusJP: skinie.php,v 1.9.2.1 2007/09/05 07:46:30 kimitake Exp $
  */
 
  * @version $NucleusJP: skinie.php,v 1.9.2.1 2007/09/05 07:46:30 kimitake Exp $
  */
 
-class SKINIMPORT {\r
-\r
-       // hardcoded value (see constructor). When 1, interesting info about the\r
-       // parsing process is sent to the output\r
-       var $debug;\r
-\r
-       // parser/file pointer\r
-       var $parser;\r
-       var $fp;\r
-\r
-       // which data has been read?\r
-       var $metaDataRead;\r
-       var $allRead;\r
-\r
-       // extracted data\r
-       var $skins;\r
-       var $templates;\r
-       var $info;\r
-\r
-       // to maintain track of where we are inside the XML file\r
-       var $inXml;\r
-       var $inData;\r
-       var $inMeta;\r
-       var $inSkin;\r
-       var $inTemplate;\r
-       var $currentName;\r
-       var $currentPartName;\r
-       var $cdata;\r
-\r
-\r
-\r
-       /**\r
-        * constructor initializes data structures\r
-        */\r
-       function SKINIMPORT() {\r
-               // disable magic_quotes_runtime if it's turned on\r
-               set_magic_quotes_runtime(0);\r
-\r
-               // debugging mode?\r
-               $this->debug = 0;\r
-\r
-               $this->reset();\r
-\r
-       }\r
-\r
-       function reset() {\r
-               if ($this->parser)\r
-                       xml_parser_free($this->parser);\r
-\r
-               // XML file pointer\r
-               $this->fp = 0;\r
-\r
-               // which data has been read?\r
-               $this->metaDataRead = 0;\r
-               $this->allRead = 0;\r
-\r
-               // to maintain track of where we are inside the XML file\r
-               $this->inXml = 0;\r
-               $this->inData = 0;\r
-               $this->inMeta = 0;\r
-               $this->inSkin = 0;\r
-               $this->inTemplate = 0;\r
-               $this->currentName = '';\r
-               $this->currentPartName = '';\r
-\r
-               // character data pile\r
-               $this->cdata = '';\r
-\r
-               // list of skinnames and templatenames (will be array of array)\r
-               $this->skins = array();\r
-               $this->templates = array();\r
-\r
-               // extra info included in the XML files (e.g. installation notes)\r
-               $this->info = '';\r
-\r
-               // init XML parser\r
-               $this->parser = xml_parser_create();\r
-               xml_set_object($this->parser, $this);\r
-               xml_set_element_handler($this->parser, 'startElement', 'endElement');\r
-               xml_set_character_data_handler($this->parser, 'characterData');\r
-               xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);\r
-\r
-       }\r
-\r
-       /**\r
-        * Reads an XML file into memory\r
-        *\r
-        * @param $filename\r
-        *              Which file to read\r
-        * @param $metaOnly\r
-        *              Set to 1 when only the metadata needs to be read (optional, default 0)\r
-        */\r
-       function readFile($filename, $metaOnly = 0) {\r
-               // open file\r
-               $this->fp = @fopen($filename, 'r');\r
-               if (!$this->fp) {\r
-                       return _SKINIE_ERROR_FAILEDOPEN_FILEURL;\r
-               }\r
-\r
-               // here we go!\r
-               $this->inXml = 1;\r
-\r
-               $tempbuffer = null;\r
-\r
-               while (!feof($this->fp)) {\r
-                       $tempbuffer .= fread($this->fp, 4096);\r
-               }\r
-               fclose($this->fp);\r
-               $tempcharset = mb_detect_encoding($tempbuffer);\r
-               if ($tempcharset != 'UTF-8') {\r
-                       $tempbuffer = mb_convert_encoding($tempbuffer, 'UTF-8', $tempcharset);\r
-               }\r
-\r
-/*\r
-       [2004-08-04] dekarma - Took this out since it messes up good XML if it has skins/templates\r
-                                                  with CDATA sections. need to investigate consequences.\r
-                                                  see bug [ 999914 ] Import fails (multiple skins in XML/one of them with CDATA)\r
-\r
-               // backwards compatibility with the non-wellformed skinbackup.xml files\r
-               // generated by v2/v3 (when CDATA sections were present in skins)\r
-               // split up those CDATA sections into multiple ones\r
-               $tempbuffer = preg_replace_callback(\r
-                       "/(<!\[CDATA\[[^]]*?<!\[CDATA\[[^]]*)((?:\]\].*?<!\[CDATA.*?)*)(\]\])(.*\]\])/ms",\r
-                       create_function(\r
-                               '$matches',\r
-                               'return $matches[1] . preg_replace("/(\]\])(.*?<!\[CDATA)/ms","]]]]><![CDATA[$2",$matches[2])."]]]]><![CDATA[".$matches[4];'\r
-                       ),\r
-                       $tempbuffer\r
-               );\r
-*/\r
-               $temp = tmpfile();\r
-               fwrite($temp, $tempbuffer);\r
-               rewind($temp);\r
-\r
-               while ( ($buffer = fread($temp, 4096) ) && (!$metaOnly || ($metaOnly && !$this->metaDataRead))) {\r
-                       $err = xml_parse( $this->parser, $buffer, feof($temp) );\r
-                       if (!$err && $this->debug) {\r
-                               echo _ERROR . ': ' . xml_error_string(xml_get_error_code($this->parser)) . '<br />';\r
-                       }\r
-               }\r
-\r
-               // all done\r
-               $this->inXml = 0;\r
-               fclose($temp);\r
-       }\r
-\r
-       /**\r
-        * Returns the list of skin names\r
-        */\r
-       function getSkinNames() {\r
-               return array_keys($this->skins);\r
-       }\r
-\r
-       /**\r
-        * Returns the list of template names\r
-        */\r
-       function getTemplateNames() {\r
-               return array_keys($this->templates);\r
-       }\r
-\r
-       /**\r
-        * Returns the extra information included in the XML file\r
-        */\r
-       function getInfo() {\r
-               return $this->info;\r
-       }\r
-\r
-       /**\r
-        * Writes the skins and templates to the database\r
-        *\r
-        * @param $allowOverwrite\r
-        *              set to 1 when allowed to overwrite existing skins with the same name\r
-        *              (default = 0)\r
-        */\r
-       function writeToDatabase($allowOverwrite = 0) {\r
-               $existingSkins = $this->checkSkinNameClashes();\r
-               $existingTemplates = $this->checkTemplateNameClashes();\r
-\r
-               // if not allowed to overwrite, check if any nameclashes exists\r
-               if (!$allowOverwrite) {\r
-                       if ((sizeof($existingSkins) > 0) || (sizeof($existingTemplates) > 0)) {\r
-                               return _SKINIE_NAME_CLASHES_DETECTED;\r
-                       }\r
-               }\r
-\r
-               foreach ($this->skins as $skinName => $data) {\r
-                       // 1. if exists: delete all part data, update desc data\r
-                       //    if not exists: create desc\r
-                       if (in_array($skinName, $existingSkins)) {\r
-                               $skinObj = SKIN::createFromName($skinName);\r
-\r
-                               // delete all parts of the skin\r
-                               $skinObj->deleteAllParts();\r
-\r
-                               // update general info\r
-                               $skinObj->updateGeneralInfo(\r
-                                       $skinName,\r
-                                       $data['description'],\r
-                                       $data['type'],\r
-                                       $data['includeMode'],\r
-                                       $data['includePrefix']\r
-                               );\r
-                       } else {\r
-                               $skinid = SKIN::createNew(\r
-                                       $skinName,\r
-                                       $data['description'],\r
-                                       $data['type'],\r
-                                       $data['includeMode'],\r
-                                       $data['includePrefix']\r
-                               );\r
-                               $skinObj = new SKIN($skinid);\r
-                       }\r
-\r
-                       // 2. add parts\r
-                       foreach ($data['parts'] as $partName => $partContent) {\r
-                               $skinObj->update($partName, $partContent);\r
-                       }\r
-               }\r
-\r
-               foreach ($this->templates as $templateName => $data) {\r
-                       // 1. if exists: delete all part data, update desc data\r
-                       //    if not exists: create desc\r
-                       if (in_array($templateName, $existingTemplates)) {\r
-                               $templateObj = TEMPLATE::createFromName($templateName);\r
-\r
-                               // delete all parts of the template\r
-                               $templateObj->deleteAllParts();\r
-\r
-                               // update general info\r
-                               $templateObj->updateGeneralInfo($templateName, $data['description']);\r
-                       } else {\r
-                               $templateid = TEMPLATE::createNew($templateName, $data['description']);\r
-                               $templateObj = new TEMPLATE($templateid);\r
-                       }\r
-\r
-                       // 2. add parts\r
-                       foreach ($data['parts'] as $partName => $partContent) {\r
-                               $templateObj->update($partName, $partContent);\r
-                       }\r
-               }\r
-\r
-\r
-       }\r
-\r
-       /**\r
-         * returns an array of all the skin nameclashes (empty array when no name clashes)\r
-         */\r
-       function checkSkinNameClashes() {\r
-               $clashes = array();\r
-\r
-               foreach ($this->skins as $skinName => $data) {\r
-                       if (SKIN::exists($skinName)) {\r
-                               array_push($clashes, $skinName);\r
-                       }\r
-               }\r
-\r
-               return $clashes;\r
-       }\r
-\r
-       /**\r
-         * returns an array of all the template nameclashes\r
-         * (empty array when no name clashes)\r
-         */\r
-       function checkTemplateNameClashes() {\r
-               $clashes = array();\r
-\r
-               foreach ($this->templates as $templateName => $data) {\r
-                       if (TEMPLATE::exists($templateName)) {\r
-                               array_push($clashes, $templateName);\r
-                       }\r
-               }\r
-\r
-               return $clashes;\r
-       }\r
-\r
-       /**\r
-        * Called by XML parser for each new start element encountered\r
-        */\r
-       function startElement($parser, $name, $attrs) {\r
-               foreach($attrs as $key=>$value) {\r
-                       $attrs[$key] = htmlspecialchars($value, ENT_QUOTES);\r
-               }\r
-\r
-               if ($this->debug) {\r
-                       echo 'START: ' . htmlspecialchars($name, ENT_QUOTES) . '<br />';\r
-               }\r
-\r
-               switch ($name) {\r
-                       case 'nucleusskin':\r
-                               $this->inData = 1;\r
-                               break;\r
-                       case 'meta':\r
-                               $this->inMeta = 1;\r
-                               break;\r
-                       case 'info':\r
-                               // no action needed\r
-                               break;\r
-                       case 'skin':\r
-                               if (!$this->inMeta) {\r
-                                       $this->inSkin = 1;\r
-                                       $this->currentName = $attrs['name'];\r
-                                       $this->skins[$this->currentName]['type'] = $attrs['type'];\r
-                                       $this->skins[$this->currentName]['includeMode'] = $attrs['includeMode'];\r
-                                       $this->skins[$this->currentName]['includePrefix'] = $attrs['includePrefix'];\r
-                                       $this->skins[$this->currentName]['parts'] = array();\r
-                               } else {\r
-                                       $this->skins[$attrs['name']] = array();\r
-                                       $this->skins[$attrs['name']]['parts'] = array();\r
-                               }\r
-                               break;\r
-                       case 'template':\r
-                               if (!$this->inMeta) {\r
-                                       $this->inTemplate = 1;\r
-                                       $this->currentName = $attrs['name'];\r
-                                       $this->templates[$this->currentName]['parts'] = array();\r
-                               } else {\r
-                                       $this->templates[$attrs['name']] = array();\r
-                                       $this->templates[$attrs['name']]['parts'] = array();\r
-                               }\r
-                               break;\r
-                       case 'description':\r
-                               // no action needed\r
-                               break;\r
-                       case 'part':\r
-                               $this->currentPartName = $attrs['name'];\r
-                               break;\r
-                       default:\r
-                               echo _SKINIE_SEELEMENT_UNEXPECTEDTAG . htmlspecialchars($name, ENT_QUOTES) . '<br />';\r
-                               break;\r
-               }\r
-\r
-               // character data never contains other tags\r
-               $this->clearCharacterData();\r
-\r
-       }\r
-\r
-       /**\r
-         * Called by the XML parser for each closing tag encountered\r
-         */\r
-       function endElement($parser, $name) {\r
-               if ($this->debug) {\r
-                       echo 'END: ' . htmlspecialchars($name, ENT_QUOTES) . '<br />';\r
-               }\r
-\r
-               switch ($name) {\r
-                       case 'nucleusskin':\r
-                               $this->inData = 0;\r
-                               $this->allRead = 1;\r
-                               break;\r
-                       case 'meta':\r
-                               $this->inMeta = 0;\r
-                               $this->metaDataRead = 1;\r
-                               break;\r
-                       case 'info':\r
-                               $this->info = $this->getCharacterData();\r
-                       case 'skin':\r
-                               if (!$this->inMeta) {\r
-                                       $this->inSkin = 0;\r
-                               }\r
-                               break;\r
-                       case 'template':\r
-                               if (!$this->inMeta) {\r
-                                       $this->inTemplate = 0;\r
-                               }\r
-                               break;\r
-                       case 'description':\r
-                               if ($this->inSkin) {\r
-                                       $this->skins[$this->currentName]['description'] = $this->getCharacterData();\r
-                               } else {\r
-                                       $this->templates[$this->currentName]['description'] = $this->getCharacterData();\r
-                               }\r
-                               break;\r
-                       case 'part':\r
-                               if ($this->inSkin) {\r
-                                       $this->skins[$this->currentName]['parts'][$this->currentPartName] = $this->getCharacterData();\r
-                               } else {\r
-                                       $this->templates[$this->currentName]['parts'][$this->currentPartName] = $this->getCharacterData();\r
-                               }\r
-                               break;\r
-                       default:\r
-                               echo _SKINIE_SEELEMENT_UNEXPECTEDTAG . htmlspecialchars($name, ENT_QUOTES) . '<br />';\r
-                               break;\r
-               }\r
-               $this->clearCharacterData();\r
-\r
-       }\r
-\r
-       /**\r
-        * Called by XML parser for data inside elements\r
-        */\r
-       function characterData ($parser, $data) {\r
-               if ($this->debug) {\r
-                       echo 'NEW DATA: ' . htmlspecialchars($data, ENT_QUOTES) . '<br />';\r
-               }\r
-               $this->cdata .= $data;\r
-       }\r
-\r
-       /**\r
-        * Returns the data collected so far\r
-        */\r
-       function getCharacterData() {\r
-               if (_CHARSET != 'UTF-8') {\r
-                       return mb_convert_encoding($this->cdata, _CHARSET, 'UTF-8');\r
-               } else {\r
-                       return $this->cdata;\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Clears the data buffer\r
-        */\r
-       function clearCharacterData() {\r
-               $this->cdata = '';\r
-       }\r
-\r
-       /**\r
-        * Static method that looks for importable XML files in subdirs of the given dir\r
-        */\r
-       function searchForCandidates($dir) {\r
-               $candidates = array();\r
-\r
-               $dirhandle = opendir($dir);\r
-               while ($filename = readdir($dirhandle)) {\r
-                       if (@is_dir($dir . $filename) && ($filename != '.') && ($filename != '..')) {\r
-                               $xml_file = $dir . $filename . '/skinbackup.xml';\r
-                               if (file_exists($xml_file) && is_readable($xml_file)) {\r
-                                       $candidates[$filename] = $filename; //$xml_file;\r
-                               }\r
-\r
-                               // backwards compatibility\r
-                               $xml_file = $dir . $filename . '/skindata.xml';\r
-                               if (file_exists($xml_file) && is_readable($xml_file)) {\r
-                                       $candidates[$filename] = $filename; //$xml_file;\r
-                               }\r
-                       }\r
-               }\r
-               closedir($dirhandle);\r
-\r
-               return $candidates;\r
-\r
-       }\r
-\r
-\r
-}\r
-\r
-\r
-class SKINEXPORT {\r
-\r
-       var $templates;\r
-       var $skins;\r
-       var $info;\r
-\r
-       /**\r
-        * Constructor initializes data structures\r
-        */\r
-       function SKINEXPORT() {\r
-               // list of templateIDs to export\r
-               $this->templates = array();\r
-\r
-               // list of skinIDs to export\r
-               $this->skins = array();\r
-\r
-               // extra info to be in XML file\r
-               $this->info = '';\r
-       }\r
-\r
-       /**\r
-        * Adds a template to be exported\r
-        *\r
-        * @param id\r
-        *              template ID\r
-        * @result false when no such ID exists\r
-        */\r
-       function addTemplate($id) {\r
-               if (!TEMPLATE::existsID($id)) {\r
-                       return 0;\r
-               }\r
-\r
-\r
-               $this->templates[$id] = TEMPLATE::getNameFromId($id);\r
-\r
-               return 1;\r
-       }\r
-\r
-       /**\r
-        * Adds a skin to be exported\r
-        *\r
-        * @param id\r
-        *              skin ID\r
-        * @result false when no such ID exists\r
-        */\r
-       function addSkin($id) {\r
-               if (!SKIN::existsID($id)) {\r
-                       return 0;\r
-               }\r
-\r
-               $this->skins[$id] = SKIN::getNameFromId($id);\r
-\r
-               return 1;\r
-       }\r
-\r
-       /**\r
-        * Sets the extra info to be included in the exported file\r
-        */\r
-       function setInfo($info) {\r
-               $this->info = $info;\r
-       }\r
-\r
-\r
-       /**\r
-        * Outputs the XML contents of the export file\r
-        *\r
-        * @param $setHeaders\r
-        *              set to 0 if you don't want to send out headers\r
-        *              (optional, default 1)\r
-        */\r
-       function export($setHeaders = 1) {\r
-               if ($setHeaders) {\r
-                       // make sure the mimetype is correct, and that the data does not show up\r
-                       // in the browser, but gets saved into and XML file (popup download window)\r
-                       header('Content-Type: text/xml');\r
-                       header('Content-Disposition: attachment; filename="skinbackup.xml"');\r
-                       header('Expires: 0');\r
-                       header('Pragma: no-cache');\r
-               }\r
-\r
-               echo "<nucleusskin>\n";\r
-\r
-               // meta\r
-               echo "\t<meta>\n";\r
-                       // skins\r
-                       foreach ($this->skins as $skinId => $skinName) {\r
-                               $skinName = htmlspecialchars($skinName, ENT_QUOTES);\r
-                               echo "\t\t" . '<skin name="' . $skinName . '" />' . "\n";\r
-                       }\r
-                       // templates\r
-                       foreach ($this->templates as $templateId => $templateName) {\r
-                               $templateName = htmlspecialchars($templateName, ENT_QUOTES);\r
-                               echo "\t\t" . '<template name="' . $templateName . '" />' . "\n";\r
-                       }\r
-                       // extra info\r
-                       if ($this->info)\r
-                               echo "\t\t<info><![CDATA[" . $this->info . "]]></info>\n";\r
-               echo "\t</meta>\n\n\n";\r
-\r
-               // contents skins\r
-               foreach ($this->skins as $skinId => $skinName) {\r
-                       $skinId   = intval($skinId);\r
-                       $skinObj  = new SKIN($skinId);\r
-                       $skinName = htmlspecialchars($skinName, ENT_QUOTES);\r
-                       $contentT = htmlspecialchars($skinObj->getContentType(), ENT_QUOTES);\r
-                       $incMode  = htmlspecialchars($skinObj->getIncludeMode(), ENT_QUOTES);\r
-                       $incPrefx = htmlspecialchars($skinObj->getIncludePrefix(), ENT_QUOTES);\r
-                       $skinDesc = htmlspecialchars($skinObj->getDescription(), ENT_QUOTES);\r
-\r
-                       echo "\t" . '<skin name="' . $skinName . '" type="' . $contentT . '" includeMode="' . $incMode . '" includePrefix="' . $incPrefx . '">' . "\n";\r
-\r
-                       echo "\t\t" . '<description>' . $skinDesc . '</description>' . "\n";\r
-\r
-                       $que = 'SELECT'\r
-                                . '    stype,'\r
-                                . '    scontent '\r
-                                . 'FROM '\r
-                                .      sql_table('skin')\r
-                                . ' WHERE'\r
-                                . '    sdesc = ' . $skinId;\r
-                       $res = sql_query($que);\r
-                       while ($partObj = mysql_fetch_object($res)) {\r
-                               $type  = htmlspecialchars($partObj->stype, ENT_QUOTES);\r
-                               $cdata = $this->escapeCDATA($partObj->scontent);\r
-                               echo "\t\t" . '<part name="' . $type . '">';\r
-                               echo '<![CDATA[' . $cdata . ']]>';\r
-                               echo "</part>\n\n";\r
-                       }\r
-\r
-                       echo "\t</skin>\n\n\n";\r
-               }\r
-\r
-               // contents templates\r
-               foreach ($this->templates as $templateId => $templateName) {\r
-                       $templateId   = intval($templateId);\r
-                       $templateName = htmlspecialchars($templateName, ENT_QUOTES);\r
-                       $templateDesc = htmlspecialchars(TEMPLATE::getDesc($templateId), ENT_QUOTES);\r
-\r
-                       echo "\t" . '<template name="' . $templateName . '">' . "\n";\r
-\r
-                       echo "\t\t" . '<description>' . $templateDesc . "</description>\n";\r
-\r
-                       $que =  'SELECT'\r
-                                .     ' tpartname,'\r
-                                .     ' tcontent'\r
-                                . ' FROM '\r
-                                .     sql_table('template')\r
-                                . ' WHERE'\r
-                                .     ' tdesc = ' . $templateId;\r
-                       $res = sql_query($que);\r
-                       while ($partObj = mysql_fetch_object($res)) {\r
-                               $type  = htmlspecialchars($partObj->tpartname, ENT_QUOTES);\r
-                               $cdata = $this->escapeCDATA($partObj->tcontent);\r
-                               echo "\t\t" . '<part name="' . $type . '">';\r
-                               echo '<![CDATA[' .  $cdata . ']]>';\r
-                               echo '</part>' . "\n\n";\r
-                       }\r
-\r
-                       echo "\t</template>\n\n\n";\r
-               }\r
-\r
-               echo '</nucleusskin>';\r
-       }\r
-\r
-       /**\r
-        * Escapes CDATA content so it can be included in another CDATA section\r
-        */\r
-       function escapeCDATA($cdata)\r
-       {\r
-               return preg_replace('/]]>/', ']]]]><![CDATA[>', $cdata);\r
-\r
-       }\r
-}\r
-\r
+class SKINIMPORT {
+
+       // hardcoded value (see constructor). When 1, interesting info about the
+       // parsing process is sent to the output
+       var $debug;
+
+       // parser/file pointer
+       var $parser;
+       var $fp;
+
+       // which data has been read?
+       var $metaDataRead;
+       var $allRead;
+
+       // extracted data
+       var $skins;
+       var $templates;
+       var $info;
+
+       // to maintain track of where we are inside the XML file
+       var $inXml;
+       var $inData;
+       var $inMeta;
+       var $inSkin;
+       var $inTemplate;
+       var $currentName;
+       var $currentPartName;
+       var $cdata;
+
+
+
+       /**
+        * constructor initializes data structures
+        */
+       function SKINIMPORT() {
+               // disable magic_quotes_runtime if it's turned on
+               set_magic_quotes_runtime(0);
+
+               // debugging mode?
+               $this->debug = 0;
+
+               $this->reset();
+
+       }
+
+       function reset() {
+               if ($this->parser)
+                       xml_parser_free($this->parser);
+
+               // XML file pointer
+               $this->fp = 0;
+
+               // which data has been read?
+               $this->metaDataRead = 0;
+               $this->allRead = 0;
+
+               // to maintain track of where we are inside the XML file
+               $this->inXml = 0;
+               $this->inData = 0;
+               $this->inMeta = 0;
+               $this->inSkin = 0;
+               $this->inTemplate = 0;
+               $this->currentName = '';
+               $this->currentPartName = '';
+
+               // character data pile
+               $this->cdata = '';
+
+               // list of skinnames and templatenames (will be array of array)
+               $this->skins = array();
+               $this->templates = array();
+
+               // extra info included in the XML files (e.g. installation notes)
+               $this->info = '';
+
+               // init XML parser
+               $this->parser = xml_parser_create();
+               xml_set_object($this->parser, $this);
+               xml_set_element_handler($this->parser, 'startElement', 'endElement');
+               xml_set_character_data_handler($this->parser, 'characterData');
+               xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
+
+       }
+
+       /**
+        * Reads an XML file into memory
+        *
+        * @param $filename
+        *              Which file to read
+        * @param $metaOnly
+        *              Set to 1 when only the metadata needs to be read (optional, default 0)
+        */
+       function readFile($filename, $metaOnly = 0) {
+               // open file
+               $this->fp = @fopen($filename, 'r');
+               if (!$this->fp) {
+                       return _SKINIE_ERROR_FAILEDOPEN_FILEURL;
+               }
+
+               // here we go!
+               $this->inXml = 1;
+
+               $tempbuffer = null;
+
+               while (!feof($this->fp)) {
+                       $tempbuffer .= fread($this->fp, 4096);
+               }
+               fclose($this->fp);
+
+/*
+       [2004-08-04] dekarma - Took this out since it messes up good XML if it has skins/templates
+                                                  with CDATA sections. need to investigate consequences.
+                                                  see bug [ 999914 ] Import fails (multiple skins in XML/one of them with CDATA)
+
+               // backwards compatibility with the non-wellformed skinbackup.xml files
+               // generated by v2/v3 (when CDATA sections were present in skins)
+               // split up those CDATA sections into multiple ones
+               $tempbuffer = preg_replace_callback(
+                       "/(<!\[CDATA\[[^]]*?<!\[CDATA\[[^]]*)((?:\]\].*?<!\[CDATA.*?)*)(\]\])(.*\]\])/ms",
+                       create_function(
+                               '$matches',
+                               'return $matches[1] . preg_replace("/(\]\])(.*?<!\[CDATA)/ms","]]]]><![CDATA[$2",$matches[2])."]]]]><![CDATA[".$matches[4];'
+                       ),
+                       $tempbuffer
+               );
+*/
+               $temp = tmpfile();
+//             fwrite($temp, $tempbuffer);
+               if (!function_exists('mb_convert_encoding')) {
+                       fwrite($temp, $tempbuffer);
+               } else {
+                       if (strtoupper(_CHARSET) == 'ISO-8859-1') {
+                               fwrite($temp, $tempbuffer);
+                       } else {
+                               mb_detect_order("ASCII, JIS, SJIS, UTF-8, EUC-JP, ISO-8859-1");
+                               $temp_encode = mb_detect_encoding($tempbuffer);
+                               fwrite($temp, mb_convert_encoding($tempbuffer, 'UTF-8', $temp_encode));
+                       }
+               }
+               rewind($temp);
+
+               while ( ($buffer = fread($temp, 4096) ) && (!$metaOnly || ($metaOnly && !$this->metaDataRead))) {
+                       $err = xml_parse( $this->parser, $buffer, feof($temp) );
+                       if (!$err && $this->debug) {
+                               echo _ERROR . ': ' . xml_error_string(xml_get_error_code($this->parser)) . '<br />';
+                       }
+               }
+
+               // all done
+               $this->inXml = 0;
+               fclose($temp);
+       }
+
+       /**
+        * Returns the list of skin names
+        */
+       function getSkinNames() {
+               return array_keys($this->skins);
+       }
+
+       /**
+        * Returns the list of template names
+        */
+       function getTemplateNames() {
+               return array_keys($this->templates);
+       }
+
+       /**
+        * Returns the extra information included in the XML file
+        */
+       function getInfo() {
+               return $this->info;
+       }
+
+       /**
+        * Writes the skins and templates to the database
+        *
+        * @param $allowOverwrite
+        *              set to 1 when allowed to overwrite existing skins with the same name
+        *              (default = 0)
+        */
+       function writeToDatabase($allowOverwrite = 0) {
+               $existingSkins = $this->checkSkinNameClashes();
+               $existingTemplates = $this->checkTemplateNameClashes();
+
+               // if not allowed to overwrite, check if any nameclashes exists
+               if (!$allowOverwrite) {
+                       if ((sizeof($existingSkins) > 0) || (sizeof($existingTemplates) > 0)) {
+                               return _SKINIE_NAME_CLASHES_DETECTED;
+                       }
+               }
+
+               foreach ($this->skins as $skinName => $data) {
+                       // 1. if exists: delete all part data, update desc data
+                       //    if not exists: create desc
+                       if (in_array($skinName, $existingSkins)) {
+                               $skinObj = SKIN::createFromName($skinName);
+
+                               // delete all parts of the skin
+                               $skinObj->deleteAllParts();
+
+                               // update general info
+                               $skinObj->updateGeneralInfo(
+                                       $skinName,
+                                       $data['description'],
+                                       $data['type'],
+                                       $data['includeMode'],
+                                       $data['includePrefix']
+                               );
+                       } else {
+                               $skinid = SKIN::createNew(
+                                       $skinName,
+                                       $data['description'],
+                                       $data['type'],
+                                       $data['includeMode'],
+                                       $data['includePrefix']
+                               );
+                               $skinObj = new SKIN($skinid);
+                       }
+
+                       // 2. add parts
+                       foreach ($data['parts'] as $partName => $partContent) {
+                               $skinObj->update($partName, $partContent);
+                       }
+               }
+
+               foreach ($this->templates as $templateName => $data) {
+                       // 1. if exists: delete all part data, update desc data
+                       //    if not exists: create desc
+                       if (in_array($templateName, $existingTemplates)) {
+                               $templateObj = TEMPLATE::createFromName($templateName);
+
+                               // delete all parts of the template
+                               $templateObj->deleteAllParts();
+
+                               // update general info
+                               $templateObj->updateGeneralInfo($templateName, $data['description']);
+                       } else {
+                               $templateid = TEMPLATE::createNew($templateName, $data['description']);
+                               $templateObj = new TEMPLATE($templateid);
+                       }
+
+                       // 2. add parts
+                       foreach ($data['parts'] as $partName => $partContent) {
+                               $templateObj->update($partName, $partContent);
+                       }
+               }
+
+
+       }
+
+       /**
+         * returns an array of all the skin nameclashes (empty array when no name clashes)
+         */
+       function checkSkinNameClashes() {
+               $clashes = array();
+
+               foreach ($this->skins as $skinName => $data) {
+                       if (SKIN::exists($skinName)) {
+                               array_push($clashes, $skinName);
+                       }
+               }
+
+               return $clashes;
+       }
+
+       /**
+         * returns an array of all the template nameclashes
+         * (empty array when no name clashes)
+         */
+       function checkTemplateNameClashes() {
+               $clashes = array();
+
+               foreach ($this->templates as $templateName => $data) {
+                       if (TEMPLATE::exists($templateName)) {
+                               array_push($clashes, $templateName);
+                       }
+               }
+
+               return $clashes;
+       }
+
+       /**
+        * Called by XML parser for each new start element encountered
+        */
+       function startElement($parser, $name, $attrs) {
+               foreach($attrs as $key=>$value) {
+                       $attrs[$key] = htmlspecialchars($value, ENT_QUOTES);
+               }
+
+               if ($this->debug) {
+                       echo 'START: ' . htmlspecialchars($name, ENT_QUOTES) . '<br />';
+               }
+
+               switch ($name) {
+                       case 'nucleusskin':
+                               $this->inData = 1;
+                               break;
+                       case 'meta':
+                               $this->inMeta = 1;
+                               break;
+                       case 'info':
+                               // no action needed
+                               break;
+                       case 'skin':
+                               if (!$this->inMeta) {
+                                       $this->inSkin = 1;
+                                       $this->currentName = $attrs['name'];
+                                       $this->skins[$this->currentName]['type'] = $attrs['type'];
+                                       $this->skins[$this->currentName]['includeMode'] = $attrs['includeMode'];
+                                       $this->skins[$this->currentName]['includePrefix'] = $attrs['includePrefix'];
+                                       $this->skins[$this->currentName]['parts'] = array();
+                               } else {
+                                       $this->skins[$attrs['name']] = array();
+                                       $this->skins[$attrs['name']]['parts'] = array();
+                               }
+                               break;
+                       case 'template':
+                               if (!$this->inMeta) {
+                                       $this->inTemplate = 1;
+                                       $this->currentName = $attrs['name'];
+                                       $this->templates[$this->currentName]['parts'] = array();
+                               } else {
+                                       $this->templates[$attrs['name']] = array();
+                                       $this->templates[$attrs['name']]['parts'] = array();
+                               }
+                               break;
+                       case 'description':
+                               // no action needed
+                               break;
+                       case 'part':
+                               $this->currentPartName = $attrs['name'];
+                               break;
+                       default:
+                               echo _SKINIE_SEELEMENT_UNEXPECTEDTAG . htmlspecialchars($name, ENT_QUOTES) . '<br />';
+                               break;
+               }
+
+               // character data never contains other tags
+               $this->clearCharacterData();
+
+       }
+
+       /**
+         * Called by the XML parser for each closing tag encountered
+         */
+       function endElement($parser, $name) {
+               if ($this->debug) {
+                       echo 'END: ' . htmlspecialchars($name, ENT_QUOTES) . '<br />';
+               }
+
+               switch ($name) {
+                       case 'nucleusskin':
+                               $this->inData = 0;
+                               $this->allRead = 1;
+                               break;
+                       case 'meta':
+                               $this->inMeta = 0;
+                               $this->metaDataRead = 1;
+                               break;
+                       case 'info':
+                               $this->info = $this->getCharacterData();
+                       case 'skin':
+                               if (!$this->inMeta) {
+                                       $this->inSkin = 0;
+                               }
+                               break;
+                       case 'template':
+                               if (!$this->inMeta) {
+                                       $this->inTemplate = 0;
+                               }
+                               break;
+                       case 'description':
+                               if ($this->inSkin) {
+                                       $this->skins[$this->currentName]['description'] = $this->getCharacterData();
+                               } else {
+                                       $this->templates[$this->currentName]['description'] = $this->getCharacterData();
+                               }
+                               break;
+                       case 'part':
+                               if ($this->inSkin) {
+                                       $this->skins[$this->currentName]['parts'][$this->currentPartName] = $this->getCharacterData();
+                               } else {
+                                       $this->templates[$this->currentName]['parts'][$this->currentPartName] = $this->getCharacterData();
+                               }
+                               break;
+                       default:
+                               echo _SKINIE_SEELEMENT_UNEXPECTEDTAG . htmlspecialchars($name, ENT_QUOTES) . '<br />';
+                               break;
+               }
+               $this->clearCharacterData();
+
+       }
+
+       /**
+        * Called by XML parser for data inside elements
+        */
+       function characterData ($parser, $data) {
+               if ($this->debug) {
+                       echo 'NEW DATA: ' . htmlspecialchars($data, ENT_QUOTES) . '<br />';
+               }
+               $this->cdata .= $data;
+       }
+
+       /**
+        * Returns the data collected so far
+        */
+       function getCharacterData() {
+//             echo $this->cdata;
+               if ( (strtoupper(_CHARSET) == 'UTF-8')
+                       or (strtoupper(_CHARSET) == 'ISO-8859-1')
+                       or (!function_exists('mb_convert_encoding')) ) {
+                       return $this->cdata;
+               } else {
+                       return mb_convert_encoding($this->cdata, _CHARSET ,'UTF-8');
+               }
+       }
+
+       /**
+        * Clears the data buffer
+        */
+       function clearCharacterData() {
+               $this->cdata = '';
+       }
+
+       /**
+        * Static method that looks for importable XML files in subdirs of the given dir
+        */
+       function searchForCandidates($dir) {
+               $candidates = array();
+
+               $dirhandle = opendir($dir);
+               while ($filename = readdir($dirhandle)) {
+                       if (@is_dir($dir . $filename) && ($filename != '.') && ($filename != '..')) {
+                               $xml_file = $dir . $filename . '/skinbackup.xml';
+                               if (file_exists($xml_file) && is_readable($xml_file)) {
+                                       $candidates[$filename] = $filename; //$xml_file;
+                               }
+
+                               // backwards compatibility
+                               $xml_file = $dir . $filename . '/skindata.xml';
+                               if (file_exists($xml_file) && is_readable($xml_file)) {
+                                       $candidates[$filename] = $filename; //$xml_file;
+                               }
+                       }
+               }
+               closedir($dirhandle);
+
+               return $candidates;
+
+       }
+
+
+}
+
+
+class SKINEXPORT {
+
+       var $templates;
+       var $skins;
+       var $info;
+
+       /**
+        * Constructor initializes data structures
+        */
+       function SKINEXPORT() {
+               // list of templateIDs to export
+               $this->templates = array();
+
+               // list of skinIDs to export
+               $this->skins = array();
+
+               // extra info to be in XML file
+               $this->info = '';
+       }
+
+       /**
+        * Adds a template to be exported
+        *
+        * @param id
+        *              template ID
+        * @result false when no such ID exists
+        */
+       function addTemplate($id) {
+               if (!TEMPLATE::existsID($id)) {
+                       return 0;
+               }
+
+
+               $this->templates[$id] = TEMPLATE::getNameFromId($id);
+
+               return 1;
+       }
+
+       /**
+        * Adds a skin to be exported
+        *
+        * @param id
+        *              skin ID
+        * @result false when no such ID exists
+        */
+       function addSkin($id) {
+               if (!SKIN::existsID($id)) {
+                       return 0;
+               }
+
+               $this->skins[$id] = SKIN::getNameFromId($id);
+
+               return 1;
+       }
+
+       /**
+        * Sets the extra info to be included in the exported file
+        */
+       function setInfo($info) {
+               $this->info = $info;
+       }
+
+
+       /**
+        * Outputs the XML contents of the export file
+        *
+        * @param $setHeaders
+        *              set to 0 if you don't want to send out headers
+        *              (optional, default 1)
+        */
+       function export($setHeaders = 1) {
+               if ($setHeaders) {
+                       // make sure the mimetype is correct, and that the data does not show up
+                       // in the browser, but gets saved into and XML file (popup download window)
+                       header('Content-Type: text/xml');
+                       header('Content-Disposition: attachment; filename="skinbackup.xml"');
+                       header('Expires: 0');
+                       header('Pragma: no-cache');
+               }
+
+               echo "<nucleusskin>\n";
+
+               // meta
+               echo "\t<meta>\n";
+                       // skins
+                       foreach ($this->skins as $skinId => $skinName) {
+                               $skinName = htmlspecialchars($skinName, ENT_QUOTES);
+                               if (_CHARSET != 'UTF-8') {
+                                       $skinName = mb_convert_encoding($skinName, 'UTF-8', _CHARSET);
+                               }
+                               echo "\t\t" . '<skin name="' . $skinName . '" />' . "\n";
+                       }
+                       // templates
+                       foreach ($this->templates as $templateId => $templateName) {
+                               $templateName = htmlspecialchars($templateName, ENT_QUOTES);
+                               if (_CHARSET != 'UTF-8') {
+                                       $templateName = mb_convert_encoding($templateName, 'UTF-8', _CHARSET);
+                               }
+                               echo "\t\t" . '<template name="' . $templateName . '" />' . "\n";
+                       }
+                       // extra info
+                       if ($this->info) {
+                               if (_CHARSET != 'UTF-8') {
+                                       $skin_info = mb_convert_encoding($this->info, 'UTF-8', _CHARSET);
+                               } else {
+                                       $skin_info = $this->info;
+                               }
+                               echo "\t\t<info><![CDATA[" . $skin_info . "]]></info>\n";
+                       }
+               echo "\t</meta>\n\n\n";
+
+               // contents skins
+               foreach ($this->skins as $skinId => $skinName) {
+                       $skinId   = intval($skinId);
+                       $skinObj  = new SKIN($skinId);
+                       $skinName = htmlspecialchars($skinName, ENT_QUOTES);
+                       $contentT = htmlspecialchars($skinObj->getContentType(), ENT_QUOTES);
+                       $incMode  = htmlspecialchars($skinObj->getIncludeMode(), ENT_QUOTES);
+                       $incPrefx = htmlspecialchars($skinObj->getIncludePrefix(), ENT_QUOTES);
+                       $skinDesc = htmlspecialchars($skinObj->getDescription(), ENT_QUOTES);
+                       if (_CHARSET != 'UTF-8') {
+                               $skinName = mb_convert_encoding($skinName, 'UTF-8', _CHARSET);
+                               $contentT = mb_convert_encoding($contentT, 'UTF-8', _CHARSET);
+                               $incMode  = mb_convert_encoding($incMode,  'UTF-8', _CHARSET);
+                               $incPrefx = mb_convert_encoding($incPrefx, 'UTF-8', _CHARSET);
+                               $skinDesc = mb_convert_encoding($skinDesc, 'UTF-8', _CHARSET);
+                       }
+
+                       echo "\t" . '<skin name="' . $skinName . '" type="' . $contentT . '" includeMode="' . $incMode . '" includePrefix="' . $incPrefx . '">' . "\n";
+
+                       echo "\t\t" . '<description>' . $skinDesc . '</description>' . "\n";
+
+                       $que = 'SELECT'
+                                . '    stype,'
+                                . '    scontent '
+                                . 'FROM '
+                                .      sql_table('skin')
+                                . ' WHERE'
+                                . '    sdesc = ' . $skinId;
+                       $res = sql_query($que);
+                       while ($partObj = mysql_fetch_object($res)) {
+                               $type  = htmlspecialchars($partObj->stype, ENT_QUOTES);
+                               $cdata = $this->escapeCDATA($partObj->scontent);
+                               if (_CHARSET != 'UTF-8') {
+                                       $type  = mb_convert_encoding($type,  'UTF-8', _CHARSET);
+                                       $cdata = mb_convert_encoding($cdata, 'UTF-8', _CHARSET);
+                               }
+                               echo "\t\t" . '<part name="' . $type . '">';
+                               echo '<![CDATA[' . $cdata . ']]>';
+                               echo "</part>\n\n";
+                       }
+
+                       echo "\t</skin>\n\n\n";
+               }
+
+               // contents templates
+               foreach ($this->templates as $templateId => $templateName) {
+                       $templateId   = intval($templateId);
+                       $templateName = htmlspecialchars($templateName, ENT_QUOTES);
+                       $templateDesc = htmlspecialchars(TEMPLATE::getDesc($templateId), ENT_QUOTES);
+                       if (_CHARSET != 'UTF-8') {
+                               $templateName = mb_convert_encoding($templateName, 'UTF-8', _CHARSET);
+                               $templateDesc = mb_convert_encoding($templateDesc, 'UTF-8', _CHARSET);
+                       }
+
+                       echo "\t" . '<template name="' . $templateName . '">' . "\n";
+
+                       echo "\t\t" . '<description>' . $templateDesc . "</description>\n";
+
+                       $que =  'SELECT'
+                                .     ' tpartname,'
+                                .     ' tcontent'
+                                . ' FROM '
+                                .     sql_table('template')
+                                . ' WHERE'
+                                .     ' tdesc = ' . $templateId;
+                       $res = sql_query($que);
+                       while ($partObj = mysql_fetch_object($res)) {
+                               $type  = htmlspecialchars($partObj->tpartname, ENT_QUOTES);
+                               $cdata = $this->escapeCDATA($partObj->tcontent);
+                               if (_CHARSET != 'UTF-8') {
+                                       $type  = mb_convert_encoding($type,  'UTF-8', _CHARSET);
+                                       $cdata = mb_convert_encoding($cdata, 'UTF-8', _CHARSET);
+                               }
+                               echo "\t\t" . '<part name="' . $type . '">';
+                               echo '<![CDATA[' .  $cdata . ']]>';
+                               echo '</part>' . "\n\n";
+                       }
+
+                       echo "\t</template>\n\n\n";
+               }
+
+               echo '</nucleusskin>';
+       }
+
+       /**
+        * Escapes CDATA content so it can be included in another CDATA section
+        */
+       function escapeCDATA($cdata)
+       {
+               return preg_replace('/]]>/', ']]]]><![CDATA[>', $cdata);
+
+       }
+}
+
 ?>
\ No newline at end of file
 ?>
\ No newline at end of file
index 45b7397..5a991c4 100644 (file)
@@ -10,5 +10,6 @@ if (!function_exists('getmtime'))
 \r
   global $StartTime, $SQLCount;\r
   $loadtime = getmtime() - $StartTime;\r
 \r
   global $StartTime, $SQLCount;\r
   $loadtime = getmtime() - $StartTime;\r
-  printf("%.3f 秒/%d クエリ", $loadtime, $SQLCount);\r
+  $var = mb_convert_encoding("%.3f 秒/%d クエリ", _CHARSET, 'UTF-8');\r
+  printf($var, $loadtime, $SQLCount);\r
 ?>\r
 ?>\r
index d44b219..32a39c2 100644 (file)
@@ -8,21 +8,33 @@
                <template name="default/commentlist" />
                <template name="default/searchlist" />
                <template name="default/bloglist" />
                <template name="default/commentlist" />
                <template name="default/searchlist" />
                <template name="default/bloglist" />
-               <info><![CDATA[Nucleus CMS default skin (日本語版)]]></info>
+               <info><![CDATA[日本語版デフォルトスキン データベースバージョン。\r
+*.inc ファイルをスペシャルスキンパーツ化したバージョンです。\r
+<%parsedinclude%>でスペシャルスキンパーツを読み込んで、スキン内のパーツとして使用できます。\r
+*.incファイルを使用したバージョンは、同じディレクトリにある「skinbackup.xml.org」をリネームして読み込むことで使用できるようになります。]]></info>
        </meta>
 
 
        <skin name="default" type="text/html" includeMode="skindir" includePrefix="default/">
                <description>Nucleus CMS default skin (日本語版)</description>
        </meta>
 
 
        <skin name="default" type="text/html" includeMode="skindir" includePrefix="default/">
                <description>Nucleus CMS default skin (日本語版)</description>
+               <part name="additemform"><![CDATA[<%if(loggedin)%>
+<div id="edit" style="display:none;">
+<div class="contenttitle">
+<h2>新規投稿</h2></div>
+<div class="contentbody">
+<%additemform%></div>
+</div>
+<%endif%>]]></part>
+
                <part name="archive"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="archive"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
 
@@ -42,7 +54,7 @@
 <!-- page menu -->
 <h2 class="hidden">Sidebar</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">Sidebar</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
@@ -51,7 +63,7 @@
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </div>
 
 </body>
                <part name="archivelist"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="archivelist"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
@@ -86,7 +98,7 @@
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </div>
 
 </body>
                <part name="error"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="error"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </html>]]></part>
 
 </div>
 
 </body>
 </html>]]></part>
 
+               <part name="footer"><![CDATA[<div id="copyrights">
+       <small>Copyright | <a href="http://nucleuscms.org"><%version%></a> | 
+       <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a> | 
+       <a href="http://jigsaw.w3.org/css-validator/">Valid CSS</a> | 
+       <a href="#top">ページの先頭に戻る</a></small>
+</div>]]></part>
+
+               <part name="head"><![CDATA[<meta http-equiv="Content-Type" content="text/html; charset=<%charset%>" />\r
+<%phpinclude(benchmark)%>\r
+\r
+<!-- meta information for search engines -->\r
+<meta name="generator" content="<%version%>" />\r
+<meta name="name" content="<%blogsetting(name)%>" />\r
+<meta name="description" content="<%blogsetting(desc)%>" />\r
+\r
+<!-- prevent caching (効果については不明。削除してもかまいません) -->\r
+<meta http-equiv="Pragma" content="no-cache" />\r
+<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />\r
+<meta http-equiv="Expires" content="-1" />\r
+\r
+<!-- site stylesheet (site colors and layout definitions:サイドバー左用) -->\r
+<link rel="stylesheet" type="text/css" href="<%skinfile(default_left.css)%>" />\r
+<!-- site stylesheet (site colors and layout definitions:サイドバー右用) -->\r
+<link rel="alternate stylesheet" type="text/css" href="<%skinfile(default_right.css)%>" />\r
+\r
+<!-- site stylesheet ADDED (some adjustment) -->\r
+<link rel="stylesheet" type="text/css" href="<%skinfile(jlocal.css)%>" />\r
+\r
+<!-- tooltips & stylesheet (activated by title="" on links) -->\r
+<link rel="stylesheet" type="text/css" href="<%skinfile(nicetitle.css)%>" />\r
+<script type="text/javascript" src="<%skinfile(nicetitle.js)%>"></script>\r
+\r
+<!-- ATOM support --> \r
+<link rel="alternate" type="application/atom+xml" title="ATOM" href="atom.php" /> \r
+\r
+<!-- RSS 2.0 feed -->\r
+<link rel="alternate" type="application/rss+xml" title="RSS" href="<%sitevar(url)%>xml-rss2.php" />\r
+\r
+<!-- favorite icon -->\r
+<link rel="shortcut icon" href="<%skinfile(favicon.ico)%>" />\r
+<link rel="icon" href="<%skinfile(favicon.ico)%>" />]]></part>
+
+               <part name="header"><![CDATA[<!-- page header -->
+<div id="header"><a name="top"></a>
+<h1>
+       <%if(skintype,error)%>
+               <a href="<%sitevar(url)%>"><%sitevar(name)%></a>
+       <%elseif(skintype,member)%>
+               <a href="<%sitevar(url)%>"><%sitevar(name)%></a>
+       <%else%>
+               <a href="<%blogsetting(url)%>"><%blogsetting(name)%></a>
+       <%endif%>
+</h1>
+</div>]]></part>
+
                <part name="imagepopup"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
                <part name="imagepopup"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
@@ -166,12 +233,12 @@ body { margin: 0px; }
                <part name="index"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="index"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
@@ -179,7 +246,7 @@ body { margin: 0px; }
 <!-- page content -->
 <div id="container">
 <div class="content">
 <!-- page content -->
 <div id="container">
 <div class="content">
-<%parsedinclude(inc/additemform.inc)%>
+<%parsedinclude(additemform)%>
 <%blog(default/index,10)%>
 </div>
 </div>
 <%blog(default/index,10)%>
 </div>
 </div>
@@ -187,7 +254,7 @@ body { margin: 0px; }
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
@@ -196,7 +263,7 @@ body { margin: 0px; }
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </div>
 
 </body>
@@ -205,12 +272,12 @@ body { margin: 0px; }
                <part name="item"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="item"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
 
 <!-- begin wrapper divs -->
 <div id="mainwrapper"><div id="wrapper">
@@ -235,7 +302,7 @@ body { margin: 0px; }
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
@@ -244,21 +311,31 @@ body { margin: 0px; }
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </html>]]></part>
 
 </div>
 
 </body>
 </html>]]></part>
 
+               <part name="linklist"><![CDATA[<dd><a href="http://nucleuscms.org" title="Nucleus CMS Home">nucleuscms.org(本家サイト)</a></dd>
+<dd><a href="http://japan.nucleuscms.org/" title="Nucleus CMS Japan Home">nucleuscms 日本公式</a></dd>
+<dd><a href="http://japan.nucleuscms.org/documentation/" title="Nucleus CMS Documentation">Nucleus管理マニュアル</a></dd>
+<dd><a href="http://japan.nucleuscms.org/bb/" title="Nucleus CMS Support Forum">Nucleus日本公式フォーラム</a></dd>
+<dd><a href="http://japan.nucleuscms.org/wiki/" title="Nucleus CMS Wiki">Nucleus日本公式wiki</a></dd>
+<dd><a href="http://skins.nucleuscms.org/" title="Nucleus CMS Skins">skins.nucleuscms.org</a></dd>
+<dd><a href="http://japan.nucleuscms.org/wiki/plugins" title="Nucleus CMS Plugins">Nucleusプラグイン紹介</a></dd>
+<dd><a href="http://japan.nucleuscms.org/documentation/devdocs/plugins.html" title="Nucleus CMS Plugins">プラグインを自作</a></dd>
+<dd><a href="http://dev.nucleuscms.org/" title="Nucleus Developer Network">dev.nucleuscms.org</a></dd>]]></part>
+
                <part name="member"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="member"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 
 <!-- page header -->
 </head>
 
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
@@ -284,7 +361,7 @@ WEBサイト: <a href="<%member(url)%>"><%member(url)%></a>
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
@@ -294,21 +371,81 @@ WEBサイト: <a href="<%member(url)%>"><%member(url)%></a>
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </html>]]></part>
 
 </div>
 
 </body>
 </html>]]></part>
 
+               <part name="navigation"><![CDATA[<!-- navigation & page titles -->
+<%if(skintype,index)%>
+<!-- index: page title and extra navigational links -->
+<title><%blogsetting(name)%></title>
+<link rel="bookmark" title="Nucleus" href="http://nucleuscms.org/" />
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%todaylink%>" />
+
+<%elseif(skintype,item)%>
+<!-- item: page title and extra navigational links -->
+<title><%itemtitle(attribute)%> &raquo; <%blogsetting(name)%></title>
+<link rel="archives" title="過去ログ" href="<%archivelink%>" />
+<link rel="top" title="今日の投稿" href="<%sitevar(url)%>" />
+<link rel="next" href="<%nextlink%>" title="次の記事" />
+<link rel="prev" href="<%prevlink%>" title="前の記事" />
+<link rel="up" href="<%todaylink%>" title="今日の投稿" />
+<meta name="robots" content="all,noodp,noydir" />
+
+<%elseif(skintype,archive)%>
+<!-- archive: page title and extra navigational links -->
+<title><%blogsetting(name)%> &raquo; 過去ログ</title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<meta name="robots" content="all,noodp,noydir,NOINDEX,NOFOLLOW" />
+
+<%elseif(skintype,archivelist)%>
+<!-- archivelist: page title and extra navigational links -->
+<title><%blogsetting(name)%> &raquo; 過去ログリスト</title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<meta name="robots" content="all,noodp,noydir,NOINDEX,NOFOLLOW" />
+
+<%elseif(skintype,error)%>
+<!-- error: page title and extra navigational links -->
+<title><%sitevar(name)%> &raquo; エラー!</title>
+<link rel="top" title="Today" href="<%todaylink%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<meta name="robots" content="all,noodp,noydir,NOINDEX,NOFOLLOW" />
+
+<%elseif(skintype,member)%>
+<!-- member: page title and extra navigational links -->
+<title><%blogsetting(name)%> &raquo; メンバー詳細</title>
+<link rel="top" title="Today" href="<%todaylink%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<meta name="robots" content="all,noodp,noydir,NOINDEX,NOFOLLOW" />
+
+<%elseif(skintype,search)%>
+<!-- search: page title and extra navigational links -->
+<title><%blogsetting(name)%> &raquo; 検索</title>
+<link rel="archives" title="過去ログ" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<%if(loggedin)%>
+<script type="text/javascript" src="<%adminurl%>javascript/edit.js"></script>
+<%endif%>]]></part>
+
                <part name="search"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
                <part name="search"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
 <head>
-<%parsedinclude(inc/head.inc)%>
-<%parsedinclude(inc/navigation.inc)%>
+<%parsedinclude(head)%>
+<%parsedinclude(navigation)%>
 </head>
 <body>
 <!-- page header -->
 </head>
 <body>
 <!-- page header -->
-<%parsedinclude(inc/header.inc)%>
+<%parsedinclude(header)%>
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
 <!-- begin wrapper divs -->
 <div id="mainwrapper">
 <div id="wrapper">
@@ -329,7 +466,7 @@ WEBサイト: <a href="<%member(url)%>"><%member(url)%></a>
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
 <!-- page menu -->
 <h2 class="hidden">サイドバー</h2>
 <div id="sidebarcontainer">
-<%parsedinclude(inc/sidebar.inc)%>
+<%parsedinclude(sidebar)%>
 </div>
 
 <div class="clearing">&nbsp;</div>
 </div>
 
 <div class="clearing">&nbsp;</div>
@@ -339,12 +476,124 @@ WEBサイト: <a href="<%member(url)%>"><%member(url)%></a>
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
 
 <!-- page footer, copyrights, etc. -->
 <div id="footer">
-<%parsedinclude(inc/footer.inc)%>
+<%parsedinclude(footer)%>
 </div>
 
 </body>
 </html>]]></part>
 
 </div>
 
 </body>
 </html>]]></part>
 
+               <part name="sidebar"><![CDATA[<!-- page menu -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>ナビゲーション</dt>\r
+\r
+<%if(skintype,archive)%>\r
+<!-- archive: navigation -->\r
+<dd><a href="<%prevlink%>" title="前の月">前の<%archivetype%></a></dd>\r
+<dd><a href="<%nextlink%>" title="次の月">次の<%archivetype%></a></dd>\r
+<dd><a href="<%todaylink%>" title="今日の登録">最新の投稿</a></dd>\r
+<dd><a href="<%archivelink%>" title="過去の投稿">過去の投稿</a></dd>\r
+\r
+<%elseif(skintype,archivelist)%>\r
+<!-- archivelist: navigation -->\r
+<dd><a href="<%todaylink%>" title="最新の投稿">最新の投稿</a></dd>\r
+<dd><a href="<%archivelink%>" title="過去の投稿">過去の投稿</a></dd>\r
+\r
+<%elseif(skintype,error)%>\r
+<!-- error: navigation -->\r
+<dd><a href="<%todaylink%>" title="最新の投稿">最新の投稿</a></dd>\r
+\r
+<%elseif(skintype,index)%>\r
+<!-- index: navigation -->\r
+<dd><a href="<%todaylink%>" title="最新の投稿">最新の投稿</a></dd>\r
+<dd><a href="<%archivelink%>" title="過去の投稿">過去の投稿</a></dd>\r
+\r
+<!-- item: navigation -->\r
+<%elseif(skintype,item)%>\r
+<%if(previtem)%><dd><a href="<%prevlink%>" title="前の投稿">前の投稿</a></dd><%endif%>\r
+<%if(nextitem)%><dd><a href="<%nextlink%>" title="次の投稿">次の投稿</a></dd><%endif%>\r
+<dd><a href="<%todaylink%>" title="最新順の投稿一覧">最新順の投稿一覧</a></dd>\r
+<dd><a href="<%archivelink%>" title="過去の投稿">過去の投稿一覧</a></dd>\r
+\r
+<!-- member: navigation -->\r
+<%elseif(skintype,member)%>\r
+<dd><a href="<%todaylink%>" title="最新の投稿">最新の投稿</a></dd>\r
+\r
+<!-- search: navigation -->\r
+<%elseif(skintype,search)%>\r
+<dd><a href="<%todaylink%>" title="最新の投稿">最新の投稿</a></dd>\r
+<dd><a href="<%archivelink%>" title="過去の投稿">過去の投稿</a></dd>\r
+<%endif%>\r
+\r
+<%if(loggedin)%>\r
+<!-- admin link, only visible if logged in -->\r
+<%if(skintype,index)%>\r
+<dd><a href="javascript:showedit();">クイック投稿</a></dd>\r
+<%endif%>\r
+<dd><a href="<%addlink%>" onclick="<%addpopupcode%>" title="ブログに記事を投稿(新規投稿ウィンドウが開きます)">新規投稿(ポップアップ)</a></dd>\r
+<dd><a href="<%adminurl%>" title="管理画面">管理画面</a></dd>\r
+<%endif%>\r
+</dl>\r
+</div>\r
+\r
+<%if(skintype,error)%>\r
+<%elseifnot(skintype,member)%>\r
+<!-- category list, not on error or member page -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>カテゴリ</dt>\r
+<%categorylist(default/categorylist)%>\r
+</dl>\r
+</div>\r
+<%endif%>\r
+\r
+<!-- bloglist-->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Blogs</dt>\r
+<%bloglist(default/bloglist)%>\r
+</dl>\r
+</div>\r
+\r
+<!-- search form -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>検索</dt>\r
+<dd><%searchform%></dd>\r
+</dl>\r
+</div>\r
+\r
+<!-- login form -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>ログイン</dt>\r
+<dd><%loginform%></dd>\r
+</dl>\r
+</div>\r
+\r
+<!-- links -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>リンク</dt>\r
+<%parsedinclude(linklist)%>\r
+</dl>\r
+</div>\r
+\r
+<!-- Powered by -->\r
+<div class="sidebar">\r
+<div class="sidebardl centerize">\r
+<%nucleusbutton(images/nucleus.gif,85,31)%>\r
+</div>\r
+</div>\r
+\r
+<!-- benchimark -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>ページ生成時間</dt>\r
+<dd><%phpinclude(inc/show_benchmark.inc)%></dd>\r
+</dl>\r
+</div>]]></part>
+
        </skin>
 
 
        </skin>
 
 
diff --git a/utf8/skins/default/skinbackup.xml.org b/utf8/skins/default/skinbackup.xml.org
new file mode 100644 (file)
index 0000000..d44b219
--- /dev/null
@@ -0,0 +1,568 @@
+<nucleusskin>
+       <meta>
+               <skin name="default" />
+               <template name="default/index" />
+               <template name="default/item" />
+               <template name="default/categorylist" />
+               <template name="default/archivelist" />
+               <template name="default/commentlist" />
+               <template name="default/searchlist" />
+               <template name="default/bloglist" />
+               <info><![CDATA[Nucleus CMS default skin (日本語版)]]></info>
+       </meta>
+
+
+       <skin name="default" type="text/html" includeMode="skindir" includePrefix="default/">
+               <description>Nucleus CMS default skin (日本語版)</description>
+               <part name="archive"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+<!-- begin wrapper divs -->
+<div id="mainwrapper"><div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<div class="contenttitle">
+<h2>過去の投稿</h2>
+</div>
+<%archivedate(%Y年%m月)%> の投稿一覧です。
+</div>
+<div class="content">
+<%archive(default/index)%>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">Sidebar</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div></div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="archivelist"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<div class="contenttitle">
+<h2>過去の投稿</h2>
+</div>
+<dl>
+<dt>月別の投稿</dt>
+<%archivelist(default/archivelist)%>
+</dl>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div>
+</div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="error"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<div class="contenttitle">
+<h2>エラーです</h2>
+</div>
+<%errormessage%><br /><br />
+<a href="<%referer%>">戻る</a>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div>
+</div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="imagepopup"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title><%imagetext%></title>
+<style type="text/css">
+img { border: none; }
+body { margin: 0px; }
+</style>
+</head>
+
+<!-- image content -->
+<body onblur="window.close()">
+<a href="javascript:window.close();"><%image%></a>
+</body>
+
+</html>]]></part>
+
+               <part name="index"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+
+<!-- begin wrapper divs -->
+<div id="mainwrapper"><div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<%parsedinclude(inc/additemform.inc)%>
+<%blog(default/index,10)%>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div></div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="item"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+
+<!-- begin wrapper divs -->
+<div id="mainwrapper"><div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<%item(default/item)%>
+</div>
+
+<%comments(default/commentlist)%>
+
+<div class="content">
+<div class="contenttitle">
+<h2>コメントを書く</h2>
+</div>
+<%commentform%>
+</div>
+
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div></div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="member"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<div class="contenttitle">
+<h2>投稿者「<%member(name)%>」の情報</h2>
+</div>
+本名: <%member(realname)%>
+<br /><br />
+WEBサイト: <a href="<%member(url)%>"><%member(url)%></a>
+</div>
+<div class="content">
+<div class="contenttitle">
+<h2>メッセージを送る</h2>
+</div>
+<%membermailform%>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div>
+</div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+               <part name="search"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">
+<head>
+<%parsedinclude(inc/head.inc)%>
+<%parsedinclude(inc/navigation.inc)%>
+</head>
+<body>
+<!-- page header -->
+<%parsedinclude(inc/header.inc)%>
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper">
+
+<!-- page content -->
+<div id="container">
+<div class="content">
+<div class="contenttitle">
+<h2>検索結果</h2>
+</div>
+<%searchform%>
+</div>
+<div class="content">
+<%searchresults(default/searchlist)%>
+</div>
+</div>
+
+<!-- page menu -->
+<h2 class="hidden">サイドバー</h2>
+<div id="sidebarcontainer">
+<%parsedinclude(inc/sidebar.inc)%>
+</div>
+
+<div class="clearing">&nbsp;</div>
+</div>
+</div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<%parsedinclude(inc/footer.inc)%>
+</div>
+
+</body>
+</html>]]></part>
+
+       </skin>
+
+
+       <template name="default/index">
+               <description>defaultスキン用 index テンプレート</description>
+               <part name="COMMENTS_NONE"><![CDATA[<div class="contentitem3">
+<small class="contentitemcomments">
+<a href="<%itemlink%>#c" rel="bookmark" title="&#39;<%itemtitle(attribute)%>&#39; にコメントをつける">コメントを書く</a>
+</small>
+</div>]]></part>
+
+               <part name="COMMENTS_TOOMUCH"><![CDATA[<div class="contentitem3">
+<small class="contentitemcomments">
+<a href="<%itemlink%>#c" rel="bookmark" title="&#39;<%itemtitle(attribute)%>&#39; にコメントを書く">コメント数 <%commentcount%></a>
+</small>
+</div>]]></part>
+
+               <part name="EDITLINK"><![CDATA[<div class="contentitem4">
+<small class="contentitemedit">
+<a href="<%editlink%>" title="投稿を編集" onclick="<%editpopupcode%>" >投稿を編集</a>
+</small>
+</div>]]></part>
+
+               <part name="IMAGE_CODE"><![CDATA[<%image%>]]></part>
+
+               <part name="ITEM"><![CDATA[<div class="contenttitle">
+<h2><a href="<%itemlink%>" title="投稿を読む: <%title(attribute)%>"><%title%> (<%date(%Y/%m/%d)%>)</a></h2>
+</div>
+<div class="contentitem">
+<div class="contentitem1">
+<small class="contentitemcategory">
+カテゴリー: <a href="<%categorylink%>" title="カテゴリー: <%Category%>"><%Category%></a>
+</small>
+</div>
+<div class="contentitem2">
+<small class="contentitempostedby">
+投稿者: <a href="<%authorlink%>" title="投稿者: <%author%>"><%author%></a>
+</small>
+</div>
+<%comments%>
+<%edit%>
+</div>
+<div class="contentbody">
+<%body%>
+<%morelink%>
+</div>]]></part>
+
+               <part name="MEDIA_CODE"><![CDATA[<%media%>]]></part>
+
+               <part name="MORELINK"><![CDATA[<p>&raquo;
+<a href="<%itemlink%>#more" title="&#39;<%title%>&#39; の続きを読む">続きを読む</a>
+</p>]]></part>
+
+               <part name="POPUP_CODE"><![CDATA[<%popuplink%>]]></part>
+
+       </template>
+
+
+       <template name="default/item">
+               <description>defaultスキン用 itemテンプレート</description>
+               <part name="EDITLINK"><![CDATA[<div class="contentitem4">
+<small class="contentitemedit">
+<a href="<%editlink%>" title="投稿を編集" onclick="<%editpopupcode%>" >投稿を編集</a>
+</small>
+</div>]]></part>
+
+               <part name="IMAGE_CODE"><![CDATA[<%image%>]]></part>
+
+               <part name="ITEM"><![CDATA[<div class="contenttitle">
+<h2><%title%> (<%date(%Y/%m/%d)%>)</h2>
+</div>
+<div class="contentitem">
+<div class="contentitem1">
+<small class="contentitemcategory">
+カテゴリー: <a href="<%categorylink%>" title="カテゴリー: <%category%>"><%category%></a>
+</small>
+</div>
+<div class="contentitem2">
+<small class="contentitempostedby">
+投稿者: <a href="<%authorlink%>" title="投稿者: <%author%>"><%author%></a>
+</small>
+</div>
+<%edit%>
+</div>
+<div class="contentbody">
+<%body%><br /><br />
+<a name="more"></a><%more%>
+</div>]]></part>
+
+               <part name="MEDIA_CODE"><![CDATA[<%media%>]]></part>
+
+               <part name="POPUP_CODE"><![CDATA[<%popuplink%>]]></part>
+
+       </template>
+
+
+       <template name="default/categorylist">
+               <description>defaultスキン用カテゴリーリスト(サイドバー)</description>
+               <part name="CATLIST_HEADER"><![CDATA[<dd>
+<a href="<%blogurl%>" title="全てのカテゴリー">全てのカテゴリー</a>
+</dd>]]></part>
+
+               <part name="CATLIST_LISTITEM"><![CDATA[<dd>
+<a href="<%catlink%>" title="カテゴリー: <%catname%>"><%catname%></a>
+</dd>]]></part>
+
+       </template>
+
+
+       <template name="default/archivelist">
+               <description>defaultスキン用アーカイブリスト(月別アーカイブの一覧)</description>
+               <part name="ARCHIVELIST_LISTITEM"><![CDATA[<dd>
+<a href="<%archivelink%>" title="過去の投稿 %Y年%m月">%Y年%m月</a>
+</dd>]]></part>
+
+       </template>
+
+
+       <template name="default/commentlist">
+               <description>defaultスキン用コメントリスト(個別アイテム内)</description>
+               <part name="COMMENTS_BODY"><![CDATA[<div class="itemcomment id<%memberid%>">
+<h3><a href="<%userlinkraw%>"
+title="<%user%>さんにメールを送るかサイトを訪れる。">
+<%user%></a>さんのコメント</h3>
+<div class="commentbody">
+<%body%>
+</div>
+<div class="commentinfo">
+<%date%> <%time%>
+</div>
+</div>
+]]></part>
+
+               <part name="COMMENTS_FOOTER"><![CDATA[</div>
+
+]]></part>
+
+               <part name="COMMENTS_HEADER"><![CDATA[<a name="c"></a>
+<div class="content">
+<div class="contenttitle">
+<h2>コメント一覧</h2>
+</div>
+
+]]></part>
+
+               <part name="COMMENTS_NONE"><![CDATA[<a name="c"></a>
+
+]]></part>
+
+       </template>
+
+
+       <template name="default/searchlist">
+               <description>defaultスキン用検索結果一覧テンプレート</description>
+               <part name="COMMENTS_NONE"><![CDATA[<div class="contentitem3">
+<small class="contentitemcomments">
+<a href="<%itemlink%>#c" rel="bookmark" title="&#39;<%itemtitle(attribute)%>&#39; にコメントをつける">コメントを書く</a>
+</small>
+</div>]]></part>
+
+               <part name="COMMENTS_TOOMUCH"><![CDATA[<div class="contentitem3">
+<small class="contentitemcomments">
+<a href="<%itemlink%>#c" rel="bookmark" title="&#39;<%itemtitle(attribute)%>&#39; にコメントを書く">コメント数 <%commentcount%></a>
+</small>
+</div>]]></part>
+
+               <part name="EDITLINK"><![CDATA[<div class="contentitem4">
+<small class="contentitemedit">
+<a href="<%editlink%>" title="投稿を編集" onclick="<%editpopupcode%>" >投稿を編集</a>
+</small>
+</div>]]></part>
+
+               <part name="IMAGE_CODE"><![CDATA[<%image%>]]></part>
+
+               <part name="ITEM"><![CDATA[<div class="contenttitle">
+<h2><a href="<%itemlink%>" title="投稿を読む: <%title(attribute)%>"><%title%> (<%date(%Y/%m/%d)%>)</a></h2>
+</div>
+<div class="contentitem">
+<div class="contentitem1">
+<small class="contentitemcategory">
+カテゴリー: <a href="<%categorylink%>" title="カテゴリー: <%Category%>"><%Category%></a>
+</small>
+</div>
+<div class="contentitem2">
+<small class="contentitempostedby">
+投稿者: <a href="<%authorlink%>" title="投稿者: <%author%>"><%author%></a>
+</small>
+</div>
+<%comments%>
+<%edit%>
+</div>
+<div class="contentbody">
+<%body%>
+<%morelink%>
+</div>]]></part>
+
+               <part name="MEDIA_CODE"><![CDATA[<%media%>]]></part>
+
+               <part name="MORELINK"><![CDATA[<p>&raquo;
+<a href="<%itemlink%>#more" title="&#39;<%title%>&#39; の続きを読む">続きを読む</a>
+</p>]]></part>
+
+               <part name="POPUP_CODE"><![CDATA[<%popuplink%>]]></part>
+
+               <part name="SEARCH_HIGHLIGHT"><![CDATA[<span class='highlight'>\0</span>]]></part>
+
+               <part name="SEARCH_NOTHINGFOUND"><![CDATA[キーワード<b><%query%></b>は見つかりませんでした。]]></part>
+
+       </template>
+
+
+       <template name="default/bloglist">
+               <description>defaultスキン用ブログリスト(サイドバー)</description>
+               <part name="BLOGLIST_LISTITEM"><![CDATA[<dd>
+<a href="<%bloglink%>" title="ブログ: <%blogname%>"><%blogname%></a>
+</dd>]]></part>
+
+       </template>
+
+
+</nucleusskin>
\ No newline at end of file