From 6b2beac231f8a263920b1cc376b5fd1f0e70ad24 Mon Sep 17 00:00:00 2001 From: shizuki Date: Wed, 18 Mar 2009 07:10:37 +0000 Subject: [PATCH] =?utf8?q?EUC=E3=81=AE=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88?= =?utf8?q?=E3=83=BC=E3=83=AB=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E5=89=8A?= =?utf8?q?=E9=99=A4=20=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3?= =?utf8?q?=E3=83=AA=E3=82=B9=E3=83=88=E3=81=AE=E3=83=AA=E3=83=80=E3=82=A4?= =?utf8?q?=E3=83=AC=E3=82=AF=E3=83=88=E5=95=8F=E9=A1=8C=E4=BF=AE=E6=AD=A3?= =?utf8?q?=20=E3=82=B9=E3=82=AD=E3=83=B3=E3=81=AE=E8=AA=AD=E3=81=BF?= =?utf8?q?=E8=BE=BC=E3=81=BF/=E6=9B=B8=E3=81=8D=E5=87=BA=E3=81=97=E6=94=B9?= =?utf8?q?=E8=89=AF=20=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB=E3=83=88?= =?utf8?q?=E3=82=B9=E3=82=AD=E3=83=B3=E3=81=AE=E3=82=A4=E3=83=B3=E3=82=AF?= =?utf8?q?=E3=83=AB=E3=83=BC=E3=83=89=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?utf8?q?=E3=82=92=E3=82=B9=E3=82=AD=E3=83=B3=E3=83=91=E3=83=BC=E3=83=84?= =?utf8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@987 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- utf8/install-EUC.php | 1112 ------------------------- utf8/install_lang_japanese-euc.php | 346 -------- utf8/nucleus/libs/ADMIN.php | 19 +- utf8/nucleus/libs/skinie.php | 1281 +++++++++++++++-------------- utf8/skins/default/inc/show_benchmark.inc | 3 +- utf8/skins/default/skinbackup.xml | 323 +++++++- utf8/skins/default/skinbackup.xml.org | 568 +++++++++++++ 7 files changed, 1527 insertions(+), 2125 deletions(-) delete mode 100644 utf8/install-EUC.php delete mode 100644 utf8/install_lang_japanese-euc.php create mode 100644 utf8/skins/default/skinbackup.xml.org diff --git a/utf8/install-EUC.php b/utf8/install-EUC.php deleted file mode 100644 index 6dd54fc..0000000 --- a/utf8/install-EUC.php +++ /dev/null @@ -1,1112 +0,0 @@ -
If you see this text in your browser when you open install.php, your web server is not able to run PHP-scripts, and therefor Nucleus will not be able to run there.
0) || (count($aConfSkinsToImport) > 0) ) { - global $CONF; - $CONF['installscript'] = 1; -} - -if (phpversion() >= '4.1.0') { - include_once('nucleus/libs/vars4.1.0.php'); -} else { - include_once('nucleus/libs/vars4.0.6.php'); -} - -include_once('nucleus/libs/mysql.php'); - -// check if mysql support is installed - if (!function_exists('mysql_query') ) { - _doError(_ERROR1); - } - - if (postVar('action') == 'go') { - doInstall(); - } else { - showInstallForm(); - } - -exit; - -function showInstallForm() { - // 0. pre check if all necessary files exist - doCheckFiles(); - - ?> - - - - - <?php echo _TITLE; ?> - - - - -
-
- -

- - - -

- - - -
    -
  • PHP: - -' . sprintf(_TEXT2_WARN, $minVersion) . ''; - } elseif (phpversion() < '5') { - echo ' ' . _TEXT2_WARN3 . ''; - } -?> - -
  • -
  • MySQL: - - 0) { - $row = mysql_fetch_array($result); - $match = explode('.', $row['version']); - } else { - $result = @mysql_query('SHOW VARIABLES LIKE \'version\''); - - if ($result != FALSE && @mysql_num_rows($result) > 0) { - $row = mysql_fetch_row($result); - $match = explode('.', $row[1]); - } else { - $output = shell_exec('mysql -V'); - preg_match('@[0-9]+\.[0-9]+\.[0-9]+@', $output, $version); - $match = explode('.', $version[0]); - - if ($match[0] == '') { - $match[0] = '0'; - $match[1] = '0'; - $match[2] = '0'; - } - } - } - - $mysqlVersion = implode($match, '.'); - $minVersion = '3.23'; - - if ($mysqlVersion == '0.0.0') { - echo _NOTIFICATION1; - } - else { - echo $mysqlVersion; - } - - if ($mysqlVersion < $minVersion) { - echo ' ' . sprintf(_TEXT2_WARN2, $minVersion) . ''; - } -?> - -
  • -
- - - -

- - - -

- - - -
- - - - - - - - - - - - - - - - - - -
()
-
- -
- - - - - - -
- - - -
- -

- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
() -
-
() -
-
() -
-
- - - -

- - - -
- - - - - - - - - - - - - - - - - - - - - - -
()
()
-
- -

- - - -
- - - - - - - - - - -
()
-
- -

- -
- - - - - -
-
- -

- - - -

- -
- - - - 0) { - showErrorMessages($errors); - } - - // 2. try to log in to mySQL - global $MYSQL_CONN; - $MYSQL_CONN = @mysql_connect($mysql_host, $mysql_user, $mysql_password); - - if ($MYSQL_CONN == false) { - _doError(_ERROR15 . ': ' . mysql_error() ); - } - - // 3. try to create database (if needed) - if ($mysql_create == 1) { - mysql_query('CREATE DATABASE ' . $mysql_database) or _doError(_ERROR16 . ': ' . mysql_error() ); - } - - // 4. try to select database - mysql_select_db($mysql_database) or _doError(_ERROR17); - - // 5. execute queries - $filename = 'install.sql'; - $fd = fopen($filename, 'r'); - $queries = fread($fd, filesize($filename) ); - fclose($fd); - - $queries = split("(;\n|;\r)", $queries); - - $aTableNames = array( - 'nucleus_actionlog', - 'nucleus_ban', - 'nucleus_blog', - 'nucleus_category', - 'nucleus_comment', - 'nucleus_config', - 'nucleus_item', - 'nucleus_karma', - 'nucleus_member', - 'nucleus_plugin', - 'nucleus_skin', - 'nucleus_template', - 'nucleus_team', - 'nucleus_activation', - 'nucleus_tickets' - ); -// these are unneeded (one of the replacements above takes care of them) -// 'nucleus_plugin_event', -// 'nucleus_plugin_option', -// 'nucleus_plugin_option_desc', -// 'nucleus_skin_desc', -// 'nucleus_template_desc', - - $aTableNamesPrefixed = array( - $mysql_prefix . 'nucleus_actionlog', - $mysql_prefix . 'nucleus_ban', - $mysql_prefix . 'nucleus_blog', - $mysql_prefix . 'nucleus_category', - $mysql_prefix . 'nucleus_comment', - $mysql_prefix . 'nucleus_config', - $mysql_prefix . 'nucleus_item', - $mysql_prefix . 'nucleus_karma', - $mysql_prefix . 'nucleus_member', - $mysql_prefix . 'nucleus_plugin', - $mysql_prefix . 'nucleus_skin', - $mysql_prefix . 'nucleus_template', - $mysql_prefix . 'nucleus_team', - $mysql_prefix . 'nucleus_activation', - $mysql_prefix . 'nucleus_tickets' - ); -// these are unneeded (one of the replacements above takes care of them) -// $mysql_prefix . 'nucleus_plugin_event', -// $mysql_prefix . 'nucleus_plugin_option', -// $mysql_prefix . 'nucleus_plugin_option_desc', -// $mysql_prefix . 'nucleus_skin_desc', -// $mysql_prefix . 'nucleus_template_desc', - - $count = count($queries); - - for ($idx = 0; $idx < $count; $idx++) { - $query = trim($queries[$idx]); - // echo "QUERY = " . htmlspecialchars($query) . "

