Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用
Revision | b6b097a07bb52ff7aec2f7e960271717f09b3d99 (tree) |
---|---|
Zeit | 2009-03-17 18:01:31 |
Autor | shizuki <shizuki@1ca2...> |
Commiter | shizuki |
インストールスクリプトを統合
$CONF['DisableEncodingCheck'] の設定をコメントアウト
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk/utf8@982 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -30,7 +30,7 @@ | ||
30 | 30 | -- Start Of Configurable Part -- |
31 | 31 | */ |
32 | 32 | |
33 | -include('./install_lang_japanese-utf8.php'); | |
33 | +include('./install_lang_japanese.php'); | |
34 | 34 | |
35 | 35 | // array with names of plugins to install. Plugin files must be present in the nucleus/plugin/ |
36 | 36 | // directory. |
@@ -93,7 +93,7 @@ function showInstallForm() { | ||
93 | 93 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
94 | 94 | <html xmlns="http://www.w3.org/1999/xhtml"> |
95 | 95 | <head> |
96 | - <meta http-equiv="content-type" content="application/xhtml+xml; charset=<?php echo _CHARSET; ?>" /> | |
96 | + <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> | |
97 | 97 | <title><?php echo _TITLE; ?></title> |
98 | 98 | <style type="text/css"><!-- |
99 | 99 | @import url('nucleus/documentation/styles/manual.css'); |
@@ -120,6 +120,25 @@ function showInstallForm() { | ||
120 | 120 | |
121 | 121 | <?php echo _TEXT1; ?> |
122 | 122 | |
123 | + <h1><?php echo _HEADER1_2 ?></h1> | |
124 | + | |
125 | + <?php echo _TEXT1_2; ?> | |
126 | + | |
127 | + <fieldset> | |
128 | + <legend><?php echo _TEXT1_2_TAB_HEAD; ?></legend> | |
129 | + <table> | |
130 | + <tr> | |
131 | + <td><?php echo _TEXT1_2_TAB_FIELD1; ?></td> | |
132 | + <td> | |
133 | + <select name="charset" tabindex="10000"> | |
134 | + <option value="utf8" selected="selected">UTF-8</option> | |
135 | + <option value="ujis" >EUC-JP</option> | |
136 | + </select> | |
137 | + </td> | |
138 | + </tr> | |
139 | + </table> | |
140 | + </fieldset> | |
141 | + | |
123 | 142 | <h1><?php echo _HEADER2; ?></h1> |
124 | 143 | |
125 | 144 | <?php echo _TEXT2; ?> |
@@ -205,7 +224,7 @@ function showInstallForm() { | ||
205 | 224 | <table> |
206 | 225 | <tr> |
207 | 226 | <td><?php echo _TEXT4_TAB_FIELD1; ?></td> |
208 | - <td><input name="mySQL_host" value="<?php echo htmlspecialchars(@ini_get('mysql.default_host') )?>" /></td> | |
227 | + <td><input name="mySQL_host" value="<?php echo htmlspecialchars(@ini_get('mysql.default_host') )?>" tabindex="10010" /></td> | |
209 | 228 | </tr> |
210 | 229 | <tr> |
211 | 230 | <td><?php echo _TEXT4_TAB_FIELD2; ?></td> |
@@ -213,11 +232,11 @@ function showInstallForm() { | ||
213 | 232 | </tr> |
214 | 233 | <tr> |
215 | 234 | <td><?php echo _TEXT4_TAB_FIELD3; ?></td> |
216 | - <td><input name="mySQL_password" type="password" /></td> | |
235 | + <td><input name="mySQL_password" type="password" tabindex="10030" /></td> | |
217 | 236 | </tr> |
218 | 237 | <tr> |
219 | 238 | <td><?php echo _TEXT4_TAB_FIELD4; ?></td> |
220 | - <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> | |
239 | + <td><input name="mySQL_database" tabindex="10040" /> (<input name="mySQL_create" value="1" type="checkbox" id="mySQL_create" tabindex="10050" /><label for="mySQL_create"><?php echo _TEXT4_TAB_FIELD4_ADD; ?></label>)</td> | |
221 | 240 | </tr> |
222 | 241 | </table> |
223 | 242 | </fieldset> |
@@ -226,8 +245,8 @@ function showInstallForm() { | ||
226 | 245 | <legend><?php echo _TEXT4_TAB2_HEAD; ?></legend> |
227 | 246 | <table> |
228 | 247 | <tr> |
229 | - <td><input name="mySQL_usePrefix" value="1" type="checkbox" id="mySQL_usePrefix" /><label for="mySQL_usePrefix"><?php echo _TEXT4_TAB2_FIELD; ?></label></td> | |
230 | - <td><input name="mySQL_tablePrefix" value="" /></td> | |
248 | + <td><input name="mySQL_usePrefix" value="1" type="checkbox" id="mySQL_usePrefix" tabindex="10060" /><label for="mySQL_usePrefix"><?php echo _TEXT4_TAB2_FIELD; ?></label></td> | |
249 | + <td><input name="mySQL_tablePrefix" value="" tabindex="10070" /></td> | |
231 | 250 | </tr> |
232 | 251 | </table> |
233 | 252 |
@@ -278,42 +297,42 @@ function showInstallForm() { | ||
278 | 297 | $url .= '/'; |
279 | 298 | } |
280 | 299 | |
281 | - echo $url; ?>" /></td> | |
300 | + echo $url; ?>" tabindex="10080" /></td> | |
282 | 301 | </tr> |
283 | 302 | <tr> |
284 | 303 | <td><?php echo _TEXT5_TAB_FIELD2; ?></td> |
285 | 304 | <td><input name="AdminURL" size="60" value="<?php |
286 | 305 | if ($url) { |
287 | 306 | echo $url . 'nucleus/'; |
288 | - } ?>" /></td> | |
307 | + } ?>" tabindex="10090" /></td> | |
289 | 308 | </tr> |
290 | 309 | <tr> |
291 | 310 | <td><?php echo _TEXT5_TAB_FIELD3; ?></td> |
292 | 311 | <td><input name="AdminPath" size="60" value="<?php |
293 | 312 | if($basePath) { |
294 | 313 | echo $basePath . 'nucleus/'; |
295 | - } ?>" /></td> | |
314 | + } ?>" tabindex="10100" /></td> | |
296 | 315 | </tr> |
297 | 316 | <tr> |
298 | 317 | <td><?php echo _TEXT5_TAB_FIELD4; ?></td> |
299 | 318 | <td><input name="MediaURL" size="60" value="<?php |
300 | 319 | if ($url) { |
301 | 320 | echo $url . 'media/'; |
302 | - } ?>" /></td> | |
321 | + } ?>" tabindex="10110" /></td> | |
303 | 322 | </tr> |
304 | 323 | <tr> |
305 | 324 | <td><?php echo _TEXT5_TAB_FIELD5; ?></td> |
306 | 325 | <td><input name="MediaPath" size="60" value="<?php |
307 | 326 | if ($basePath) { |
308 | 327 | echo $basePath . 'media/'; |
309 | - } ?>" /></td> | |
328 | + } ?>" tabindex="10120" /></td> | |
310 | 329 | </tr> |
311 | 330 | <tr> |
312 | 331 | <td><?php echo _TEXT5_TAB_FIELD6; ?></td> |
313 | 332 | <td><input name="SkinsURL" size="60" value="<?php |
314 | 333 | if ($url) { |
315 | 334 | echo $url . 'skins/'; |
316 | - } ?>" /> | |
335 | + } ?>" tabindex="10130" /> | |
317 | 336 | <br />(<?php echo _TEXT5_TAB_FIELD7_2; ?>) |
318 | 337 | </td> |
319 | 338 | </tr> |
@@ -322,7 +341,7 @@ function showInstallForm() { | ||
322 | 341 | <td><input name="SkinsPath" size="60" value="<?php |
323 | 342 | if ($basePath) { |
324 | 343 | echo $basePath . 'skins/'; |
325 | - } ?>" /> | |
344 | + } ?>" tabindex="10140" /> | |
326 | 345 | <br />(<?php echo _TEXT5_TAB_FIELD7_2; ?>) |
327 | 346 | </td> |
328 | 347 | </tr> |
@@ -331,14 +350,14 @@ function showInstallForm() { | ||
331 | 350 | <td><input name="PluginURL" size="60" value="<?php |
332 | 351 | if ($url) { |
333 | 352 | echo $url . 'nucleus/plugins/'; |
334 | - } ?>" /></td> | |
353 | + } ?>" tabindex="10150" /></td> | |
335 | 354 | </tr> |
336 | 355 | <tr> |
337 | 356 | <td><?php echo _TEXT5_TAB_FIELD9; ?></td> |
338 | 357 | <td><input name="ActionURL" size="60" value="<?php |
339 | 358 | if ($url) { |
340 | 359 | echo $url . 'action.php'; |
341 | - } ?>" /> | |
360 | + } ?>" tabindex="10160" /> | |
342 | 361 | <br />(<?php echo _TEXT5_TAB_FIELD9_2;?>) |
343 | 362 | </td> |
344 | 363 | </tr> |
@@ -356,23 +375,23 @@ function showInstallForm() { | ||
356 | 375 | <table> |
357 | 376 | <tr> |
358 | 377 | <td><?php echo _TEXT6_TAB_FIELD1; ?></td> |
359 | - <td><input name="User_name" value="" /> <small>(<?php echo _TEXT6_TAB_FIELD1_2; ?>)</small></td> | |
378 | + <td><input name="User_name" value="" tabindex="10170" /> <small>(<?php echo _TEXT6_TAB_FIELD1_2; ?>)</small></td> | |
360 | 379 | </tr> |
361 | 380 | <tr> |
362 | 381 | <td><?php echo _TEXT6_TAB_FIELD2; ?></td> |
363 | - <td><input name="User_realname" value="" /></td> | |
382 | + <td><input name="User_realname" value="" tabindex="10180" /></td> | |
364 | 383 | </tr> |
365 | 384 | <tr> |
366 | 385 | <td><?php echo _TEXT6_TAB_FIELD3; ?></td> |
367 | - <td><input name="User_password" type="password" value="" /></td> | |
386 | + <td><input name="User_password" type="password" value="" tabindex="10190" /></td> | |
368 | 387 | </tr> |
369 | 388 | <tr> |
370 | 389 | <td><?php echo _TEXT6_TAB_FIELD4; ?></td> |
371 | - <td><input name="User_password2" type="password" value="" /></td> | |
390 | + <td><input name="User_password2" type="password" value="" tabindex="10200" /></td> | |
372 | 391 | </tr> |
373 | 392 | <tr> |
374 | 393 | <td><?php echo _TEXT6_TAB_FIELD5; ?></td> |
375 | - <td><input name="User_email" value="" /> <small>(<?php echo _TEXT6_TAB_FIELD5_2; ?>)</small></td> | |
394 | + <td><input name="User_email" value="" tabindex="10210" /> <small>(<?php echo _TEXT6_TAB_FIELD5_2; ?>)</small></td> | |
376 | 395 | </tr> |
377 | 396 | </table> |
378 | 397 | </fieldset> |
@@ -386,11 +405,11 @@ function showInstallForm() { | ||
386 | 405 | <table> |
387 | 406 | <tr> |
388 | 407 | <td><?php echo _TEXT7_TAB_FIELD1; ?></td> |
389 | - <td><input name="Blog_name" size="60" value="My Nucleus CMS" /></td> | |
408 | + <td><input name="Blog_name" size="60" value="My Nucleus CMS" tabindex="10220" /></td> | |
390 | 409 | </tr> |
391 | 410 | <tr> |
392 | 411 | <td><?php echo _TEXT7_TAB_FIELD2; ?></td> |
393 | - <td><input name="Blog_shortname" value="mynucleuscms" /> <small>(<?php echo _TEXT7_TAB_FIELD2_2; ?>)</small></td> | |
412 | + <td><input name="Blog_shortname" value="mynucleuscms" tabindex="10230" /> <small>(<?php echo _TEXT7_TAB_FIELD2_2; ?>)</small></td> | |
394 | 413 | </tr> |
395 | 414 | </table> |
396 | 415 | </fieldset> |
@@ -401,7 +420,7 @@ function showInstallForm() { | ||
401 | 420 | <legend><?php echo _TEXT8_TAB_HEADER; ?></legend> |
402 | 421 | <table> |
403 | 422 | <tr> |
404 | - <td><input name="Weblog_ping" value="1" type="checkbox" id="Weblog_ping" /><?php echo _TEXT8_TAB_FIELD1; ?></td> | |
423 | + <td><input name="Weblog_ping" value="1" type="checkbox" id="Weblog_ping" tabindex="10240" /><?php echo _TEXT8_TAB_FIELD1; ?></td> | |
405 | 424 | </tr> |
406 | 425 | </table> |
407 | 426 | </fieldset> |
@@ -410,7 +429,7 @@ function showInstallForm() { | ||
410 | 429 | |
411 | 430 | <?php echo _TEXT9; ?> |
412 | 431 | |
413 | - <p><input name="action" value="go" type="hidden" /> <input type="submit" value="<?php echo _BUTTON1; ?>" onclick="return checkSubmit();" /></p> | |
432 | + <p><input name="action" value="go" type="hidden" /> <input type="submit" value="<?php echo _BUTTON1; ?>" onclick="return checkSubmit();" tabindex="10250" /></p> | |
414 | 433 | |
415 | 434 | </form> |
416 | 435 | </body> |
@@ -455,10 +474,21 @@ function doInstall() { | ||
455 | 474 | $user_email = postVar('User_email'); |
456 | 475 | $blog_name = postVar('Blog_name'); |
457 | 476 | $blog_shortname = postVar('Blog_shortname'); |
477 | + $charset = postVar('charset'); | |
458 | 478 | $config_adminemail = $user_email; |
459 | 479 | $config_sitename = $blog_name; |
460 | 480 | $weblog_ping = postVar('Weblog_ping'); |
461 | 481 | |
482 | + $_POST = array(); | |
483 | + if ($charset == 'ujis') { | |
484 | + define('_CHARSET', 'EUC-JP'); | |
485 | + $config_sitename = mb_convert_encoding($config_sitename, _CHARSET, 'UTF-8'); | |
486 | + $user_realname = mb_convert_encoding($user_realname, _CHARSET, 'UTF-8'); | |
487 | + $blog_name = mb_convert_encoding($blog_name, _CHARSET, 'UTF-8'); | |
488 | + } else { | |
489 | + define('_CHARSET', 'UTF-8'); | |
490 | + } | |
491 | + | |
462 | 492 | $config_indexurl = replaceDoubleBackslash($config_indexurl); |
463 | 493 | $config_adminurl = replaceDoubleBackslash($config_adminurl); |
464 | 494 | $config_mediaurl = replaceDoubleBackslash($config_mediaurl); |
@@ -529,7 +559,7 @@ function doInstall() { | ||
529 | 559 | showErrorMessages($errors); |
530 | 560 | } |
531 | 561 | |
532 | - // 2. try to log in to mySQL | |
562 | + // 2-1. try to log in to mySQL | |
533 | 563 | global $MYSQL_CONN; |
534 | 564 | $MYSQL_CONN = @mysql_connect($mysql_host, $mysql_user, $mysql_password); |
535 | 565 |
@@ -537,9 +567,29 @@ function doInstall() { | ||
537 | 567 | _doError(_ERROR15 . ': ' . mysql_error() ); |
538 | 568 | } |
539 | 569 | |
570 | +/*/ <add for garble measure> | |
571 | + // 2-2. set DEFAULT CHARSET and COLLATE | |
572 | + $mySqlVer = implode('.', array_map('intval', explode('.', mysql_get_server_info($MYSQL_CONN)))); | |
573 | + if ($mySqlVer >= '5.0.7' && phpversion() >= '5.2.3') { | |
574 | + mysql_set_charset($charset); | |
575 | + } else { | |
576 | + mysql_query("SET NAMES " . $charset); | |
577 | + } | |
578 | + $collation = ($charset == 'utf8') ? 'utf8_unicode_ci' : 'ujis_japanese_ci'; | |
579 | +// </add for garble measure>*/ | |
580 | + | |
540 | 581 | // 3. try to create database (if needed) |
541 | 582 | if ($mysql_create == 1) { |
542 | - mysql_query('CREATE DATABASE ' . $mysql_database) or _doError(_ERROR16 . ': ' . mysql_error() ); | |
583 | + $sql = 'CREATE DATABASE ' | |
584 | + . $mysql_database | |
585 | +/*/ <add for garble measure> | |
586 | + . ' DEFAULT CHARACTER SET ' | |
587 | + . $charset | |
588 | + . ' COLLATE ' | |
589 | + . $collation | |
590 | +// </add for garble measure>*/ | |
591 | + . ''; | |
592 | + mysql_query($sql) or _doError(_ERROR16 . ': ' . mysql_error()); | |
543 | 593 | } |
544 | 594 | |
545 | 595 | // 4. try to select database |
@@ -612,13 +662,32 @@ function doInstall() { | ||
612 | 662 | if ($mysql_usePrefix == 1) { |
613 | 663 | $query = str_replace($aTableNames, $aTableNamesPrefixed, $query); |
614 | 664 | } |
665 | + if ($mysql_create != 1 && strpos($query, 'CREATE TABLE') === 0) { | |
666 | + $query .= ' DEFAULT CHARACTER SET ' . $charset . ' COLLATE ' . $collation; | |
667 | + } | |
615 | 668 | |
616 | 669 | mysql_query($query) or _doError(_ERROR30 . ' (<small>' . htmlspecialchars($query) . '</small>): ' . mysql_error() ); |
617 | 670 | } |
618 | 671 | } |
619 | 672 | |
620 | 673 | // 5a make first post |
621 | - $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);"; | |
674 | + if ($charset == 'ujis') { | |
675 | + $itm_title = mb_convert_encoding(_1ST_POST_TITLE, _CHARSET, 'UTF-8'); | |
676 | + $itm_body = mb_convert_encoding(_1ST_POST, _CHARSET, 'UTF-8'); | |
677 | + $itm_more = mb_convert_encoding(_1ST_POST2, _CHARSET, 'UTF-8'); | |
678 | + } else { | |
679 | + $itm_title = _1ST_POST_TITLE; | |
680 | + $itm_body = _1ST_POST; | |
681 | + $itm_more = _1ST_POST2; | |
682 | + } | |
683 | + $newpost = "INSERT INTO " | |
684 | + . tableName('nucleus_item') | |
685 | + . " VALUES (" | |
686 | + . "1, " | |
687 | + . "'" . $itm_title . "'," | |
688 | + . " '" . $itm_body . "'," | |
689 | + . " '" . $itm_more . "'," | |
690 | + . " 1, 1, '2005-08-15 11:04:26', 0, 0, 0, 1, 0, 1);"; | |
622 | 691 | mysql_query($newpost) or _doError(_ERROR18 . ' (<small>' . htmlspecialchars($newpost) . '</small>): ' . mysql_error() ); |
623 | 692 | |
624 | 693 | // 6. update global settings |
@@ -630,6 +699,9 @@ function doInstall() { | ||
630 | 699 | updateConfig('ActionURL', $config_actionurl); |
631 | 700 | updateConfig('AdminEmail', $config_adminemail); |
632 | 701 | updateConfig('SiteName', $config_sitename); |
702 | + if ($charset == 'ujis') { | |
703 | + updateConfig('Language', 'japanese-euc'); | |
704 | + } | |
633 | 705 | |
634 | 706 | // 7. update GOD member |
635 | 707 | $query = 'UPDATE ' . tableName('nucleus_member') |
@@ -656,9 +728,16 @@ function doInstall() { | ||
656 | 728 | mysql_query($query) or _doError(_ERROR20 . ': ' . mysql_error() ); |
657 | 729 | |
658 | 730 | // 8-2. update category settings |
731 | + if ($charset == 'ujis') { | |
732 | + $cat_name = mb_convert_encoding(_GENERALCAT_NAME, _CHARSET, 'UTF-8'); | |
733 | + $cat_desc = mb_convert_encoding(_GENERALCAT_DESC, _CHARSET, 'UTF-8'); | |
734 | + } else { | |
735 | + $cat_name = _GENERALCAT_NAME; | |
736 | + $cat_desc = _GENERALCAT_DESC; | |
737 | + } | |
659 | 738 | $query = 'UPDATE ' . tableName('nucleus_category') |
660 | - . " SET cname = '" . addslashes(_GENERALCAT_NAME) . "'," | |
661 | - . " cdesc = '" . addslashes(_GENERALCAT_DESC) . "'" | |
739 | + . " SET cname = '" . $cat_name . "'," | |
740 | + . " cdesc = '" . $cat_desc . "'" | |
662 | 741 | . " WHERE" |
663 | 742 | . " catid = 1"; |
664 | 743 |
@@ -760,7 +839,7 @@ function doInstall() { | ||
760 | 839 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
761 | 840 | <html xmlns="http://www.w3.org/1999/xhtml"> |
762 | 841 | <head> |
763 | - <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _CHARSET; ?>" /> | |
842 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
764 | 843 | <title><?php echo _TITLE; ?></title> |
765 | 844 | <style>@import url('nucleus/styles/manual.css');</style> |
766 | 845 | </head> |
@@ -15,7 +15,10 @@ | ||
15 | 15 | * @copyright Copyright (C) 2002-2009 The Nucleus Group |
16 | 16 | * @version $Id$ |
17 | 17 | */ |
18 | -define('_CHARSET', 'UTF-8'); | |
18 | +define('_HEADER1_2', '使用するキャラクタセット'); | |
19 | +define('_TEXT1_2', 'NucleusCMSで使用するキャラクタセットを選択します。「UTF-8」か「EUC-JP」かを、セレクトボックスから選択してください。'); | |
20 | +define('_TEXT1_2_TAB_HEAD', 'キャラクタセットの選択'); | |
21 | +define('_TEXT1_2_TAB_FIELD1', 'キャラクタセット'); | |
19 | 22 | |
20 | 23 | define('_ERROR1', '使用中のPHPはMySQLをサポートしていません :('); |
21 | 24 | define('_ERROR2', 'データベース名が見つかりません'); |
@@ -518,6 +518,18 @@ function sql_connect() { | ||
518 | 518 | $MYSQL_CONN = @mysql_connect($MYSQL_HOST, $MYSQL_USER, $MYSQL_PASSWORD) or startUpError('<p>Could not connect to MySQL database.</p>', 'Connect Error'); |
519 | 519 | mysql_select_db($MYSQL_DATABASE) or startUpError('<p>Could not select database: ' . mysql_error() . '</p>', 'Connect Error'); |
520 | 520 | |
521 | +/*/ <add for garble measure> | |
522 | + $resource = sql_query("show variables LIKE 'character_set_database'"); | |
523 | + $fetchDat = mysql_fetch_assoc($resource); | |
524 | + $charset = $fetchDat['Value']; | |
525 | + $mySqlVer = implode('.', array_map('intval', explode('.', mysql_get_server_info($MYSQL_CONN)))); | |
526 | + if ($mySqlVer >= '5.0.7' && phpversion() >= '5.2.3') { | |
527 | + mysql_set_charset($charset); | |
528 | + } else { | |
529 | + sql_query("SET NAMES " . $charset); | |
530 | + } | |
531 | +// </add for garble measure>*/ | |
532 | + | |
521 | 533 | return $MYSQL_CONN; |
522 | 534 | } |
523 | 535 |
@@ -1550,7 +1562,7 @@ function encoding_check($val, $key, $encoding=false, $exclude=false) { | ||
1550 | 1562 | Don't set this permanently in nucleus_config table. |
1551 | 1563 | */ |
1552 | 1564 | global $CONF; |
1553 | - if (!empty($CONF['DisableEncodingCheck'])) return true; | |
1565 | +// if (!empty($CONF['DisableEncodingCheck'])) return true; | |
1554 | 1566 | /* |
1555 | 1567 | When 3rd argument is set, return if checked already. |
1556 | 1568 | When 4th argument is set, set the excluded key(s). |