"; - - if ($query) { - - if ($mysql_usePrefix == 1) { - $query = str_replace($aTableNames, $aTableNamesPrefixed, $query); - } - - mysql_query($query) or _doError(_ERROR30 . ' (' . htmlspecialchars($query) . '): ' . mysql_error() ); - } - } - - // 5a make first post - $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);"; - mysql_query($newpost) or _doError(_ERROR18 . ' (' . htmlspecialchars($newpost) . '): ' . mysql_error() ); - - // 6. update global settings - updateConfig('IndexURL', $config_indexurl); - updateConfig('AdminURL', $config_adminurl); - updateConfig('MediaURL', $config_mediaurl); - updateConfig('SkinsURL', $config_skinsurl); - updateConfig('PluginURL', $config_pluginurl); - updateConfig('ActionURL', $config_actionurl); - updateConfig('AdminEmail', $config_adminemail); - updateConfig('SiteName', $config_sitename); - - // 7. update GOD member - $query = 'UPDATE ' . tableName('nucleus_member') - . " SET mname = '" . addslashes($user_name) . "'," - . " mrealname = '" . addslashes($user_realname) . "'," - . " mpassword = '" . md5(addslashes($user_password) ) . "'," - . " murl = '" . addslashes($config_indexurl) . "'," - . " memail = '" . addslashes($user_email) . "'," - . " madmin = 1," - . " mcanlogin = 1" - . " WHERE" - . " mnumber = 1"; - - mysql_query($query) or _doError(_ERROR19 . ': ' . mysql_error() ); - - // 8. update weblog settings - $query = 'UPDATE ' . tableName('nucleus_blog') - . " SET bname = '" . addslashes($blog_name) . "'," - . " bshortname = '" . addslashes($blog_shortname) . "'," - . " burl = '" . addslashes($config_indexurl) . "'" - . " WHERE" - . " bnumber = 1"; - - mysql_query($query) or _doError(_ERROR20 . ': ' . mysql_error() ); - - // 8-2. update category settings - $query = 'UPDATE ' . tableName('nucleus_category') - . " SET cname = '" . addslashes(_GENERALCAT_NAME) . "'," - . " cdesc = '" . addslashes(_GENERALCAT_DESC) . "'" - . " WHERE" - . " catid = 1"; - - mysql_query($query) or _doError(_ERROR20 . ': ' . mysql_error() ); - - // 9. update item date - $query = 'UPDATE ' . tableName('nucleus_item') - . " SET itime = '" . date('Y-m-d H:i:s', time() ) ."'" - . " WHERE inumber = 1"; - - mysql_query($query) or _doError(_ERROR21 . ': ' . mysql_error() ); - - global $aConfPlugsToInstall, $aConfSkinsToImport; - $aSkinErrors = array(); - $aPlugErrors = array(); - - if ((count($aConfPlugsToInstall) > 0) || (count($aConfSkinsToImport) > 0) ) { - // 10. set global variables - global $MYSQL_HOST, $MYSQL_USER, $MYSQL_PASSWORD, $MYSQL_DATABASE, $MYSQL_PREFIX; - - $MYSQL_HOST = $mysql_host; - $MYSQL_USER = $mysql_user; - $MYSQL_PASSWORD = $mysql_password; - $MYSQL_DATABASE = $mysql_database; - $MYSQL_PREFIX = ($mysql_usePrefix == 1) ? $mysql_prefix : ''; - - global $DIR_NUCLEUS, $DIR_MEDIA, $DIR_SKINS, $DIR_PLUGINS, $DIR_LANG, $DIR_LIBS; - - $DIR_NUCLEUS = $config_adminpath; - $DIR_MEDIA = $config_mediapath; - $DIR_SKINS = $config_skinspath; - $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/'; - $DIR_LANG = $DIR_NUCLEUS . 'language/'; - $DIR_LIBS = $DIR_NUCLEUS . 'libs/'; - - // close database connection (needs to be closed if we want to include globalfunctions.php) - mysql_close(); - - $manager = ''; - include_once($DIR_LIBS . 'globalfunctions.php'); - - // 11. install custom skins - $aSkinErrors = installCustomSkins($manager); - - // 12. install NP_Ping, if decided - if ($weblog_ping == 1) { - global $aConfPlugsToInstall; - array_push($aConfPlugsToInstall, "NP_Ping"); - } - - // 13. install custom plugins - $aPlugErrors = installCustomPlugs($manager); - } - - // 14. Write config file ourselves (if possible) - $bConfigWritten = 0; - - if (@file_exists('config.php') && is_writable('config.php') && $fp = @fopen('config.php', 'w') ) { - $config_data = '<' . '?php' . "\n\n"; - //$config_data .= "\n"; (extraneous, just added extra \n to previous line - $config_data .= " // mySQL connection information\n"; - $config_data .= " \$MYSQL_HOST = '" . $mysql_host . "';\n"; - $config_data .= " \$MYSQL_USER = '" . $mysql_user . "';\n"; - $config_data .= " \$MYSQL_PASSWORD = '" . $mysql_password . "';\n"; - $config_data .= " \$MYSQL_DATABASE = '" . $mysql_database . "';\n"; - $config_data .= " \$MYSQL_PREFIX = '" . (($mysql_usePrefix == 1) ? $mysql_prefix : '') . "';\n"; - $config_data .= "\n"; - $config_data .= " // main nucleus directory\n"; - $config_data .= " \$DIR_NUCLEUS = '" . $config_adminpath . "';\n"; - $config_data .= "\n"; - $config_data .= " // path to media dir\n"; - $config_data .= " \$DIR_MEDIA = '" . $config_mediapath . "';\n"; - $config_data .= "\n"; - $config_data .= " // extra skin files for imported skins\n"; - $config_data .= " \$DIR_SKINS = '" . $config_skinspath . "';\n"; - $config_data .= "\n"; - $config_data .= " // these dirs are normally sub dirs of the nucleus dir, but \n"; - $config_data .= " // you can redefine them if you wish\n"; - $config_data .= " \$DIR_PLUGINS = \$DIR_NUCLEUS . 'plugins/';\n"; - $config_data .= " \$DIR_LANG = \$DIR_NUCLEUS . 'language/';\n"; - $config_data .= " \$DIR_LIBS = \$DIR_NUCLEUS . 'libs/';\n"; - $config_data .= "\n"; - $config_data .= " // include libs\n"; - $config_data .= " include(\$DIR_LIBS . 'globalfunctions.php');\n"; - $config_data .= " if (!extension_loaded('mbstring')) {\n"; - $config_data .= " include(\$DIR_LIBS . 'mb_emulator/mb-emulator.php');\n"; - $config_data .= " }\n"; - $config_data .= "?" . ">"; - - $result = @fputs($fp, $config_data, strlen($config_data) ); - fclose($fp); - - if ($result) { - $bConfigWritten = 1; - } - } - -?> - - - - - <?php echo _TITLE; ?> - - - -

- - 0) { - echo '

' . _TITLE2 . '

'; - echo ''; - } - - if (!$bConfigWritten) { ?> -

- - - -
<?php
-	// mySQL connection information
-	$MYSQL_HOST     = '';
-	$MYSQL_USER     = '';
-	$MYSQL_PASSWORD = 'xxxxxxxxxxx';
-	$MYSQL_DATABASE = '';
-	$MYSQL_PREFIX   = '';
-
-	// main nucleus directory
-	$DIR_NUCLEUS = '';
-
-	// path to media dir
-	$DIR_MEDIA   = '';
-
-	// extra skin files for imported skins
-	$DIR_SKINS   = '';
-
-	// these dirs are normally sub dirs of the nucleus dir, but
-	// you can redefine them if you wish
-	$DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
-	$DIR_LANG    = $DIR_NUCLEUS . 'language/';
-	$DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
-
-	// include libs
-	include($DIR_LIBS . 'globalfunctions.php');
-	if (!extension_loaded('mbstring')) {
-		include($DIR_LIBS . 'mb_emulator/mb-emulator.php');
-	}
-?>
- - - -
- -
- - - -

- - - - - -

- - - - - -

- - - - - - - -

- -

-

-

- - - - -clearCachedInfo('installedPlugins'); - $plugin =& $manager->getPlugin($plugName); - $plugin->plugid = $numCurrent; - - if (!$plugin) { - sql_query('DELETE FROM ' . sql_table('plugin') . ' WHERE pfile=\'' . addslashes($plugName) . '\''); - $numCurrent--; - array_push($aErrors, _ERROR22 . $plugName); - continue; - } - - $plugin->install(); - } - - // SYNC PLUGIN EVENT LIST - sql_query('DELETE FROM ' . sql_table('plugin_event') ); - - // loop over all installed plugins - $res = sql_query('SELECT pid, pfile FROM ' . sql_table('plugin') ); - - while($o = mysql_fetch_object($res) ) { - $pid = $o->pid; - $plug =& $manager->getPlugin($o->pfile); - - if ($plug) { - $eventList = $plug->getEventList(); - - foreach ($eventList as $eventName) { - sql_query('INSERT INTO ' . sql_table('plugin_event') . ' (pid, event) VALUES (' . $pid . ', \'' . $eventName . '\')'); - } - } - } - - return $aErrors; -} - -function installCustomSkins(&$manager) { - global $aConfSkinsToImport, $DIR_LIBS, $DIR_SKINS; - - $aErrors = array(); - - if (count($aConfSkinsToImport) == 0) { - return $aErrors; - } - - // load skinie class - include_once($DIR_LIBS . 'skinie.php'); - - $importer = new SKINIMPORT(); - - foreach ($aConfSkinsToImport as $skinName) { - $importer->reset(); - $skinFile = $DIR_SKINS . $skinName . '/skinbackup.xml'; - - if (!@file_exists($skinFile) ) { - array_push($aErrors, _ERROR23_1 . $skinFile . ' : ' . _ERROR23_2); - continue; - } - - $error = $importer->readFile($skinFile); - - if ($error) { - array_push($aErrors, _ERROR24 . $skinName . ' : ' . $error); - continue; - } - - $error = $importer->writeToDatabase(1); - - if ($error) { - array_push($aErrors, _ERROR24 . $skinName . ' : ' . $error); - continue; - } - } - - return $aErrors; -} - -// give an error if one or more nucleus are not accessible -function doCheckFiles() { - $missingfiles = array(); - $files = array( - 'install.sql', - 'index.php', - 'action.php', - 'nucleus/index.php', - 'nucleus/libs/globalfunctions.php', - 'nucleus/libs/ADMIN.php', - 'nucleus/libs/BLOG.php', - 'nucleus/libs/COMMENT.php', - 'nucleus/libs/COMMENTS.php', - 'nucleus/libs/ITEM.php', - 'nucleus/libs/MEMBER.php', - 'nucleus/libs/SKIN.php', - 'nucleus/libs/TEMPLATE.php', - 'nucleus/libs/MEDIA.php', - 'nucleus/libs/ACTIONLOG.php', - 'nucleus/media.php' - ); - - $count = count($files); - - for ($i = 0; $i < $count; $i++) { - if (!is_readable($files[$i]) ) { - array_push($missingfiles, _ERROR25_1 . $files[$i] . _ERROR25_2); - } - } - -// The above code replaces several if statements of the form: - -// if (!is_readable('install.sql') ) { -// array_push($missingfiles, 'File install.sql is missing or not readable'); -// } - - if (count($missingfiles) > 0) { - showErrorMessages($missingfiles); - } -} - -function updateConfig($name, $val) { - $name = addslashes($name); - $val = trim(addslashes($val) ); - - $query = 'UPDATE ' . tableName('nucleus_config') - . " SET value = '$val'" - . " WHERE name = '$name'"; - - mysql_query($query) or _doError(_ERROR26 . ': ' . mysql_error() ); - return mysql_insert_id(); -} - -function replaceDoubleBackslash($input) { - return str_replace('\\', '/', $input); -} - -function endsWithSlash($s) { - return (strrpos($s, '/') == strlen($s) - 1); -} - -/** - * Checks if email address is valid - */ -function _isValidMailAddress($address) { - if (preg_match("/^[a-zA-Z0-9\._-]+@+[A-Za-z0-9\._-]+\.+[A-Za-z]{2,4}$/", $address) ) { - return 1; - } else { - return 0; - } -} - -// returns true if the given string is a valid shortname -// (to check short blog names and nicknames) -// logic: starts and ends with a non space, can contain spaces in between -// min 2 chars -function _isValidShortName($name) { - if (eregi("^[a-z0-9]+$", $name) ) { - return 1; - } else { - return 0; - } -} - - - -// returns true if the given string is a valid display name -// (to check nicknames) -function _isValidDisplayName($name) { - if (eregi("^[a-z0-9]+[a-z0-9 ]*[a-z0-9]+$", $name) ) { - return 1; - } else { - return 0; - } -} - -function _doError($msg) { - ?> - - - - - <?php echo _TITLE; ?> - - - -
-

- -

: "";

- -

- - - - - - - - - <?php echo _TITLE; ?> - - - -
-

- -

:

- - - -

- - - -
\ 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 index 1e8988e..0000000 --- a/utf8/install_lang_japanese-euc.php +++ /dev/null @@ -1,346 +0,0 @@ -action.php¥Õ¥¡¥¤¥ë¤Ø¤ÎURL¤¬Ê̤Υµ¡¼¥Ð¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£'); -define('_ERROR9_3', 'action.php¥Õ¥¡¥¤¥ë¤Ø¤ÎURL¤Ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£'); -define('_ERROR10', '¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬ÉÔÀµ¤Ç¤¹¡£'); -define('_ERROR11', 'Ž¢É½¼¨¤µ¤ì¤ë̾Á°Ž£¤Ë»ÈÍѤǤ­¤Ê¤¤Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£(»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢ºÇ½é¤ÈºÇ¸å°Ê³°¤Î¶õÇò)'); -define('_ERROR12', '¥Ñ¥¹¥ï¡¼¥É¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£'); -define('_ERROR13', 'ÆþÎϤµ¤ì¤¿Æó¤Ä¤Î¥Ñ¥¹¥ï¡¼¥É¤¬°ìÃפ·¤Þ¤»¤ó¤Ç¤·¤¿¡£'); -define('_ERROR14', 'Ž¢¥Ö¥í¥°¤Îû½Ì̾(ά¾Î)Ž£¤Ë»ÈÍѤǤ­¤Ê¤¤Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£(»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡£¶õÇò¤Ï»ÈÍѤǤ­¤Þ¤»¤ó)'); -define('_ERROR15', 'mySQL server¤ËÀܳ¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£'); -define('_ERROR16', '¥Ç¡¼¥¿¥Ù¡¼¥¹¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£ºîÀ®¤Î¸¢¸Â¤¬¤¢¤ë¤«¤É¤¦¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£SQL ¥¨¥é¡¼¤ÎÆâÍÆ¡§'); -define('_ERROR17', '¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò¸«¤Ä¤±¤é¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Â¸ºß¤¹¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£'); -define('_ERROR18', '¼¡¤Î¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§'); -define('_ERROR19', 'Ž¢¥á¥ó¥Ð¡¼ÀßÄꎣ¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§'); -define('_ERROR20', 'Ž¢blogÀßÄꎣ¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§'); -define('_ERROR21', '¼¡¤Î¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§'); -define('_ERROR22', '¥×¥é¥°¥¤¥ó¡Ö%s¡×¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£'); -define('_ERROR23_1', '¥Æ¡¼¥Þ¥Õ¥¡¥¤¥ëŽ¢%sŽ£¤¬Æɤ߹þ¤á¤Þ¤»¤ó¤Ç¤·¤¿¡£'); -define('_ERROR23_2', '¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¡£'); -define('_ERROR24', '¥Æ¡¼¥ÞŽ¢%sŽ£¤ò¥¤¥ó¥Ý¡¼¥È½ÐÍè¤Þ¤»¤ó¤Ç¤·¤¿¡£'); -define('_ERROR25_1', '¥×¥í¥°¥é¥à¤Î¥³¥¢¥Õ¥¡¥¤¥ë '); -define('_ERROR25_2', ' ¤¬¸«¤Ä¤«¤é¤Ê¤¤¡¢¤â¤·¤¯¤ÏÆɤ߽Ф·¶Ø»ß¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£'); -define('_ERROR26', 'ÀßÄê¤Î¹¹¿·Ãæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£¼Â¹Ô¤·¤¿¥¯¥¨¥ê¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡§'); -define('_ERROR27', '¥¨¥é¡¼¡ª'); -define('_ERROR28', '¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡§'); -define('_ERROR29', 'Ê£¿ô¤Î¥¨¥é¡¼¤òȯ¸«¤·¤Þ¤·¤¿'); -define('_ERROR30', '¥¯¥¨¥ê¤Î¼Â¹ÔÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡§'); - -define('_NOTIFICATION1', 'ȽÊÌÉÔǽ'); - -define('_TITLE', 'Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë'); -define('_TITLE2', '¥Æ¡¼¥Þ¡¦¥×¥é¥°¥¤¥ó¤Î¥¤¥ó¥¹¥È¡¼¥ë¥¨¥é¡¼'); -define('_TITLE3', '¥¤¥ó¥¹¥È¡¼¥ë¤Ï¤Û¤Ü´°Î»¤·¤Þ¤·¤¿¡ª'); -define('_TITLE4', '¥¤¥ó¥¹¥È¡¼¥ë¤Ï´°Î»¤·¤Þ¤·¤¿¡ª'); -define('_TITLE5', '¥¹¥Ñ¥à¤È¤ÎÀ襤'); - -define('_HEADER1', 'Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë'); -define('_TEXT1', '

¤³¤Î¥¹¥¯¥ê¥×¥È¤ÏNucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¼ê½õ¤±¤·¤Þ¤¹¡£MySQL¥Æ¡¼¥Ö¥ë¤Î¥»¥Ã¥È¥¢¥Ã¥×¤È¡¢config.php¤ËÆþÎϤ¹¤ë¤¿¤á¤Î¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡Êconfig.php¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò0666¤Ë¤·¤Æ¤ª¤±¤Ð¡¢¸å¼Ô¤Îºî¶È¤Ï¼«Æ°Åª¤Ë¹Ô¤ï¤ì¤Þ¤¹¡Ë¡£¤³¤ì¤ò¤Ê¤¹°Ù¤Ë¡¢¤¤¤¯¤Ä¤«¤Î¾ðÊó¤òÆþÎϤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¤¹¤Ù¤Æ¤ÎÍó¤ÎÆþÎϤ¬É¬ÍפǤ¹¡£¥ª¥×¥·¥ç¥ó¾ðÊó¤Ï¡¢¥¤¥ó¥¹¥È¡¼¥ë¤¬´°Î»¸åNucleus¤Î´ÉÍýÎΰ褫¤éÀßÄê²Äǽ¤Ç¤¹¡£

'); - -define('_HEADER2', 'PHP ¤È MySQL ¤Î¥Ð¡¼¥¸¥ç¥ó'); -define('_TEXT2', '

°Ê²¼¤Ï¤¢¤Ê¤¿¤Î¥¦¥§¥Ö¥Û¥¹¥È¤Ë¤ª¤±¤ëPHP¤ÈMySQL¥µ¡¼¥Ð¡¼¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤¹¡£Nucleus¤Î¥µ¥Ý¡¼¥È¥Õ¥©¡¼¥é¥à¤ËÌäÂê¤òÊó¹ð¤¹¤ë»þ¤Ï¡¢¤³¤Î¾ðÊó¤ò½ñ¤­Åº¤¨¤Æ¤¯¤À¤µ¤¤¡£

'); -define('_TEXT2_WARN', ' Ãí°Õ: Nucleus¤ÎÆ°ºî¤Ë¤Ï¾¯¤Ê¤¯¤È¤â¥Ð¡¼¥¸¥ç¥ó %s ¤¬É¬ÍפǤ¹'); -define('_TEXT2_WARN2', ' Ãí°Õ: Nucleus¤ÎÆ°ºî¤Ë¤Ï¾¯¤Ê¤¯¤È¤â¥Ð¡¼¥¸¥ç¥ó %s ¤¬É¬ÍפǤ¹'); -define('_TEXT2_WARN3', '·Ù¹ð¡ª Æ°ºî¤·¤Æ¤¤¤ëPHP¤Î¥Ð¡¼¥¸¥ç¥ó¤¬¸Å¤¤¤è¤¦¤Ç¤¹¡ª¼¡¤Ë¥ê¥ê¡¼¥¹¤µ¤ì¤ëNucleusCMS¤Ç¤ÏPHP4¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡ªÁáµÞ¤ËPHP5¤Ë¥¢¥Ã¥×¥°¥ì¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡ª'); - -define('_HEADER3', 'config.php¤Î¼«Æ°ÀßÄê'); -define('_TEXT3', 'config.php¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò666¤Ë¤·¤Æ¤ª¤±¤Ð¡¢¥¹¥¯¥ê¥×¥È¤¬¼«Æ°¤ÇÀßÄê¾ðÊó¤ò½ñ¤­¹þ¤ß¤Þ¤¹¡£¤¿¤À¤·¡¢Nucleus¤Î¥¤¥ó¥¹¥È¡¼¥ë´°Î»¸å¡¢É¬¤º¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò444¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤(¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÊѹ¹¤Î´Ê°×¥¬¥¤¥É)¡£

¥¹¥¯¥ê¥×¥È¤Ë½ñ¤­¹þ¤ß¸¢¸Â¤òÍ¿¤¨¤Ê¤¯¤Æ¤â¡¢¥¤¥ó¥¹¥È¡¼¥ëÃæ¤Ëconfig.php¤Ë½ñ¤­¹þ¤à¤Ù¤­ÆâÍƤ¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¡¢ÆâÍƤò½ñ¤­´¹¤¨¤ÆFTPÅù¤Ç¥¢¥Ã¥×¥í¡¼¥É¤¹¤ì¤ÐÌäÂꤢ¤ê¤Þ¤»¤ó¡£'); - -define('_HEADER4', 'MySQL¤Î¥í¥°¥¤¥ó¥Ç¡¼¥¿'); -define('_TEXT4', '

MySQL¤Î¥Ç¡¼¥¿¤ò°Ê²¼¤ËÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤é¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¡¦¥Æ¡¼¥Ö¥ë¤òºîÀ®¤·¾ðÊó¤òÆþÎϤ¹¤ë¤¿¤á¤ËɬÍפʤâ¤Î¤Ç¤¹¡£¸å¤Ç¡¢config.php¤Ë¤âµ­Æþ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡Ê¾åµ­¤Î¼«Æ°ÀßÄê¤òÍøÍѤ¹¤ë¾ì¹ç¡¢¤½¤Î¼ê½ç¤Ï¾Êά¤µ¤ì¤Þ¤¹¡Ë¡£

¤â¤·¤³¤Î¾ðÊ󤬤狼¤é¤Ê¤±¤ì¤Ð¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô¤«¥Û¥¹¥Æ¥£¥ó¥°¸µ¤ËÏ¢Íí¤ò¤È¤Ã¤Æ¤¯¤À¤µ¤¤¡£¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥Û¥¹¥È̾¤ÏŽ¢localhostŽ£¤Ç¤¹¡£¤â¤·Nucleus¤¬¤¢¤Ê¤¿¤Î¥µ¡¼¥Ð¤ÎPHPÀßÄ꤫¤éŽ¢default MySQL hostŽ£¤ò¸¡ÃΤ·¤¿¤Ê¤é¡¢Ž¢¥Û¥¹¥È̾Ž£¤Ë´û¤Ëµ­Æþ¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£¤â¤Ã¤È¤â¡¢¤³¤Î¾ðÊó¤¬Àµ³Î¤Ç¤¢¤ë¤È¤¤¤¦ÊݾڤϤ¢¤ê¤Þ¤»¤ó¡£

'); -define('_TEXT4_TAB_HEAD', '´ðËܤΥǡ¼¥¿¥Ù¡¼¥¹ÀßÄê'); -define('_TEXT4_TAB_FIELD1', '¥Û¥¹¥È̾¡§'); -define('_TEXT4_TAB_FIELD2', '¥æ¡¼¥¶¡¼Ì¾¡§'); -define('_TEXT4_TAB_FIELD3', '¥Ñ¥¹¥ï¡¼¥É¡§'); -define('_TEXT4_TAB_FIELD4', '¥Ç¡¼¥¿¥Ù¡¼¥¹Ì¾¡§'); -define('_TEXT4_TAB_FIELD4_ADD', '¥Ç¡¼¥¿¥Ù¡¼¥¹¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ë'); - -define('_TEXT4_TAB2_HEAD', '¹âÅ٤ʥǡ¼¥¿¥Ù¡¼¥¹ÀßÄê'); -define('_TEXT4_TAB2_FIELD', '¥Æ¡¼¥Ö¥ë¡¦¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤ò»ÈÍѤ¹¤ë¡§'); -define('_TEXT4_TAB2_ADD', '

°ì¤Ä¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÊ£¿ô¤ÎNucleus¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¡¢¼«Ê¬¤¬²¿¤ò¤ä¤Ã¤Æ¤¤¤ë¤Î¤«Íý²ò¤·¤Æ¤¤¤ë¾ì¹ç¤ò½ü¤­¡¢¤³¤ì¤òÊѹ¹¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

Nucleus¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¥Æ¡¼¥Ö¥ë¤Ï¡¢¤³¤Î¥×¥ê¥Õ¥£¥Ã¥¯¥¹¤¬Æ¬¤Ë¤Ä¤­¤Þ¤¹¡£

'); - -define('_HEADER5', '¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL'); -define('_TEXT5', '

¤³¤Î¥¤¥ó¥¹¥È¡¼¥ë¥¹¥¯¥ê¥×¥È¤ÏNucleus¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL¤ò¸«¤Ä¤±¤è¤¦¤È¤·¤Þ¤·¤¿¡£²¼¤ÎÃͤò¥Á¥§¥Ã¥¯¤·¤ÆɬÍפʤéÄûÀµ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Õ¥¡¥¤¥ë¤Ø¤Î¥Ñ¥¹¤ÈURL¤Ï¥¹¥é¥Ã¥·¥å\'/\'¤Ç½ª¤ï¤é¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

'); - -define('_TEXT5_TAB_HEAD', '¥Ç¥£¥ì¥¯¥È¥ê¤ÈURL'); -define('_TEXT5_TAB_FIELD1', '¥µ¥¤¥È¤ÎURL¡§'); -define('_TEXT5_TAB_FIELD2', '´ÉÍý¥¨¥ê¥¢¤ÎURL¡§'); -define('_TEXT5_TAB_FIELD3', '´ÉÍý¥¨¥ê¥¢¤Î¥Ç¥£¥ì¥¯¥È¥ê¡§'); -define('_TEXT5_TAB_FIELD4', '¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤¬³ÊǼ¤µ¤ì¤ëURL¡§'); -define('_TEXT5_TAB_FIELD5', '¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤¬³ÊǼ¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¡§'); -define('_TEXT5_TAB_FIELD6', '¥¹¥­¥ó¥Õ¥¡¥¤¥ë¤ÎURL¡§'); -define('_TEXT5_TAB_FIELD7', '¥¹¥­¥ó¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¡§'); -define('_TEXT5_TAB_FIELD7_2', '¥¤¥ó¥Ý¡¼¥È¤·¤¿¥¹¥­¥ó¤Ç»ÈÍѤ¹¤ë¥Õ¥¡¥¤¥ë'); -define('_TEXT5_TAB_FIELD8', '¥×¥é¥°¥¤¥ó¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ëURL¡§'); -define('_TEXT5_TAB_FIELD9', 'µ¡Ç½·èÄê¥Õ¥¡¥¤¥ë¤ÎURL¡§'); -define('_TEXT5_TAB_FIELD9_2', 'action.php¥Õ¥¡¥¤¥ë¤Ø¤Îhttp://¤«¤é»Ï¤Þ¤ëURL¡§'); -define('_TEXT5_2', '

ÉÕµ­: ÁêÂХѥ¹¤Ç¤Ï¤Ê¤¯ÀäÂХѥ¹¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ÀäÂХѥ¹¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢/home/username/public_html/¤Î¤è¤¦¤Ë¥¹¥é¥Ã¥·¥å¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£¤è¤¯²ò¤é¤Ê¤¤¾ì¹ç¤Ï¥µ¡¼¥Ð´ÉÍý¼Ô¤Ë¼ÁÌ䤷¤Æ¤¯¤À¤µ¤¤¡£

'); - -define('_HEADER6', '´ÉÍý¸¢¸Â¤ò¤â¤Ä¥æ¡¼¥¶¡¼'); -define('_TEXT6', '

°Ê²¼¤Ë¡¢¥µ¥¤¥È¤ÎºÇ½é¤Î¥æ¡¼¥¶¡¼¤òºîÀ®¤¹¤ë¤¿¤á¤Î¾ðÊó¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£

'); -define('_TEXT6_TAB_HEAD', '¥µ¥¤¥È¤Î´ÉÍý¼Ô¡§'); -define('_TEXT6_TAB_FIELD1', 'ɽ¼¨¤µ¤ì¤ë̾Á°(¥í¥°¥¤¥óID)¡§'); -define('_TEXT6_TAB_FIELD1_2', '»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢ºÇ½é¤ÈºÇ¸å°Ê³°¤Î¶õÇò'); -define('_TEXT6_TAB_FIELD2', 'ËÜ̾(¥Ï¥ó¥É¥ë̾)¡§'); -define('_TEXT6_TAB_FIELD3', '¥Ñ¥¹¥ï¡¼¥É¡§'); -define('_TEXT6_TAB_FIELD4', '¥Ñ¥¹¥ï¡¼¥É(³Îǧ¤Î°Ù¤Ë¤â¤¦¤¤¤Á¤ÉÆþÎϤ·¤Æ¤¯¤À¤µ¤¤)¡§'); -define('_TEXT6_TAB_FIELD5', '¥á¡¼¥ë¥¢¥É¥ì¥¹¡§'); -define('_TEXT6_TAB_FIELD5_2', 'ÍøÍѲÄǽ¤Ê¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤'); - -define('_HEADER7', '¥Ö¥í¥°¤Î¥Ç¡¼¥¿'); -define('_TEXT7', '

°Ê²¼¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤ÎWeblog¤òºîÀ®¤¹¤ë¤¿¤á¤Î¾ðÊó¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎWeblog¤Î̾Á°¤Ï¡¢¥µ¥¤¥È̾¤È¤·¤Æ¤âÍøÍѤµ¤ì¤Þ¤¹¡£

'); -define('_TEXT7_TAB_HEAD', '¥Ö¥í¥°¤Î¥Ç¡¼¥¿'); -define('_TEXT7_TAB_FIELD1', '¥Ö¥í¥°¤Î̾Á°¡§'); -define('_TEXT7_TAB_FIELD2', '¥Ö¥í¥°¤Îû½Ì̾(ά¾Î)¡§'); -define('_TEXT7_TAB_FIELD2_2', '»ÈÍѤǤ­¤ëʸ»ú¡§a-z ¤È 0-9¡¢¶õÇò¤ÏÉÔ²Ä'); - -define('_HEADER8', '¹¹¿·Ping'); -//define('_HEADER8', '¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¥×¥é¥°¥¤¥ó¤È¥Æ¡¼¥Þ¤ÎÁªÂò'); -define('_TEXT8_TAB_HEADER', '¹¹¿·Ping'); -define('_TEXT8_TAB_PLUGINDEP', '°Ê²¼¤Î¥×¥é¥°¥¤¥ó¤Ë°Í¸¤·¤Þ¤¹¡£%s'); // -//define('_TEXT8_TAB_HEADER', '¥×¥é¥°¥¤¥ó¤ÎÁªÂò'); -define('_TEXT8_TAB_HEADER2', '¥Æ¡¼¥Þ¤ÎÁªÂò'); -define('_TEXT8_TAB_FIELD1', '¹¹¿·PingÁ÷¿®¤Î¤¿¤á¤Ë¡¢NP_Ping¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¤«¡©(¤³¤Î¥×¥é¥°¥¤¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤¯¤Æ¤â¡¢Â¾¤Î¥×¥é¥°¥¤¥ó¤Ç¹¹¿·Ping¤òÁ÷¿®¤¹¤ë»ö¤Ï½ÐÍè¤Þ¤¹)'); - -define('_HEADER9', '¥Ç¡¼¥¿¤ÎÁ÷¿®'); -define('_TEXT9', '

¾å¤Ë½ñ¤¤¤Æ¤­¤¿¥Ç¡¼¥¿¤¬Àµ¤·¤¤¤«³Î¤«¤á¤Æ¤¯¤À¤µ¤¤¡£¤è¤±¤ì¤Ð¥Ç¡¼¥¿¥Ù¡¼¥¹¡¦¥Æ¡¼¥Ö¥ë¤ÈºÇ½é¤Î¥Ç¡¼¥¿¤òÀßÄꤹ¤ë¤¿¤á¤Ë²¼¤Î¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£¾¯¤·»þ´Ö¤¬¤«¤«¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¤´¿ÉÊú¤ò¡£¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤Î¤Ï°ì²ó¤À¤±¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£

'); - -define('_TEXT10', '

¥Ç¡¼¥¿¥Ù¡¼¥¹¥Æ¡¼¥Ö¥ë¤Î½é´üÃÍÆþÎϤ¬À®¸ù¤·¤Þ¤·¤¿¡£¸å¤Ïconfig.php¤ò½ñ¤­´¹¤¨¤ë¤À¤±¤Ç¤¹¡£°Ê²¼¤Ë½ñ¤­´¹¤¨¤ë¤Ù¤­ÆâÍƤòɽ¼¨¤·¤Þ¤¹¡Êmysql¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï¥Þ¥¹¥¯¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ï¼ÂºÝ¤Î¤â¤Î¤Ë½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡Ë

'); -define('_TEXT11', '

¤¢¤Ê¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿¾å¤Î¥Õ¥¡¥¤¥ë¤ò½ñ¤­´¹¤¨¤¿¤é¡¢FTP¤ò»È¤Ã¤Æ¥¦¥§¥Ö¥µ¡¼¥Ð¤Ë¥¢¥Ã¥×¥í¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡£ASCII¥â¡¼¥É¤ÇÁ÷¿®¤·¤Æ¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤·¤Þ¤¹¡£

'); -define('_TEXT12', 'ÉÕµ­: config.php¤ÎºÇ½é¤ä½ª¤ï¤ê¤Ë¥¹¥Ú¡¼¥¹¤ò¶õ¤±¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£¼Â¹Ô»þ¤Ë¥¨¥é¡¼¤ò°ú¤­µ¯¤³¤¹¸¶°ø¤È¤Ê¤ê¤Þ¤¹¡£
¤·¤¿¤¬¤Ã¤Æ¡¢config.php¤ÎºÇ½é¤Îʸ»ú¤Ï "<"¤ÇºÇ¸å¤Îʸ»ú¤Ï">"¤È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£'); -define('_TEXT13', '

Nucleus¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¡¢config.php¤Ï¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤Þ¤·¤¿¡£

¥»¥­¥å¥ê¥Æ¥£¤Î¤¿¤áconfig.php¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤ò444¤ËÌ᤹¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤(¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÊѹ¹¤Î´Ê°×¥¬¥¤¥É)¡£

'); -define('_TEXT14', '

Nucleus¤Ïï¤Ç¤â¥Ö¥í¥°¤Ë¥³¥á¥ó¥È¤ò»Ä¤¹»ö¤¬½ÐÍè¤ëÍͤˤʤäƤ¤¤ë¤Î¤Ç¡¢¤³¤Î¤Þ¤Þ¤Ç¤Ï¥¹¥Ñ¥Þ¡¼¤Î²¹¾²¤Ë¤Ê¤ë´í¸±¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤ÎÊýË¡¤Î¤Ë¤è¤Ã¤Æ¥Ö¥í¥°¤òÊݸ¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡§

'); -define('_TEXT14_L1', '¤¢¤Ê¤¿¤¬¥³¥á¥ó¥È¤òɬÍפȤ·¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢´ÉÍý¥¨¥ê¥¢¤«¤éŽ¢¤¢¤Ê¤¿¤Î¥Ö¥í¥°Ž£ > Ž¢¥Ö¥í¥°ÀßÄꎣ ¤È¤¿¤É¤ê¡¢ Ž¢¥³¥á¥ó¥È¤òµö²Ä¤·¤Þ¤¹¤«?Ž£ ¤ÎÀßÄê¤òŽ¢¤¤¤¤¤¨Ž£¤Ë¤¹¤ë»ö¤Ç¡¢¥³¥á¥ó¥ÈÅê¹Æ¥Õ¥©¡¼¥à¤òÈóɽ¼¨¤Ë¤¹¤ë»ö¤¬½ÐÍè¤Þ¤¹¡£'); -define('_TEXT14_L2', '¥¹¥Ñ¥à¤ò·âÂࡦ´ÉÍý¤¹¤ë°Ù¤Î¥×¥é¥°¥¤¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡§Nucleus Japan wiki (¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ò¤ª´«¤á¤·¤Þ¤¹)'); -define('_HEADER10', '¥¤¥ó¥¹¥È¡¼¥ë¥Õ¥¡¥¤¥ë¤Îºï½ü'); -define('_TEXT15', '

¥¦¥§¥Ö¥µ¡¼¥Ð¤«¤é¼¡¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡§

'); -define('_TEXT15_L1', 'install.sql¡§¥Æ¡¼¥Ö¥ë¤Î¹½Â¤¤òÆâÊñ¤¹¤ë¥Õ¥¡¥¤¥ë'); -define('_TEXT15_L2', 'install.php¡§¤³¤Î¥Õ¥¡¥¤¥ë'); - -define('_TEXT15_EX', '

¤â¤·¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢´ÉÍýÎΰè¤ò³«¤¯¤³¤È¤¬½ÐÍè¤Þ¤»¤ó¡£

'); - -define('_HEADER11', '¥¦¥§¥Ö¥µ¥¤¥È¤Î³Îǧ'); -define('_TEXT16', '¥¦¥§¥Ö¥µ¥¤¥È¤ò»È¤¦½àÈ÷¤¬À°¤¤¤Þ¤·¤¿¡£'); -define('_TEXT16_L1', '´ÉÍýÎΰè¤Ë¥í¥°¥¤¥ó¤·¤Æ¥µ¥¤¥È¤ÎÀßÄê¤ò¹Ô¤¦'); -define('_TEXT16_L2', '¤¹¤°¤Ë¥µ¥¤¥È¤Ø¹Ô¤Ã¤Æ¤ß¤ë'); - -define('_TEXT17', 'Ìá¤ë'); - -define('_BUTTON1', 'Nucleus CMS¤Î¥¤¥ó¥¹¥È¡¼¥ë'); - -// General category -define('_GENERALCAT_NAME', 'Áí¹ç'); -define('_GENERALCAT_DESC', 'Åê¹Æ¤·¤¿µ­»ö¤Ë¹ç¤¦¥«¥Æ¥´¥ê¤¬Ìµ¤¤»þ¤Ë¤³¤Î¥«¥Æ¥´¥ê¤ò»ÈÍѤ¹¤ë¤ÈÎɤ¤¤Ç¤·¤ç¤¦'); - -define('_1ST_POST_TITLE', 'Nucleus CMS ¥Ð¡¼¥¸¥ç¥ó3.4¤Ø¤è¤¦¤³¤½'); -define('_1ST_POST', '¥¦¥§¥Ö¥Ú¡¼¥¸¤ÎºîÀ®¤òÊä½õ¤¹¤ëÀѤßÌÚ¤¬¤³¤³¤Ë¤¢¤ê¤Þ¤¹¡£¤½¤ì¤Ï¿´Ìö¤ëblog¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢´Ñ¤ë¤â¤Î¤òϤޤ»¤ë²È²¤Î¥Ú¡¼¥¸¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢¼Â¤ê¿¤­¼ñÌ£¤Î¥µ¥¤¥È¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤¢¤ë¤¤¤Ï¸½ºß¤Î¤¢¤Ê¤¿¤Ë¤ÏÁÛÁü¤¬¤Ä¤«¤Ê¤¤¤â¤Î¤Ë¤Ê¤ë¤³¤È¤À¤Ã¤Æ¤¢¤ë¤Ç¤·¤ç¤¦¡£
-
ÍÑÅÓ¤¬»×¤¤¤Ä¤­¤Þ¤»¤ó¤Ç¤·¤¿¤«¡©¡¡¤½¤ì¤Ê¤é¤³¤³¤ØÍè¤ÆÀµ²ò¤Ç¤¹¡£¤Ê¤¼¤Ê¤é¤¢¤Ê¤¿Æ±Íͻ䤿¤Á¤Ë¤â¤ï¤«¤é¤Ê¤¤¤Î¤Ç¤¹¤«¤é¡£'); -define('_1ST_POST2', '¤³¤ì¤Ï¥µ¥¤¥È¤Ë¤ª¤±¤ëºÇ½é¤Î¥¨¥ó¥È¥ê¡¼¤Ç¤¹¡£¥¹¥¿¡¼¥È¤òÀÚ¤ê¤ä¤¹¤¤¤è¤¦¤Ë¡¢¥ê¥ó¥¯¤È¾ðÊó¤òÆþ¤ì¤Æ¤ª¤­¤Þ¤·¤¿¡£
-
-¤³¤Îµ­»ö¤òºï½ü¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤¬¡¢¤É¤Á¤é¤Ë¤»¤èµ­»ö¤òÄɲ䷤Ƥ¤¤¯¤³¤È¤Ë¤è¤Ã¤Æ¤ä¤¬¤Æ¥á¥¤¥ó¥Ú¡¼¥¸¤«¤é¤Ï¸«¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£Nucleus¤ò°·¤¦¤¦¤Á¤ËÀ¸¤¸¤¿¥á¥â¤ò¥³¥á¥ó¥È¤È¤·¤ÆÄɲä·¡¢¾­Í襢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤³¤Î¥Ú¡¼¥¸¤ò¥Ö¥Ã¥¯¥Þ¡¼¥¯¤·¤Æ¤ª¤¯¤Î¤â¼ê¤Ç¤¹¡£
-
-¥ê¥ó¥¯
-
-Nucleus CMS¤ÎËܲȤÈÆüËܸì¸ø¼°¥Ú¡¼¥¸¡£
-
-Nucleus CMS¤ÎSourceForge¥×¥í¥¸¥§¥¯¥È¡ÊÆüËÜÈÇ¡Ë¥Ú¡¼¥¸¡£
-
-Nucleus CMS¤Î¥×¥é¥°¥¤¥óÁҸˤÈÆüËܸì¤Î¥ê¥¹¥È¥Ú¡¼¥¸¡£
-
-¥É¥­¥å¥á¥ó¥È - docs.nucleuscms.org
-
-Nucleus¤ÎFAQ¡Ê¤è¤¯¤¢¤ë¼ÁÌ佸¡Ë¡Ê¸¶Ê¸¡Ë¥Ú¡¼¥¸¡£
-
-¥¤¥ó¥¹¥È¡¼¥ëÊýË¡Åù¤Ï¥æ¡¼¥¶¡¼¸þ¤±¤È³«È¯¼Ô¸þ¤±Ê¸½ñ¤¬¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
-
-¥Ý¥Ã¥×¥¢¥Ã¥×¥Ø¥ë¥×¤¬´ÉÍý¥¨¥ê¥¢¤Î¤¤¤¿¤ë¤È¤³¤í¤Ë¤¢¤ê¡¢¥µ¥¤¥È¤Î¥«¥¹¥¿¥Þ¥¤¥º¤ä¥Ç¥¶¥¤¥ó¤ò¼ê½õ¤±¤·¤Æ¤¯¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦¡£
-
-°ìÅÙÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¥É¥­¥å¥á¥ó¥È¤ËÌܤòÄ̤·¤¿¤é¡¢Wiki¡ÊÆüËÜÈǡˤòˬ¤ì¤Æ¤¯¤À¤µ¤¤¡£¥æ¡¼¥¶¡¼¤Î½ñ¤¤¤¿¥Ï¥¦¥Ä¡¼¤ä¾®µ»¤¬·ÇºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
-
-¥µ¥Ý¡¼¥È
-
-forum.nucleuscms.org¡ÊËܲȡË
-japan.nucleuscms.org/bb/¡ÊÆüËÜÈÇ¡Ë
-
-moderators¤È¥µ¥Ý¡¼¥È¥Õ¥©¡¼¥é¥à¤Ç³èÆ°¤¹¤ëÁ´¤Æ¤Î¥Ü¥é¥ó¥Æ¥£¥¢¤Ë´¶¼Õ¤·¤Þ¤¹¡£
-
-- admun - Ottawa, ON, Canada
-- anand - Bangalore, India
-- hcgtv - Miami, Florida, USA
-- ikeizer - Maastricht
-- moraes - Brazil
-- roel - The Netherlands
-- TeRanEX - Ekeren, Antwerp, Belgium
-- Trent - Alberta, Canada
-- xiffy - Deventer
-
-¤â¤·¼ê½õ¤±¤¬É¬Íפʤ顢1400¤òĶ¤¨¤ëÅÐÏ¿¥æ¡¼¥¶¡¼¤Î¤¤¤ë»ä¤¿¤Á¤Î¥Õ¥©¡¼¥é¥à¤Ë»²²Ã¤·¤Æ¤¯¤À¤µ¤¤¡£23,000¤òĶ¤¨¤ëÅê¹Æ¤µ¤ì¤¿µ­»ö¤ò¸¡º÷¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤ª¤ê¤Þ¤¹¤Î¤Ç¡¢µá¤á¤ëÅú¤¨¤Ë¿ô²ó¤Î¥¯¥ê¥Ã¥¯¤Ç¤¿¤É¤êÃ失¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
-
-Personalization - skins.nucleuscms.org
-
-¥Þ¥ë¥Á¥¦¥§¥Ö¥í¥°¤È¥¹¥­¥ó/¥Æ¥ó¥×¥ì¡¼¥È¤ÎÁȤ߹ç¤ï¤»¤Ï¶¯ÎϤÊÁê¾è¸ú²Ì¤òÀ¸¤ß½Ð¤·¤Þ¤¹¡£¸Ä¿ÍŪ¤Ê¥µ¥¤¥ÈºîÀ®¡¢Í§¿Í¤ä¿ÆÀ̤¢¤ë¤¤¤Ï¥¯¥é¥¤¥¢¥ó¥È¤ËÂФ¹¤ë¥µ¥¤¥È¥Ç¥¶¥¤¥ó¤¤¤º¤ì¤ËÂФ·¤Æ¤â¤Ç¤¹¡£
-
-636¤ÎÅÐÏ¿¤µ¤ì¤¿Nucleus¤Ç±¿ÍѤµ¤ì¤Æ¤¤¤ë¥µ¥¤¥È¡ÊÆüËÜÈǡˤÎÃ椫¤éÆÿ§¤¢¤ë¥µ¥¤¥È¤ò¥µ¥ó¥×¥ë¤È¤·¤Æ¤´¾Ò²ð¤·¤Þ¤¹¡£
-
-The Zen of Nucleus
-- beefcake.nl - Beefcake | Nuke the whales!
-- leng-lui.com - Leng-Lui.com - v7.0: "Memento"
-
-Personal blogs
-- bloggard.com - The Adventures of Bloggard
-- battleangel.org - Giving meaning to the meaningless
-- yetanotherblog.de - Yet Another Blog
-
-Multi user blogs
-- tipos.com.br - Blogging community
-
-Hobby, Travel and News sites
-- adrenalinsports.nl - Extreme sports
-- hsbluebird.com - Hot Springs, Montana\'\'s Online Resource
-- groningen-info.de - Neues aus Groningen. Fr Leute aus Duitsland.
-- americandaily.com - American Daily - Home
-
-Nucleus Developer Network - dev.nucleuscms.org
-
-The NUDN is a hub for developer sites and programming resources.
-
-NUDN satellite sites, handles, location and UTC offset:
-- karma - Izegem +02
-- hcgtv - Miami -05
-- admun - Ottawa -04
-- TeRanEX - Ekeren +02
-
-Sourceforge.net graciously hosts our CVS repository.
-
-Want to play around or test changes, visit our demo site at demo.nucleuscms.org.
-
-Not sure what plugins to use, visit the showcase site where you can see plugins at play in their native habitat.
-
-Then visit the plugin repository at plugins.nucleuscms.org for download and installation instructions.
-
-´óÉÕ¼Ô°ìÍ÷
-
-°Ê²¼¤ÎÁÇÀ²¤é¤·¤¤¿Í¡¹¤Ë¤è¤ë±ç½õ´¶¼Õ¤òÊû¤²¤Þ¤¹¡£¤¢¤ê¤¬¤È¤¦¡ª
-
-- dkex
-- Uncover the Net
-- Web Atlas
-- IPN Lighting
-- Yu (blog.datoka.jp)
-- Sony Gadgets and Reviews
-- Thomas McKibben
-- CheapWeb.us
-- Robert Seyfriedsberger
-- Toxicologie.nl
-- Gordon Shum
-- Neal Stevens
-- GamblingHelper
-- Oliver Kirstein
-- Dominiek
-- Aardschok
-- nieuwevoordeur.be
-- Scene24
-- Eug\'\'s Weblog
-- The Adventures of Bloggard
-- Arthur Cronos from Voltos
-- Free Webmaster Tools and Resources
-- Domi\'\'s Weblog
-- Infodoma
-- carvingCode.com
-- Traweb
-- Gene\'\'s MoBlog
-- InterfaceThis
-- The Finster Log
-- Hop Nguyen
-- Zwavelaars
-- Joaquin Scholten
-- Roel Groeneveld
-- LVBlog
-- Xander Mol
-- Danilo Massa
-- 01FTP.com
-- Irmo Keizer
-- Jason Krogh
-- Osamu Higuchi
-- Trent Adams
-- Arne Hess
-- The Bluebird
-- Rainer Bickel
-- Fritz Elfers
-- European Wall Tapestries
-- Jamie R. Rytlewski
-- Madolyn Piper
-- Battery Values
-- Janko Roettgers
-- Lukas Loesche
-- SEO Book
-- Brandweer de Maten
-- Andy Fuchs
-- Sumoforce
-- Al\'\'ky\'\'mie
-- Peter Johnson
-- TriV Internet Solutions
-- Margaret Stowe
-- zenkey dot org
-- Blots of Info
-- Rudi De Kerpel
-- Steve Taylor
-- Malcolm Farnsworth
-- Birgit Kellner
-- Toby Johnson
-- Kapingamarangi
-- Pallalink
-- PubliusTX Weblog
-- Reductio Ad Absurdum
-- GagaWeb
-- Videokid
-- Jon Marr
-- Luigi Cristiano
-- J Keith Lehman
-- Bohemian Cachet
-- Jesus Mourazos
-- Stephen Jones
-- One-Handed Apps
-- Alwin Hawkins
-- Justin Stigall
-- It is my life
-- Greg Morrill
-- Dutch Submarines
-- Seventh Watch Design Studios
-- MacNetv2
-- Richard Noordhof
-- Jamie Rytlewski
-
-Nucleus¤¬µ¤¤ËÆþ¤ê¤Þ¤·¤¿¤«¡©¡¡HotScripts¤äopensourceCMS¤Ç¤ÎÅêɼ¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£
-
-¥é¥¤¥»¥ó¥¹
-
-»ä¤¿¤Á¤¬¥Õ¥ê¡¼¡¦¥½¥Õ¥È¥¦¥§¥¢¤Ë¤Ä¤¤¤Æ¸ý¤Ë¤¹¤ë¾ì¹ç¤Ï¼«Í³¤Î¤³¤È¤Ë¸ÀµÚ¤·¤Æ¤¤¤ë¤Î¤Ç¤¢¤Ã¤Æ¡¢²Á³Ê¤Î¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£»ä¤¿¤Á¤Î°ìÈ̸øÍ­»ÈÍѵöÂú½ñ¡ÊÆüËܸìÌõ¤È³µÍסˤϡ¢¥Õ¥ê¡¼¡¦¥½¥Õ¥È¥¦¥§¥¢¤ÎÊ£À½Êª¤ò¼«Í³¤ËÈÒÉۤǤ­¤ë¤³¤È(¤½¤·¤Æ¡¢Ë¾¤à¤Ê¤é¤³¤Î¥µ¡¼¥Ó¥¹¤ËÂФ·¤ÆÂвÁ¤òÀÁµá¤Ç¤­¤ë¤³¤È)¡¢¥½¡¼¥¹¡¦¥³¡¼¥É¤ò¼ÂºÝ¤Ë¼õ¤±¼è¤ë¤«´õ˾¤·¤µ¤¨¤¹¤ì¤ÐÆþ¼ê¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¤³¤È¡¢Æþ¼ê¤·¤¿¥½¥Õ¥È¥¦¥§¥¢¤òÊѹ¹¤·¤¿¤ê¿·¤·¤¤¥Õ¥ê¡¼¡¦¥×¥í¥°¥é¥à¤Î°ìÉô¤È¤·¤Æ»ÈÍѤǤ­¤ë¤³¤È¡¢°Ê¾å¤Î³ÆÆâÍƤò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­¤ë¤È¤¤¤¦¤³¤È¤ò¥æ¡¼¥¶¼«¿È¤¬ÃΤäƤ¤¤ë¤³¤È¤ò¼Â¸½¤Ç¤­¤ë¤è¤¦¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£'); - -?> \ No newline at end of file diff --git a/utf8/nucleus/libs/ADMIN.php b/utf8/nucleus/libs/ADMIN.php index d7d9ec8..6666ecc 100755 --- a/utf8/nucleus/libs/ADMIN.php +++ b/utf8/nucleus/libs/ADMIN.php @@ -6190,7 +6190,7 @@ selector(); * @todo document this */ function action_pluginupdate() { - global $member, $manager; + global $member, $manager, $CONF; // check if allowed $member->isAdmin() or $this->disallow(); @@ -6211,7 +6211,7 @@ selector(); } } - redirect('?action=pluginlist'); + redirect($CONF['AdminURL'] . '?action=pluginlist'); // $this->action_pluginlist(); } @@ -6241,14 +6241,15 @@ selector(); - pagefoot(); + pagefoot(); } /** * @todo document this */ function action_plugindeleteconfirm() { - global $member, $manager; + global $member, $manager, $CONF; // check if allowed $member->isAdmin() or $this->disallow(); @@ -6260,7 +6261,7 @@ selector(); $this->error($error); } - redirect('?action=pluginlist'); + redirect($CONF['AdminURL'] . '?action=pluginlist'); // $this->action_pluginlist(); } @@ -6342,7 +6343,7 @@ selector(); * @todo document this */ function action_pluginup() { - global $member, $manager; + global $member, $manager, $CONF; // check if allowed $member->isAdmin() or $this->disallow(); @@ -6366,14 +6367,14 @@ selector(); //$this->action_pluginlist(); // To avoid showing ticket in the URL, redirect to pluginlist, instead. - redirect('?action=pluginlist'); + redirect($CONF['AdminURL'] . '?action=pluginlist'); } /** * @todo document this */ function action_plugindown() { - global $member, $manager; + global $member, $manager, $CONF; // check if allowed $member->isAdmin() or $this->disallow(); @@ -6399,7 +6400,7 @@ selector(); //$this->action_pluginlist(); // To avoid showing ticket in the URL, redirect to pluginlist, instead. - redirect('?action=pluginlist'); + redirect($CONF['AdminURL'] . '?action=pluginlist'); } /** diff --git a/utf8/nucleus/libs/skinie.php b/utf8/nucleus/libs/skinie.php index 301d06a..825f23c 100755 --- a/utf8/nucleus/libs/skinie.php +++ b/utf8/nucleus/libs/skinie.php @@ -19,624 +19,665 @@ * @version $NucleusJP: skinie.php,v 1.9.2.1 2007/09/05 07:46:30 kimitake Exp $ */ -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); - $tempcharset = mb_detect_encoding($tempbuffer); - if ($tempcharset != 'UTF-8') { - $tempbuffer = mb_convert_encoding($tempbuffer, 'UTF-8', $tempcharset); - } - -/* - [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( - "/(metaDataRead))) { - $err = xml_parse( $this->parser, $buffer, feof($temp) ); - if (!$err && $this->debug) { - echo _ERROR . ': ' . xml_error_string(xml_get_error_code($this->parser)) . '
'; - } - } - - // 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) . '
'; - } - - 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) . '
'; - 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) . '
'; - } - - 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) . '
'; - 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) . '
'; - } - $this->cdata .= $data; - } - - /** - * Returns the data collected so far - */ - function getCharacterData() { - if (_CHARSET != 'UTF-8') { - return mb_convert_encoding($this->cdata, _CHARSET, 'UTF-8'); - } else { - return $this->cdata; - } - } - - /** - * 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 "\n"; - - // meta - echo "\t\n"; - // skins - foreach ($this->skins as $skinId => $skinName) { - $skinName = htmlspecialchars($skinName, ENT_QUOTES); - echo "\t\t" . '' . "\n"; - } - // templates - foreach ($this->templates as $templateId => $templateName) { - $templateName = htmlspecialchars($templateName, ENT_QUOTES); - echo "\t\t" . '